Skip to content

Commit 5b36dfc

Browse files
committed
Remove some doxygen comments from overridden methods (pt 2)
1 parent 46a69df commit 5b36dfc

27 files changed

+16
-85
lines changed

src/core/qgsgeometrysimplifier.h

-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ class CORE_EXPORT QgsTopologyPreservingSimplifier : public QgsAbstractGeometrySi
6060
*/
6161
QgsTopologyPreservingSimplifier( double tolerance );
6262

63-
//! Returns a simplified version the specified geometry
6463
virtual QgsGeometry simplify( const QgsGeometry& geometry ) const override;
6564

6665
protected:

src/gui/auth/qgsauthserverseditor.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class GUI_EXPORT QgsAuthServersEditor : public QWidget, private Ui::QgsAuthServe
6565
void authMessageOut( const QString& message, const QString& authtag, QgsAuthManager::MessageLevel level );
6666

6767
protected:
68-
//! Overridden show event of base widget
68+
6969
void showEvent( QShowEvent *e ) override;
7070

7171
private:

src/gui/auth/qgsauthsslconfigwidget.h

-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ class GUI_EXPORT QgsAuthSslConfigDialog : public QDialog
205205
QgsAuthSslConfigWidget *sslCustomConfigWidget() { return mSslConfigWdgt; }
206206

207207
public slots:
208-
//! Overridden base dialog accept slot
209208
void accept() override;
210209

211210
private slots:

src/gui/auth/qgsauthsslimportdialog.h

-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ class GUI_EXPORT QgsAuthSslImportDialog : public QDialog, private Ui::QgsAuthSsl
8989
~QgsAuthSslImportDialog();
9090

9191
public slots:
92-
//! Overridden slot of base dialog
9392
void accept() override;
9493

9594
private slots:

src/gui/auth/qgsauthtrustedcasdialog.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class GUI_EXPORT QgsAuthTrustedCAsDialog : public QDialog, private Ui::QgsAuthTr
6565
void authMessageOut( const QString& message, const QString& authtag, QgsAuthManager::MessageLevel level );
6666

6767
protected:
68-
//! Overridden widget show event
68+
6969
void showEvent( QShowEvent *e ) override;
7070

7171
private:

src/gui/editorwidgets/qgsdatetimeedit.h

+5-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class GUI_EXPORT QgsDateTimeEdit : public QDateTimeEdit
3232
public:
3333
explicit QgsDateTimeEdit( QWidget *parent = nullptr );
3434

35-
//! determines if the widget allows setting null date/time.
35+
//! Determines if the widget allows setting null date/time.
3636
void setAllowNull( bool allowNull );
3737
bool allowNull() const {return mAllowNull;}
3838

@@ -48,8 +48,10 @@ class GUI_EXPORT QgsDateTimeEdit : public QDateTimeEdit
4848
*/
4949
QDateTime dateTime() const;
5050

51-
//! Set the current date as NULL
52-
//! @note if the widget is not configured to accept NULL dates, this will have no effect
51+
/**
52+
* Set the current date as NULL
53+
* @note if the widget is not configured to accept NULL dates, this will have no effect
54+
*/
5355
virtual void clear() override;
5456

5557
/** Resets the widget to show no value (ie, an "unknown" state).

src/gui/qgsadvanceddigitizingdockwidget.h

-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@ class GUI_EXPORT QgsAdvancedDigitizingDockWidget : public QgsDockWidget, private
259259
*/
260260
QgsMapMouseEvent::SnappingMode snappingMode() { return mSnappingMode; }
261261

262-
//! key press event on the dock
263262
void keyPressEvent( QKeyEvent* e ) override;
264263

265264
//! determines if CAD tools are enabled or if map tools behaves "nomally"

src/gui/qgsannotationitem.h

-7
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,10 @@ class GUI_EXPORT QgsAnnotationItem: public QgsMapCanvasItem, public QgsAnnotatio
7171

7272
virtual void setMapPosition( const QgsPoint& pos );
7373
QgsPoint mapPosition() const override { return mMapPosition; }
74-
7574
virtual QPointF relativePosition() const override;
76-
7775
virtual double scaleFactor() const override;
78-
7976
virtual bool showItem() const override { return isVisible(); }
80-
81-
/** Sets the CRS of the map position.
82-
@param crs the CRS to set */
8377
virtual void setMapPositionCrs( const QgsCoordinateReferenceSystem& crs );
84-
//! Returns the CRS of the map position.
8578
QgsCoordinateReferenceSystem mapPositionCrs() const override { return mMapPositionCrs; }
8679

