/* * SPDX-FileCopyrightText: (C) 2020 Carl Schwan * * SPDX-License-Identifier: LGPL-2.1-or-later */ #pragma once #include "undocommand.h" #include #include /** * @brief RotateCommand that rotates the current image. */ class RotateCommand : public UndoCommand { public: /** * Contructor */ RotateCommand(const QTransform &m_tranform); ~RotateCommand() override = default; QImage redo(QImage image) override; QImage undo(QImage image) override; private: QTransform m_tranform; };