Skip to content
Permalink
Browse files

Make method private.

  • Loading branch information
ismailsunni committed Mar 20, 2020
1 parent 5c44eea commit e7f4e0022be85a70e395bbcbbfa8c65946e4cb4c
Showing with 6 additions and 7 deletions.
  1. +4 −3 src/app/3d/qgs3dmaptool.h
  2. +1 −2 src/app/3d/qgs3dmaptoolidentify.h
  3. +1 −2 src/app/3d/qgs3dmaptoolmeasureline.h
@@ -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
@@ -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;
};
@@ -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;
@@ -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;

0 comments on commit e7f4e00

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