mirror of
https://github.com/qgis/QGIS.git
synced 2025-06-19 00:02:48 -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.
43 lines
1.6 KiB
C++
43 lines
1.6 KiB
C++
/***************************************************************************
|
|
qgscustomwidgets.h
|
|
--------------------------------------
|
|
Date : 25.04.2014
|
|
Copyright : (C) 2014 Denis Rouzaud
|
|
Email : denis.rouzaud@gmail.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 QGISCUSTOMWIDGETS_H
|
|
#define QGISCUSTOMWIDGETS_H
|
|
|
|
|
|
#include <QtGlobal>
|
|
#include <QtUiPlugin/QDesignerCustomWidgetCollectionInterface>
|
|
#include <qplugin.h>
|
|
|
|
|
|
class QgisCustomWidgets : public QObject, public QDesignerCustomWidgetCollectionInterface
|
|
{
|
|
Q_OBJECT
|
|
Q_PLUGIN_METADATA( IID "org.qgis.customwidgets" )
|
|
Q_INTERFACES( QDesignerCustomWidgetCollectionInterface )
|
|
|
|
public:
|
|
explicit QgisCustomWidgets( QObject *parent = nullptr );
|
|
|
|
QList<QDesignerCustomWidgetInterface *> customWidgets() const override;
|
|
|
|
static QString groupName() { return tr( "QGIS custom widgets" ); }
|
|
|
|
private:
|
|
QList<QDesignerCustomWidgetInterface *> mWidgets;
|
|
};
|
|
|
|
#endif // QGISCUSTOMWIDGETS_H
|