From 0a1f1ccfa81628746b452bbff8dd8287d027560c Mon Sep 17 00:00:00 2001 From: Withalion Date: Tue, 19 Nov 2024 23:31:59 +0100 Subject: [PATCH] Move documentation into header file --- src/app/3d/qgs3ddebugwidget.cpp | 6 ------ src/app/3d/qgs3ddebugwidget.h | 8 ++++++++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/app/3d/qgs3ddebugwidget.cpp b/src/app/3d/qgs3ddebugwidget.cpp index 776ee16e2049..59c7dc7191aa 100644 --- a/src/app/3d/qgs3ddebugwidget.cpp +++ b/src/app/3d/qgs3ddebugwidget.cpp @@ -61,9 +61,6 @@ Qgs3DDebugWidget::Qgs3DDebugWidget( Qgs3DMapCanvas *canvas, QWidget *parent ) mLookingZ->setRange( std::numeric_limits::lowest(), std::numeric_limits::max() ); } -/** - * Sets up the interactive elements with values from Qgs3DMapSettings - */ void Qgs3DDebugWidget::setMapSettings( Qgs3DMapSettings *mapSettings ) { mMap = mapSettings; @@ -116,9 +113,6 @@ void Qgs3DDebugWidget::setMapSettings( Qgs3DMapSettings *mapSettings ) } ); } -/** - * Update the state of navigation widget from camera's state - */ void Qgs3DDebugWidget::updateFromCamera() const { mNearPlane->setValue( m3DMapCanvas->cameraController()->camera()->nearPlane() ); diff --git a/src/app/3d/qgs3ddebugwidget.h b/src/app/3d/qgs3ddebugwidget.h index 68ce309ccbd6..9964354d3a8f 100644 --- a/src/app/3d/qgs3ddebugwidget.h +++ b/src/app/3d/qgs3ddebugwidget.h @@ -28,9 +28,17 @@ class Qgs3DDebugWidget : public QWidget, Ui::Q3DDebugWidget public: explicit Qgs3DDebugWidget( Qgs3DMapCanvas *canvas, QWidget *parent = nullptr ); + /** + * Sets the map settings and necessary connections based on Qgs3DMapSettings. + * \note We need separate function as Qgs3DMapCanvasWidget, which wraps this widget, also gets it later. + */ void setMapSettings( Qgs3DMapSettings *mapSettings ); public slots: + + /** + * Function updates the camera info values when the user moves in the scene. + */ void updateFromCamera() const; private: