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.
51 lines
1.6 KiB
C++
51 lines
1.6 KiB
C++
/***************************************************************************
|
|
qgsmaptoolselectpolygon.h - map tool for selecting features by polygon
|
|
---------------------
|
|
begin : May 2010
|
|
copyright : (C) 2010 by Jeremy Palmer
|
|
email : jpalmer at linz dot govt dot nz
|
|
***************************************************************************
|
|
* *
|
|
* 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 QGSMAPTOOLSELECTPOLYGON_H
|
|
#define QGSMAPTOOLSELECTPOLYGON_H
|
|
|
|
#include "qgsmaptool.h"
|
|
#include "qgis_app.h"
|
|
|
|
class QgsMapCanvas;
|
|
class QgsRubberBand;
|
|
|
|
|
|
class APP_EXPORT QgsMapToolSelectPolygon : public QgsMapTool
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
QgsMapToolSelectPolygon( QgsMapCanvas *canvas );
|
|
|
|
~QgsMapToolSelectPolygon() override;
|
|
|
|
//! Overridden mouse move event
|
|
void canvasMoveEvent( QgsMapMouseEvent *e ) override;
|
|
|
|
//! Overridden mouse press event
|
|
void canvasPressEvent( QgsMapMouseEvent *e ) override;
|
|
|
|
private:
|
|
|
|
//! used for storing all of the maps point for the polygon
|
|
QgsRubberBand *mRubberBand = nullptr;
|
|
|
|
QColor mFillColor;
|
|
|
|
QColor mStrokeColor;
|
|
};
|
|
|
|
#endif
|