File indexing completed on 2024-12-22 04:12:57
0001 /* 0002 * SPDX-FileCopyrightText: 2014 Dmitry Kazakov <dimula73@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "kis_delegated_tool_policies.h" 0008 0009 #include <QWidget> 0010 0011 0012 #include <KoCanvasBase.h> 0013 #include <KoShapeManager.h> 0014 #include <KoSelection.h> 0015 0016 0017 void DeselectShapesActivationPolicy::onActivate(KoCanvasBase *canvas) 0018 { 0019 canvas->shapeManager()->selection()->deselectAll(); 0020 canvas->canvasWidget()->update(); 0021 } 0022