Commit 0bda9b56 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use override

parent 3c2ff58f
......@@ -39,7 +39,7 @@ class CuttleFishPlugin : public KTextEditor::Plugin
public:
explicit CuttleFishPlugin(QObject *parent = nullptr, const QList<QVariant> & = QList<QVariant>());
virtual ~CuttleFishPlugin();
~CuttleFishPlugin() override;
QObject *createView(KTextEditor::MainWindow *mainWindow) Q_DECL_OVERRIDE;
......
......@@ -60,9 +60,9 @@ public:
explicit IconModel(QObject *parent = nullptr);
virtual QHash<int, QByteArray> roleNames() const;
virtual int rowCount(const QModelIndex &parent) const;
virtual QVariant data(const QModelIndex &index, int role) const;
QHash<int, QByteArray> roleNames() const override;
int rowCount(const QModelIndex &parent) const override;
QVariant data(const QModelIndex &index, int role) const override;
QString key(int role) const;
......
......@@ -36,7 +36,7 @@ class View : public QQuickView
public:
explicit View(const QString &category, QCommandLineParser &parser, QWindow *parent = nullptr);
~View();
~View() override;
Q_SIGNALS:
void titleChanged(const QString&);
......
......@@ -44,7 +44,7 @@ class EngineExplorer : public QDialog, public Ui::EngineExplorer
public:
explicit EngineExplorer(QWidget *parent = nullptr);
~EngineExplorer();
~EngineExplorer() override;
void setApp(const QString &app);
void setEngine(const QString &engine);
......
......@@ -69,7 +69,7 @@ class KTreeViewSearchLine : public KLineEdit
/**
* Destroys the KTreeViewSearchLine.
*/
virtual ~KTreeViewSearchLine();
~KTreeViewSearchLine() override;
/**
* Returns true if the search is case sensitive. This defaults to false.
......@@ -210,7 +210,7 @@ class KTreeViewSearchLine : public KLineEdit
/**
* Re-implemented for internal reasons. API not affected.
*/
virtual void contextMenuEvent( QContextMenuEvent* );
void contextMenuEvent( QContextMenuEvent* ) override;
/**
* Updates search to only make visible appropriate items in \a treeView. If
......@@ -285,7 +285,7 @@ class KTreeViewSearchLineWidget : public QWidget
/**
* Destroys the KTreeViewSearchLineWidget
*/
~KTreeViewSearchLineWidget();
~KTreeViewSearchLineWidget() override;
/**
* Returns a pointer to the search line.
......
......@@ -39,14 +39,14 @@ class Delegate : public QAbstractItemDelegate
public:
Delegate(QObject *parent = nullptr);
virtual ~Delegate();
~Delegate() override;
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option,
const QModelIndex &index) const;
void paint(QPainter *painter, const QStyleOptionViewItem &option,
const QModelIndex &index) const override;
protected:
virtual QSize sizeHint(const QStyleOptionViewItem &option,
const QModelIndex &index) const;
QSize sizeHint(const QStyleOptionViewItem &option,
const QModelIndex &index) const override;
};
class ModelViewer : public QDialog
......@@ -55,7 +55,7 @@ class ModelViewer : public QDialog
public:
ModelViewer(Plasma::DataEngine *engine, const QString &m_source, QWidget *parent = nullptr);
~ModelViewer();
~ModelViewer() override;
private Q_SLOTS:
void engineDestroyed();
......
......@@ -38,7 +38,7 @@ class ServiceViewer : public QDialog, public Ui::ServiceViewer
public:
ServiceViewer(Plasma::DataEngine *engine, const QString &m_source, QWidget *parent = nullptr);
~ServiceViewer();
~ServiceViewer() override;
private:
void updateJobCount(int numberOfJobs);
......
......@@ -36,7 +36,7 @@ public:
}
protected:
void paintEvent(QPaintEvent *event)
void paintEvent(QPaintEvent *event) override
{
QComboBox::paintEvent(event);
......
......@@ -60,12 +60,12 @@ public:
};
LnfListModel(QObject *parent = nullptr);
virtual ~LnfListModel();
~LnfListModel() override;
virtual QHash<int, QByteArray> roleNames() const;
QHash<int, QByteArray> roleNames() const override;
virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
QModelIndex indexOf(const QString &path) const;
void reload();
void clearThemeList();
......
......@@ -58,7 +58,7 @@ public:
Q_ENUMS(ErrorLevel)
explicit LnfLogic(QObject *parent = nullptr);
~LnfLogic();
~LnfLogic() override;
LnfListModel *lnfList();
......
......@@ -53,7 +53,7 @@ public:
* @param parent the QWindow this ContainmentView is parented to
**/
explicit ContainmentView(Plasma::Corona *corona, QWindow *parent = nullptr);
virtual ~ContainmentView();
~ContainmentView() override;
/**
* @return the corona of this view
......
......@@ -45,7 +45,7 @@ public:
m_view = view;
}
QRect screenGeometry(int id) const
QRect screenGeometry(int id) const override
{
Q_UNUSED(id);
if (m_view) {
......
......@@ -30,7 +30,7 @@ class View : public PlasmaQuick::ContainmentView
public:
View(ViewerCorona *corona, bool konsoleVisible, QWindow *parent = nullptr);
~View();
~View() override;
void addApplet(const QString &applet);
void addContainment(const QString &containment);
......
......@@ -52,7 +52,7 @@ class ColorEditor : public QObject
public:
explicit ColorEditor(QObject *parent = nullptr);
~ColorEditor();
~ColorEditor() override;
QString theme() const;
void setTheme(const QString &theme);
......
......@@ -58,12 +58,12 @@ public:
};
ThemeListModel(QObject *parent = nullptr);
virtual ~ThemeListModel();
~ThemeListModel() override;
virtual QHash<int, QByteArray> roleNames() const;
QHash<int, QByteArray> roleNames() const override;
virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
QModelIndex indexOf(const QString &path) const;
void reload();
void clearThemeList();
......
......@@ -60,14 +60,14 @@ public:
};
explicit ThemeModel(const KPackage::Package &package, QObject *parent = nullptr);
~ThemeModel();
~ThemeModel() override;
ThemeListModel *themeList();
ColorEditor *colorEditor();
virtual QHash<int, QByteArray> roleNames() const;
virtual int rowCount(const QModelIndex &parent) const;
virtual QVariant data(const QModelIndex &index, int role) const;
QHash<int, QByteArray> roleNames() const override;
int rowCount(const QModelIndex &parent) const override;
QVariant data(const QModelIndex &index, int role) const override;
void setTheme(const QString &theme);
QString theme() const;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment