File tree Expand file tree Collapse file tree 4 files changed +10
-4
lines changed Expand file tree Collapse file tree 4 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ void Qgs3DMapCanvas::setMapTool( Qgs3DMapTool *tool )
125
125
{
126
126
mEngine ->window ()->installEventFilter ( this );
127
127
mScene ->cameraController ()->setEnabled ( false );
128
- mEngine ->window ()->setCursor ( Qt::CrossCursor );
128
+ mEngine ->window ()->setCursor ( tool-> cursor () );
129
129
}
130
130
131
131
if ( mMapTool )
Original file line number Diff line number Diff line change @@ -45,3 +45,8 @@ void Qgs3DMapTool::activate()
45
45
void Qgs3DMapTool::deactivate ()
46
46
{
47
47
}
48
+
49
+ QCursor Qgs3DMapTool::cursor () const
50
+ {
51
+ return Qt::CrossCursor;
52
+ }
Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ class Qgs3DMapTool : public QObject
41
41
// ! Called when map tool is being deactivated
42
42
virtual void deactivate ();
43
43
44
+ // ! Mouse cursor to be used when the tool is active
45
+ virtual QCursor cursor () const ;
46
+
44
47
protected:
45
48
Qgs3DMapCanvas *mCanvas = nullptr ;
46
49
};
Original file line number Diff line number Diff line change @@ -23,8 +23,6 @@ namespace Qt3DRender
23
23
class QPickEvent ;
24
24
}
25
25
26
- // class QgsMapToolIdentifyAction;
27
-
28
26
29
27
class Qgs3DMapToolIdentify : public Qgs3DMapTool
30
28
{
@@ -45,7 +43,7 @@ class Qgs3DMapToolIdentify : public Qgs3DMapTool
45
43
void onTerrainEntityChanged ();
46
44
47
45
private:
48
- // QgsMapToolIdentifyAction *mIdentifyTool2D = nullptr;
46
+
49
47
};
50
48
51
49
#endif // QGS3DMAPTOOLIDENTIFY_H
You can’t perform that action at this time.
0 commit comments