Skip to content
Permalink
Browse files

Add Qgs3DMapTool::cursor()

  • Loading branch information
wonder-sk committed Sep 10, 2018
1 parent c5d8843 commit 64bb3ef682a4e3df3bd896b6e7905d7f97b3b6e2
Showing with 10 additions and 4 deletions.
  1. +1 −1 src/app/3d/qgs3dmapcanvas.cpp
  2. +5 −0 src/app/3d/qgs3dmaptool.cpp
  3. +3 −0 src/app/3d/qgs3dmaptool.h
  4. +1 −3 src/app/3d/qgs3dmaptoolidentify.h
@@ -125,7 +125,7 @@ void Qgs3DMapCanvas::setMapTool( Qgs3DMapTool *tool )
{
mEngine->window()->installEventFilter( this );
mScene->cameraController()->setEnabled( false );
mEngine->window()->setCursor( Qt::CrossCursor );
mEngine->window()->setCursor( tool->cursor() );
}

if ( mMapTool )
@@ -45,3 +45,8 @@ void Qgs3DMapTool::activate()
void Qgs3DMapTool::deactivate()
{
}

QCursor Qgs3DMapTool::cursor() const
{
return Qt::CrossCursor;
}
@@ -41,6 +41,9 @@ class Qgs3DMapTool : public QObject
//! Called when map tool is being deactivated
virtual void deactivate();

//! Mouse cursor to be used when the tool is active
virtual QCursor cursor() const;

protected:
Qgs3DMapCanvas *mCanvas = nullptr;
};
@@ -23,8 +23,6 @@ namespace Qt3DRender
class QPickEvent;
}

//class QgsMapToolIdentifyAction;


class Qgs3DMapToolIdentify : public Qgs3DMapTool
{
@@ -45,7 +43,7 @@ class Qgs3DMapToolIdentify : public Qgs3DMapTool
void onTerrainEntityChanged();

private:
//QgsMapToolIdentifyAction *mIdentifyTool2D = nullptr;

};

#endif // QGS3DMAPTOOLIDENTIFY_H

0 comments on commit 64bb3ef

Please sign in to comment.
You can’t perform that action at this time.