Skip to content

Commit

Permalink
Make method private.
Browse files Browse the repository at this point in the history
  • Loading branch information
ismailsunni committed Mar 20, 2020
1 parent 5c44eea commit e7f4e00
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
7 changes: 4 additions & 3 deletions src/app/3d/qgs3dmaptool.h
Expand Up @@ -44,9 +44,6 @@ class Qgs3DMapTool : public QObject
//! Mouse cursor to be used when the tool is active
virtual QCursor cursor() const;

//! Called when canvas's map setting is changed
virtual void onMapSettingsChanged();

/**
* Whether the default mouse controls to zoom/pan/rotate camera can stay enabled
* while the tool is active. This may be useful for some basic tools using just
Expand All @@ -57,6 +54,10 @@ class Qgs3DMapTool : public QObject

Qgs3DMapCanvas *canvas();

private slots:
//! Called when canvas's map setting is changed
virtual void onMapSettingsChanged();

protected:
Qgs3DMapCanvas *mCanvas = nullptr;
};
Expand Down
3 changes: 1 addition & 2 deletions src/app/3d/qgs3dmaptoolidentify.h
Expand Up @@ -45,11 +45,10 @@ class Qgs3DMapToolIdentify : public Qgs3DMapTool

QCursor cursor() const override;

void onMapSettingsChanged() override;

private slots:
void onTerrainPicked( Qt3DRender::QPickEvent *event );
void onTerrainEntityChanged();
void onMapSettingsChanged() override;

private:
std::unique_ptr<Qgs3DMapToolIdentifyPickHandler> mPickHandler;
Expand Down
3 changes: 1 addition & 2 deletions src/app/3d/qgs3dmaptoolmeasureline.h
Expand Up @@ -67,12 +67,11 @@ class Qgs3DMapToolMeasureLine : public Qgs3DMapTool

QCursor cursor() const override;

void onMapSettingsChanged() override;

private slots:
void onTerrainPicked( Qt3DRender::QPickEvent *event );
void onTerrainEntityChanged();
void handleClick( Qt3DRender::QPickEvent *event, const QgsVector3D &worldIntersection );
void onMapSettingsChanged() override;

private:
std::unique_ptr<Qgs3DMapToolMeasureLinePickHandler> mPickHandler;
Expand Down

0 comments on commit e7f4e00

Please sign in to comment.