mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-28 00:04:04 -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.
44 lines
1.5 KiB
C++
44 lines
1.5 KiB
C++
/***************************************************************************
|
|
qgslayoutlegendlayersdialog.h
|
|
-----------------------------
|
|
begin : October 2017
|
|
copyright : (C) 2017 by Nyall Dawson
|
|
email : nyall dot dawson 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 QGSLAYOUTLEGENDLAYERSDIALOG_H
|
|
#define QGSLAYOUTLEGENDLAYERSDIALOG_H
|
|
|
|
#include "ui_qgslayoutlegendlayersdialogbase.h"
|
|
|
|
class QgsMapLayer;
|
|
class QgsMapLayerModel;
|
|
|
|
/**
|
|
* \ingroup app
|
|
* A dialog to add new layers to the legend.
|
|
* */
|
|
class QgsLayoutLegendLayersDialog: public QDialog, private Ui::QgsLayoutLegendLayersDialogBase
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
QgsLayoutLegendLayersDialog( QWidget *parent = nullptr );
|
|
~QgsLayoutLegendLayersDialog() override;
|
|
|
|
QList< QgsMapLayer * > selectedLayers() const;
|
|
|
|
private:
|
|
QgsLayoutLegendLayersDialog() = delete;
|
|
|
|
QgsMapLayerModel *mModel = nullptr;
|
|
};
|
|
|
|
#endif //QGSLAYOUTLEGENDLAYERSDIALOG_H
|