Skip to content

Commit 207bcad

Browse files
committed
Start porting mouse handles to layout
1 parent b9ecb4f commit 207bcad

File tree

7 files changed

+1300
-2
lines changed

7 files changed

+1300
-2
lines changed

python/core/layout/qgslayout.sip

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class QgsLayout : QGraphicsScene, QgsExpressionContextGenerator, QgsLayoutUndoOb
2626
ZItem,
2727
ZGrid,
2828
ZGuide,
29+
ZMouseHandles,
2930
ZMapTool,
3031
ZSnapIndicator,
3132
};

src/core/layout/qgslayout.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ class CORE_EXPORT QgsLayout : public QGraphicsScene, public QgsExpressionContext
4747
ZItem = 1, //!< Minimum z value for items
4848
ZGrid = 9998, //!< Z-value for page grids
4949
ZGuide = 9999, //!< Z-value for page guides
50-
ZMapTool = 10000, //!< Z-value for temporary map tool items
51-
ZSnapIndicator = 10001, //!< Z-value for snapping indicator
50+
ZMouseHandles = 10000, //!< Z-value for mouse handles
51+
ZMapTool = 10001, //!< Z-value for temporary map tool items
52+
ZSnapIndicator = 10002, //!< Z-value for snapping indicator
5253
};
5354

5455
/**

src/gui/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ SET(QGIS_GUI_SRCS
161161

162162
layout/qgslayoutitemguiregistry.cpp
163163
layout/qgslayoutitemwidget.cpp
164+
layout/qgslayoutmousehandles.cpp
164165
layout/qgslayoutnewitempropertiesdialog.cpp
165166
layout/qgslayoutruler.cpp
166167
layout/qgslayoutunitscombobox.cpp
@@ -657,6 +658,7 @@ SET(QGIS_GUI_MOC_HDRS
657658
layout/qgslayoutdesignerinterface.h
658659
layout/qgslayoutitemguiregistry.h
659660
layout/qgslayoutitemwidget.h
661+
layout/qgslayoutmousehandles.h
660662
layout/qgslayoutnewitempropertiesdialog.h
661663
layout/qgslayoutruler.h
662664
layout/qgslayoutunitscombobox.h

0 commit comments

Comments
 (0)