mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-23 00:05:43 -04:00
Run clang-tidy modernize-use-override to remove all the redundant virtual keywords from overridden methods, and add some missing overrides. Another benefit is that this has also added the overrides on destructors, which will cause a build failure if a base class is missing a virtual destructor.
35 lines
1.5 KiB
C++
35 lines
1.5 KiB
C++
/***************************************************************************
|
|
qgsmaptoolregularpolygoncenterpoint.h - map tool for adding regular
|
|
polygon from center and a point
|
|
---------------------
|
|
begin : July 2017
|
|
copyright : (C) 2017 by Loïc Bartoletti
|
|
email : lbartoletti at tuxfamily dot org
|
|
***************************************************************************
|
|
* *
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
* it under the terms of the GNU General Public License as published by *
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
* (at your option) any later version. *
|
|
* *
|
|
***************************************************************************/
|
|
|
|
#ifndef QGSMAPTOOLREGULARPOLYGONCENTERPOINT_H
|
|
#define QGSMAPTOOLREGULARPOLYGONCENTERPOINT_H
|
|
|
|
#include "qgsmaptooladdregularpolygon.h"
|
|
|
|
class QgsMapToolRegularPolygonCenterPoint: public QgsMapToolAddRegularPolygon
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
QgsMapToolRegularPolygonCenterPoint( QgsMapToolCapture *parentTool, QgsMapCanvas *canvas, CaptureMode mode = CaptureLine );
|
|
~QgsMapToolRegularPolygonCenterPoint() override;
|
|
|
|
void cadCanvasReleaseEvent( QgsMapMouseEvent *e ) override;
|
|
void cadCanvasMoveEvent( QgsMapMouseEvent *e ) override;
|
|
};
|
|
|
|
#endif // QGSMAPTOOLREGULARPOLYGONCENTERPOINT_H
|