QGIS/src/app/qgsmaptoolfeatureaction.h
Nyall Dawson 4da1ce8404 Drop redundant virtual keywords on overrides
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.
2017-12-16 08:49:36 +10:00

58 lines
1.8 KiB
C++

/***************************************************************************
qgsmaptoolfeatureaction.h - map tool for running feature actions
---------------------
begin : January 2012
copyright : (C) 2012 by Giuseppe Sucameli
email : brush.tyler at gmail dot com
***************************************************************************
* *
* 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 QGSMAPTOOLFEATUREACTION_H
#define QGSMAPTOOLFEATUREACTION_H
#include "qgis.h"
#include "qgsmaptool.h"
#include <QObject>
#include <QPointer>
#include "qgis_app.h"
class QgsVectorLayer;
/**
\brief Map tool for running feature actions on the current layer
*/
class APP_EXPORT QgsMapToolFeatureAction : public QgsMapTool
{
Q_OBJECT
public:
QgsMapToolFeatureAction( QgsMapCanvas *canvas );
Flags flags() const override { return QgsMapTool::AllowZoomRect; }
//! Overridden mouse move event
void canvasMoveEvent( QgsMapMouseEvent *e ) override;
//! Overridden mouse press event
void canvasPressEvent( QgsMapMouseEvent *e ) override;
//! Overridden mouse release event
void canvasReleaseEvent( QgsMapMouseEvent *e ) override;
void activate() override;
void deactivate() override;
private:
bool doAction( QgsVectorLayer *layer, int x, int y );
};
#endif