8780
void setFrameSize( QSizeF size );

src/gui/qgsformannotationitem.h

-4
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,11 @@ class GUI_EXPORT QgsFormAnnotationItem: public QObject, public QgsAnnotationItem
3434
~QgsFormAnnotationItem();
3535

3636
void paint( QPainter * painter ) override;
37-
38-
//! paint function called by map canvas
3937
void paint( QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = nullptr ) override;
40-
4138
QSizeF minimumFrameSize() const override;
4239
//! Returns the optimal frame size
4340
QSizeF preferredFrameSize() const;
4441

45-
//! Reimplemented from QgsAnnotationItem
4642
void setMapPosition( const QgsPoint& pos ) override;
4743

4844
void setDesignerForm( const QString& uiFile );

src/gui/qgshtmlannotationitem.h

-3
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,10 @@ class GUI_EXPORT QgsHtmlAnnotationItem: public QObject, public QgsAnnotationItem
3636
~QgsHtmlAnnotationItem();
3737

3838
void paint( QPainter * painter ) override;
39-
40-
//! paint function called by map canvas
4139
void paint( QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = nullptr ) override;
4240

4341
QSizeF minimumFrameSize() const override;
4442

45-
//! Reimplemented from QgsAnnotationItem
4643
void setMapPosition( const QgsPoint& pos ) override;
4744

4845
void setHTMLPage( const QString& htmlFile );

src/gui/qgsmapcanvasitem.h

-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ class GUI_EXPORT QgsMapCanvasItem : public QGraphicsItem
3939
//! function to be implemented by derived classes
4040
virtual void paint( QPainter * painter ) = 0;
4141

42-
//! paint function called by map canvas
4342
virtual void paint( QPainter * painter,
4443
const QStyleOptionGraphicsItem * option,
4544
QWidget * widget = nullptr ) override;
@@ -58,7 +57,6 @@ class GUI_EXPORT QgsMapCanvasItem : public QGraphicsItem
5857
//! called on changed extent or resize event to update position of the item
5958
virtual void updatePosition();
6059

61-
//! default implementation for canvas items
6260
virtual QRectF boundingRect() const override;
6361

6462
//! returns canvas item rectangle in map units

src/gui/qgsmaptooladvanceddigitizing.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ class GUI_EXPORT QgsMapToolAdvancedDigitizing : public QgsMapToolEdit
5353

5454
~QgsMapToolAdvancedDigitizing();
5555

56-
//! catch the mouse press event, filters it, transforms it to map coordinates and send it to virtual method
56+
//! Catch the mouse press event, filters it, transforms it to map coordinates and send it to virtual method
5757
virtual void canvasPressEvent( QgsMapMouseEvent* e ) override;
58-
//! catch the mouse release event, filters it, transforms it to map coordinates and send it to virtual method
58+
//! Catch the mouse release event, filters it, transforms it to map coordinates and send it to virtual method
5959
virtual void canvasReleaseEvent( QgsMapMouseEvent* e ) override;
60-
//! catch the mouse move event, filters it, transforms it to map coordinates and send it to virtual method
60+
//! Catch the mouse move event, filters it, transforms it to map coordinates and send it to virtual method
6161
virtual void canvasMoveEvent( QgsMapMouseEvent* e ) override;
6262

6363
/**

src/gui/qgsmaptoolcapture.h

-10
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,9 @@ class GUI_EXPORT QgsMapToolCapture : public QgsMapToolAdvancedDigitizing
4040
//! constructor
4141
QgsMapToolCapture( QgsMapCanvas* canvas, QgsAdvancedDigitizingDockWidget* cadDockWidget, CaptureMode mode = CaptureNone );
4242

43-
4443
virtual ~QgsMapToolCapture();
4544

46-
//! active the tool
4745
virtual void activate() override;
48-
49-
//! deactive the tool
5046
virtual void deactivate() override;
5147

5248
//! Adds a whole curve (e.g. circularstring) to the captured geometry. Curve must be in map CRS
@@ -59,12 +55,6 @@ class GUI_EXPORT QgsMapToolCapture : public QgsMapToolAdvancedDigitizing
5955
*/
6056
const QgsCompoundCurve* captureCurve() const { return &mCaptureCurve; }
6157

62-
63-
/**
64-
* Update the rubberband according to mouse position
65-
*
66-
* @param e The mouse event
67-
*/
6858
virtual void cadCanvasMoveEvent( QgsMapMouseEvent * e ) override;
6959

