Warning, file /office/skrooge/skgbasegui/skggraphicsscene.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /*************************************************************************** 0002 * SPDX-FileCopyrightText: 2022 S. MANKOWSKI stephane@mankowski.fr 0003 * SPDX-FileCopyrightText: 2022 G. DE BURE support@mankowski.fr 0004 * SPDX-License-Identifier: GPL-3.0-or-later 0005 ***************************************************************************/ 0006 #ifndef SKGGRAPHICSSCENE_H 0007 #define SKGGRAPHICSSCENE_H 0008 /** @file 0009 * This file defines a graphic scene with more features. 0010 * 0011 * @author Stephane MANKOWSKI / Guillaume DE BURE 0012 */ 0013 0014 #include "skgbasegui_export.h" 0015 #include <qgraphicsscene.h> 0016 /** 0017 * A graphic scene with more features 0018 */ 0019 class SKGBASEGUI_EXPORT SKGGraphicsScene : public QGraphicsScene 0020 { 0021 Q_OBJECT 0022 0023 public: 0024 /** 0025 * Default constructor 0026 * @param iParent the parent 0027 */ 0028 explicit SKGGraphicsScene(QObject* iParent = nullptr); 0029 0030 /** 0031 * Destructor 0032 */ 0033 ~SKGGraphicsScene() override; 0034 0035 Q_SIGNALS: 0036 /** 0037 * This signal is launched when a double click is done 0038 */ 0039 void doubleClicked(); 0040 0041 protected: 0042 /** 0043 * This event handler, for event mouseEvent, can be reimplemented in a subclass to receive mouse doubleclick events for the scene. 0044 * @param mouseEvent the event 0045 */ 0046 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* mouseEvent) override; 0047 0048 private: 0049 Q_DISABLE_COPY(SKGGraphicsScene) 0050 }; 0051 0052 #endif