File indexing completed on 2024-12-22 04:10:03
0001 /* 0002 * SPDX-FileCopyrightText: 2014 Stuart Dickson <stuartmd@kogmbh.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 #include "kis_selection_move_command2.h" 0007 0008 //#include "kis_image_interfaces.h" 0009 #include "kis_selection.h" 0010 //#include "kis_node.h" 0011 #include "kis_image.h" 0012 0013 KisSelectionMoveCommand2::KisSelectionMoveCommand2(KisSelectionSP object, const QPoint& oldPos, const QPoint& newPos, KUndo2Command *parent) 0014 : KisMoveCommandCommon<KisSelectionSP>(object, oldPos, newPos, parent) 0015 { 0016 } 0017 0018 void KisSelectionMoveCommand2::redo() { 0019 KisMoveCommandCommon<KisSelectionSP>::redo(); 0020 m_object->notifySelectionChanged(); 0021 } 0022 0023 void KisSelectionMoveCommand2::undo() { 0024 KisMoveCommandCommon<KisSelectionSP>::undo(); 0025 m_object->notifySelectionChanged(); 0026 }