7060
/**

src/gui/qgsmaptoolemitpoint.h

-6
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,8 @@ class GUI_EXPORT QgsMapToolEmitPoint : public QgsMapTool
3434
QgsMapToolEmitPoint( QgsMapCanvas* canvas );
3535

3636
virtual Flags flags() const override { return QgsMapTool::AllowZoomRect; }
37-
38-
//! Overridden mouse move event
3937
virtual void canvasMoveEvent( QgsMapMouseEvent* e ) override;
40-
41-
//! Overridden mouse press event - emits the signal
4238
virtual void canvasPressEvent( QgsMapMouseEvent* e ) override;
43-
44-
//! Overridden mouse release event
4539
virtual void canvasReleaseEvent( QgsMapMouseEvent* e ) override;
4640

4741
signals:

src/gui/qgsmaptoolidentify.h

-8
Original file line numberDiff line numberDiff line change
@@ -93,18 +93,10 @@ class GUI_EXPORT QgsMapToolIdentify : public QgsMapTool
9393
virtual ~QgsMapToolIdentify();
9494

9595
virtual Flags flags() const override { return QgsMapTool::AllowZoomRect; }
96-
97-
//! Overridden mouse move event
9896
virtual void canvasMoveEvent( QgsMapMouseEvent* e ) override;
99-
100-
//! Overridden mouse press event
10197
virtual void canvasPressEvent( QgsMapMouseEvent* e ) override;
102-
103-
//! Overridden mouse release event
10498
virtual void canvasReleaseEvent( QgsMapMouseEvent* e ) override;
105-
10699
virtual void activate() override;
107-
108100
virtual void deactivate() override;
109101

110102
/** Performs the identification.

src/gui/qgsmaptoolpan.h

-6
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,8 @@ class GUI_EXPORT QgsMapToolPan : public QgsMapTool
3333
QgsMapToolPan( QgsMapCanvas* canvas );
3434

3535
virtual Flags flags() const override { return QgsMapTool::Transient | QgsMapTool::AllowZoomRect; }
36-
37-
//! Mouse press event
3836
virtual void canvasPressEvent( QgsMapMouseEvent* e ) override;
39-
40-
//! Overridden mouse move event
4137
virtual void canvasMoveEvent( QgsMapMouseEvent* e ) override;
42-
43-
//! Overridden mouse release event
4438
virtual void canvasReleaseEvent( QgsMapMouseEvent* e ) override;
4539

4640
private:

src/gui/qgsmaptooltouch.h

-6
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,8 @@ class GUI_EXPORT QgsMapToolTouch : public QgsMapTool
3838

3939
void activate() override;
4040
void deactivate() override;
41-
42-
//! Overridden mouse move event
4341
virtual void canvasMoveEvent( QgsMapMouseEvent* e ) override;
44-
45-
//! Overridden mouse release event
4642
virtual void canvasReleaseEvent( QgsMapMouseEvent* e ) override;
47-
48-
//! Overridden Mouse double click event.
4943
virtual void canvasDoubleClickEvent( QgsMapMouseEvent* e ) override;
5044

5145
virtual Flags flags() const override { return QgsMapTool::Transient | QgsMapTool::AllowZoomRect; }

src/gui/qgsmaptoolzoom.h

-8
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,12 @@ class GUI_EXPORT QgsMapToolZoom : public QgsMapTool
3232
public:
3333
//! constructor
3434
QgsMapToolZoom( QgsMapCanvas* canvas, bool zoomOut );
35-
3635
~QgsMapToolZoom();
3736

3837
virtual Flags flags() const override { return QgsMapTool::Transient; }
39-
40-
//! Overridden mouse move event
4138
virtual void canvasMoveEvent( QgsMapMouseEvent* e ) override;
42-
43-
//! Overridden mouse press event
4439
virtual void canvasPressEvent( QgsMapMouseEvent* e ) override;
45-
46-
//! Overridden mouse release event
4740
virtual void canvasReleaseEvent( QgsMapMouseEvent* e ) override;
48-
4941
virtual void deactivate() override;
5042

5143
protected:

src/gui/qgsnewhttpconnection.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class GUI_EXPORT QgsNewHttpConnection : public QDialog, private Ui::QgsNewHttpCo
3636

3737
~QgsNewHttpConnection();
3838
public slots:
39-
//! Saves the connection to ~/.qt/qgisrc
39+
// Saves the connection to ~/.qt/qgisrc
4040
void accept() override;
4141

4242
void on_txtName_textChanged( const QString & );

src/gui/qgsprojectionselector.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ class GUI_EXPORT QgsProjectionSelector : public QWidget, private Ui::QgsProjecti
108108
void pushProjectionToFront();
109109

110110
protected:
111-
//! Used to ensure the projection list view is actually populated
111+
// Used to ensure the projection list view is actually populated
112112
void showEvent( QShowEvent * theEvent ) override;
113113

114-
//! Used to manage column sizes
114+
// Used to manage column sizes
115115
void resizeEvent( QResizeEvent * theEvent ) override;
116116

117117
private:

src/gui/qgsuserinputdockwidget.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class GUI_EXPORT QgsUserInputDockWidget : public QgsDockWidget
4444
void addUserInputWidget( QWidget* widget );
4545

4646
protected:
47-
//! will not display the dock if it contains no widget
47+
// will not display the dock if it contains no widget
4848
void paintEvent( QPaintEvent *event ) override;
4949

5050
private slots:

src/gui/symbology-ng/qgsarrowsymbollayerwidget.h

-2
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ class GUI_EXPORT QgsArrowSymbolLayerWidget: public QgsSymbolLayerWidget, private
4040
*/
4141
static QgsSymbolLayerWidget* create( const QgsVectorLayer* layer ) { return new QgsArrowSymbolLayerWidget( layer ); }
4242

43-
//! Set the symbol layer
4443
virtual void setSymbolLayer( QgsSymbolLayer* layer ) override;
45-
//! Get the current symbol layer
4644
virtual QgsSymbolLayer* symbolLayer() override;
4745

4846
private:

src/gui/symbology-ng/qgsheatmaprendererwidget.h

-2
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ class GUI_EXPORT QgsHeatmapRendererWidget : public QgsRendererWidget, private Ui
4444
*/
4545
QgsHeatmapRendererWidget( QgsVectorLayer* layer, QgsStyle* style, QgsFeatureRenderer* renderer );
4646

47-
//! @returns the current feature renderer
4847
virtual QgsFeatureRenderer* renderer() override;
49-
5048
virtual void setContext( const QgsSymbolWidgetContext& context ) override;
5149

5250
private:

src/gui/symbology-ng/qgsinvertedpolygonrendererwidget.h

-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ class GUI_EXPORT QgsInvertedPolygonRendererWidget : public QgsRendererWidget, pr
4646
*/
4747
QgsInvertedPolygonRendererWidget( QgsVectorLayer* layer, QgsStyle* style, QgsFeatureRenderer* renderer );
4848

49-
//! @returns the current feature renderer
5049
virtual QgsFeatureRenderer* renderer() override;
5150

5251
void setContext( const QgsSymbolWidgetContext& context ) override;

src/gui/symbology-ng/qgsrendererpropertiesdialog.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class GUI_EXPORT QgsRendererPropertiesDialog : public QDialog, private Ui::QgsRe
132132
*/
133133
void connectValueChanged( const QList<QWidget *> &widgets, const char *slot );
134134

135-
//! Reimplements dialog keyPress event so we can ignore it
135+
// Reimplements dialog keyPress event so we can ignore it
136136
void keyPressEvent( QKeyEvent * event ) override;
137137

138138
QgsVectorLayer* mLayer;

src/gui/symbology-ng/qgsrulebasedrendererwidget.h

-2
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@ class GUI_EXPORT QgsRuleBasedRendererModel : public QAbstractItemModel
5555
int role = Qt::DisplayRole ) const override;
5656
virtual int rowCount( const QModelIndex &parent = QModelIndex() ) const override;
5757
virtual int columnCount( const QModelIndex & = QModelIndex() ) const override;
58-
//! provide model index for parent's child item
5958
virtual QModelIndex index( int row, int column, const QModelIndex &parent = QModelIndex() ) const override;
60-
//! provide parent model index
6159
virtual QModelIndex parent( const QModelIndex &index ) const override;
6260

6361
// editing support

src/gui/symbology-ng/qgssymbolselectordialog.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ class GUI_EXPORT QgsSymbolSelectorDialog : public QDialog
274274
QgsSymbol* symbol();
275275

276276
protected:
277-
//! Reimplements dialog keyPress event so we can ignore it
277+
// Reimplements dialog keyPress event so we can ignore it
278278
void keyPressEvent( QKeyEvent * e ) override;
279279

280280
void loadSymbol();

0 commit comments

Comments
 (0)