Commit 52bf6bec authored by Kevin Funk's avatar Kevin Funk

clang-tidy: use-modernize-override run

... to make Clang a bit more happy
parent da51903b
......@@ -37,7 +37,7 @@ class AbstractModel : public QAbstractListModel
public:
explicit AbstractModel(QObject *parent = nullptr);
~AbstractModel();
~AbstractModel() override;
QHash<int, QByteArray> roleNames() const override;
......
......@@ -52,7 +52,7 @@ class AppsModel : public AbstractModel, public QQmlParserStatus
explicit AppsModel(const QString &entryPath = QString(), bool paginate = false, int pageSize = 24,
bool flat = false, bool sorted = true, bool separators = true, QObject *parent = nullptr);
explicit AppsModel(const QList<AbstractEntry *> entryList, bool deleteEntriesOnDestruction, QObject *parent = nullptr);
~AppsModel();
~AppsModel() override;
QString description() const override;
void setDescription(const QString &text);
......
......@@ -41,7 +41,7 @@ class FilteredPlacesModel : public QSortFilterProxyModel
public:
FilteredPlacesModel(QObject *parent = nullptr);
~FilteredPlacesModel();
~FilteredPlacesModel() override;
QUrl url(const QModelIndex &index) const;
bool isDevice(const QModelIndex &index) const;
......@@ -61,7 +61,7 @@ class RunCommandModel : public AbstractModel
public:
RunCommandModel(QObject *parent = nullptr);
~RunCommandModel();
~RunCommandModel() override;
QString description() const override;
......@@ -82,7 +82,7 @@ class ComputerModel : public ForwardingModel
public:
explicit ComputerModel(QObject *parent = nullptr);
~ComputerModel();
~ComputerModel() override;
QString description() const override;
......
......@@ -42,7 +42,7 @@ class ContainmentInterface : public QObject
Q_ENUM(Target)
ContainmentInterface(QObject *parent = nullptr);
~ContainmentInterface();
~ContainmentInterface() override;
static Q_INVOKABLE bool mayAddLauncher(QObject *appletInterface, Target target, const QString &entryPath = QString());
......
......@@ -33,7 +33,7 @@ class DragHelper : public QObject
public:
DragHelper(QObject *parent = nullptr);
~DragHelper();
~DragHelper() override;
int dragIconSize() const;
void setDragIconSize(int size);
......
......@@ -28,7 +28,7 @@ class FileEntry : public AbstractEntry
{
public:
explicit FileEntry(AbstractModel *owner, const QUrl &url);
~FileEntry();
~FileEntry() override;
EntryType type() const override { return RunnableType; }
......
......@@ -32,7 +32,7 @@ class ForwardingModel : public AbstractModel
public:
explicit ForwardingModel(QObject *parent = nullptr);
~ForwardingModel();
~ForwardingModel() override;
QString description() const override;
......
......@@ -28,7 +28,7 @@ class FunnelModel : public ForwardingModel
public:
explicit FunnelModel(QObject *parent = nullptr);
~FunnelModel();
~FunnelModel() override;
void setSourceModel(QAbstractItemModel *model) override;
};
......
......@@ -52,11 +52,11 @@ class KAStatsFavoritesModel : public PlaceholderModel
public:
explicit KAStatsFavoritesModel(QObject *parent = nullptr);
~KAStatsFavoritesModel();
~KAStatsFavoritesModel() override;
QString description() const;
QString description() const override;
Q_INVOKABLE bool trigger(int row, const QString &actionId, const QVariant &argument);
Q_INVOKABLE bool trigger(int row, const QString &actionId, const QVariant &argument) override;
bool enabled() const;
void setEnabled(bool enable);
......@@ -88,10 +88,10 @@ class KAStatsFavoritesModel : public PlaceholderModel
QObject *activities() const;
Q_INVOKABLE QString activityNameForId(const QString &activityId) const;
AbstractModel* favoritesModel();
AbstractModel* favoritesModel() override;
public Q_SLOTS:
virtual void refresh();
void refresh() override;
Q_SIGNALS:
void enabledChanged() const;
......
......@@ -28,7 +28,7 @@ class MenuEntryEditor : public QObject
public:
MenuEntryEditor(QObject *parent = nullptr);
~MenuEntryEditor();
~MenuEntryEditor() override;
bool canEdit(const QString &entryPath) const;
......
......@@ -35,32 +35,32 @@ class PlaceholderModel : public AbstractModel
public:
explicit PlaceholderModel(QObject *parent = nullptr);
~PlaceholderModel();
~PlaceholderModel() override;
QString description() const;
QString description() const override;
QAbstractItemModel *sourceModel() const;
virtual void setSourceModel(QAbstractItemModel *sourceModel);
bool canFetchMore(const QModelIndex &parent) const;
void fetchMore(const QModelIndex &parent);
bool canFetchMore(const QModelIndex &parent) const override;
void fetchMore(const QModelIndex &parent) override;
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
QModelIndex parent(const QModelIndex &index) const;
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
QModelIndex parent(const QModelIndex &index) const override;
virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
int rowCount(const QModelIndex &parent = QModelIndex()) const;
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
Q_INVOKABLE bool trigger(int row, const QString &actionId, const QVariant &argument);
Q_INVOKABLE bool trigger(int row, const QString &actionId, const QVariant &argument) override;
Q_INVOKABLE QString labelForRow(int row);
Q_INVOKABLE QString labelForRow(int row) override;
Q_INVOKABLE AbstractModel *modelForRow(int row);
Q_INVOKABLE AbstractModel *modelForRow(int row) override;
AbstractModel* favoritesModel();
AbstractModel* favoritesModel() override;
int separatorCount() const;
int separatorCount() const override;
int dropPlaceholderIndex() const;
void setDropPlaceholderIndex(int index);
......
......@@ -28,7 +28,7 @@ class ProcessRunner : public QObject
public:
ProcessRunner(QObject *parent = nullptr);
~ProcessRunner();
~ProcessRunner() override;
Q_INVOKABLE void runMenuEditor();
};
......
......@@ -33,7 +33,7 @@ class RecentContactsModel : public ForwardingModel
public:
explicit RecentContactsModel(QObject *parent = nullptr);
~RecentContactsModel();
~RecentContactsModel() override;
QString description() const override;
......
......@@ -31,7 +31,7 @@ class GroupSortProxy : public QSortFilterProxyModel
public:
explicit GroupSortProxy(AbstractModel *parentModel, QAbstractItemModel *sourceModel);
~GroupSortProxy();
~GroupSortProxy() override;
protected:
bool lessThan(const QModelIndex &left, const QModelIndex &right) const override;
......@@ -43,7 +43,7 @@ class InvalidAppsFilterProxy : public QSortFilterProxyModel
public:
explicit InvalidAppsFilterProxy(AbstractModel *parentModel, QAbstractItemModel *sourceModel);
~InvalidAppsFilterProxy();
~InvalidAppsFilterProxy() override;
protected:
bool filterAcceptsRow(int source_row, const QModelIndex & source_parent) const override;
......@@ -71,7 +71,7 @@ class RecentUsageModel : public ForwardingModel, public QQmlParserStatus
QObject *parent = nullptr,
IncludeUsage usage = AppsAndDocs,
int ordering = Recent);
~RecentUsageModel();
~RecentUsageModel() override;
QString description() const override;
......
......@@ -61,7 +61,7 @@ class RootModel : public AppsModel
public:
explicit RootModel(QObject *parent = nullptr);
~RootModel();
~RootModel() override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
......
......@@ -49,7 +49,7 @@ class RunnerModel : public QAbstractListModel
public:
explicit RunnerModel(QObject *parent = nullptr);
~RunnerModel();
~RunnerModel() override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
......
......@@ -37,7 +37,7 @@ class SimpleFavoritesModel : public AbstractModel
public:
explicit SimpleFavoritesModel(QObject *parent = nullptr);
~SimpleFavoritesModel();
~SimpleFavoritesModel() override;
QString description() const override;
......
......@@ -34,7 +34,7 @@ class SubMenu : public PlasmaQuick::Dialog
public:
SubMenu(QQuickItem *parent = nullptr);
~SubMenu();
~SubMenu() override;
Q_INVOKABLE QRect availableScreenRectForItem(QQuickItem *item) const;
......
......@@ -30,7 +30,7 @@ class SystemModel : public AbstractModel
public:
explicit SystemModel(QObject *parent = nullptr);
~SystemModel();
~SystemModel() override;
QString description() const override;
......
......@@ -28,7 +28,7 @@ class SystemSettings : public QObject
public:
SystemSettings(QObject *parent = nullptr);
~SystemSettings();
~SystemSettings() override;
Q_INVOKABLE QString picturesLocation() const;
};
......
......@@ -31,7 +31,7 @@ class WheelInterceptor : public QQuickItem
public:
WheelInterceptor(QQuickItem *parent = nullptr);
~WheelInterceptor();
~WheelInterceptor() override;
QQuickItem *destination() const;
void setDestination(QQuickItem *destination);
......
......@@ -30,7 +30,7 @@ class WindowSystem : public QObject
public:
explicit WindowSystem(QObject *parent = nullptr);
~WindowSystem();
~WindowSystem() override;
bool eventFilter(QObject *watched, QEvent *event) override;
......
......@@ -29,7 +29,7 @@ class Screen : public QObject
Q_OBJECT
public:
Screen(QObject* parent = nullptr);
~Screen();
~Screen() override;
Q_INVOKABLE QRect geometryForPoint(int x, int y);
Q_INVOKABLE qreal devicePixelRatioForPoint(int x, int y);
......
......@@ -57,7 +57,7 @@ class Backend : public QObject
Q_ENUM(MiddleClickAction);
Backend(QObject *parent = nullptr);
~Backend();
~Backend() override;
QQuickItem *taskManagerItem() const;
void setTaskManagerItem(QQuickItem *item);
......
......@@ -34,7 +34,7 @@ class DragHelper : public QObject
public:
explicit DragHelper(QObject *parent = nullptr);
~DragHelper();
~DragHelper() override;
int dragIconSize() const;
void setDragIconSize(int size);
......
......@@ -45,7 +45,7 @@ class Item : public QObject
public:
explicit Item(QObject *parent = nullptr);
virtual ~Item() = default;
~Item() override = default;
QUrl launcherUrl() const;
void setLauncherUrl(const QUrl &launcherUrl);
......
......@@ -28,7 +28,7 @@ class Trash : public QObject
public:
explicit Trash(QObject *parent = nullptr);
virtual ~Trash() = default;
~Trash() override = default;
Q_INVOKABLE void trashUrls(const QList<QUrl> &urls);
Q_INVOKABLE void emptyTrash();
......
......@@ -37,7 +37,7 @@ class InfoNotification : public QObject
public:
explicit InfoNotification(QObject *parent = nullptr);
~InfoNotification();
~InfoNotification() override;
bool enabled() const;
void setEnabled(bool enabled);
......
......@@ -33,7 +33,7 @@ class DirectoryPicker : public QObject
public:
explicit DirectoryPicker(QObject *parent = nullptr);
~DirectoryPicker();
~DirectoryPicker() override;
QUrl url() const;
......
......@@ -66,7 +66,7 @@ class DirLister : public KDirLister
public:
explicit DirLister(QObject *parent = nullptr);
~DirLister();
~DirLister() override;
Q_SIGNALS:
void error(const QString &string);
......@@ -131,7 +131,7 @@ class FOLDERPLUGIN_TESTS_EXPORT FolderModel : public QSortFilterProxyModel, publ
Q_ENUM(Status)
explicit FolderModel(QObject *parent = nullptr);
~FolderModel();
~FolderModel() override;
QHash<int, QByteArray> roleNames() const override;
static QHash<int, QByteArray> staticRoleNames();
......
......@@ -38,7 +38,7 @@ class LabelGenerator : public QObject
public:
explicit LabelGenerator(QObject *parent = nullptr);
~LabelGenerator();
~LabelGenerator() override;
FolderModel *folderModel() const;
void setFolderModel(FolderModel *folderModel);
......
......@@ -30,7 +30,7 @@ class MenuHelper : public QObject
public:
explicit MenuHelper(QObject *parent = nullptr);
~MenuHelper();
~MenuHelper() override;
Q_INVOKABLE QString iconName(QAction *action) const;
......
......@@ -33,7 +33,7 @@ class MimeTypesModel : public QAbstractListModel
public:
explicit MimeTypesModel(QObject *parent = nullptr);
~MimeTypesModel();
~MimeTypesModel() override;
QHash<int, QByteArray> roleNames() const override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
......
......@@ -33,7 +33,7 @@ class PlacesModel : public QSortFilterProxyModel
public:
explicit PlacesModel(QObject *parent = nullptr);
~PlacesModel();
~PlacesModel() override;
bool activityLinkingEnabled() const;
......
......@@ -39,7 +39,7 @@ class FOLDERPLUGIN_TESTS_EXPORT Positioner : public QAbstractItemModel
public:
explicit Positioner(QObject *parent = nullptr);
~Positioner();
~Positioner() override;
bool enabled() const;
void setEnabled(bool enabled);
......
......@@ -34,7 +34,7 @@ class PreviewPluginsModel : public QAbstractListModel
public:
explicit PreviewPluginsModel(QObject *parent = nullptr);
~PreviewPluginsModel();
~PreviewPluginsModel() override;
QHash<int, QByteArray> roleNames() const override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
......
......@@ -28,7 +28,7 @@ class RubberBand : public QQuickPaintedItem
public:
explicit RubberBand(QQuickItem *parent = nullptr);
~RubberBand();
~RubberBand() override;
void paint(QPainter* painter) override;
......
......@@ -30,7 +30,7 @@ class SubDialog : public PlasmaQuick::Dialog
public:
explicit SubDialog(QQuickItem *parent = nullptr);
~SubDialog();
~SubDialog() override;
Q_INVOKABLE QRect availableScreenRectForItem(QQuickItem *item) const;
......
......@@ -48,7 +48,7 @@ class FOLDERPLUGIN_TESTS_EXPORT ViewPropertiesMenu : public QObject
public:
explicit ViewPropertiesMenu(QObject *parent = nullptr);
~ViewPropertiesMenu();
~ViewPropertiesMenu() override;
QObject* menu() const;
......
......@@ -31,7 +31,7 @@ class WheelInterceptor : public QQuickItem
public:
explicit WheelInterceptor(QQuickItem *parent = nullptr);
~WheelInterceptor();
~WheelInterceptor() override;
QObject *destination() const;
void setDestination(QObject *destination);
......
......@@ -49,7 +49,7 @@ class SwitcherBackend : public QObject {
public:
explicit SwitcherBackend(QObject *parent = nullptr);
~SwitcherBackend();
~SwitcherBackend() override;
static QObject *instance(QQmlEngine *engine, QJSEngine *scriptEngine);
......
......@@ -32,7 +32,7 @@ class ActivitiesTab : public QWidget {
Q_OBJECT
public:
explicit ActivitiesTab(QWidget *parent);
~ActivitiesTab();
~ActivitiesTab() override;
public Q_SLOTS:
void defaults();
......
......@@ -33,7 +33,7 @@ class ExtraActivitiesInterface : public QObject {
public:
explicit ExtraActivitiesInterface(QObject *parent = nullptr);
~ExtraActivitiesInterface();
~ExtraActivitiesInterface() override;
public Q_SLOTS:
void setIsPrivate(const QString &activity, bool isPrivate,
......
......@@ -32,7 +32,7 @@ class PrivacyTab : public QWidget {
Q_OBJECT
public:
explicit PrivacyTab(QWidget *parent);
~PrivacyTab();
~PrivacyTab() override;
public Q_SLOTS:
void defaults();
......
......@@ -34,7 +34,7 @@ class SwitchingTab : public QWidget {
Q_OBJECT
public:
explicit SwitchingTab(QWidget *parent);
~SwitchingTab();
~SwitchingTab() override;
public Q_SLOTS:
void defaults();
......
......@@ -30,7 +30,7 @@ class ActivitySettings: public QObject {
public:
explicit ActivitySettings(QObject *parent = nullptr);
~ActivitySettings();
~ActivitySettings() override;
bool newActivityAuthorized() const;
......
......@@ -43,7 +43,7 @@ public:
{
}
~DBusCallFutureInterface()
~DBusCallFutureInterface() override
{
delete replyWatcher;
}
......
......@@ -29,7 +29,7 @@ class AdvancedDialog : public QDialog
public:
explicit AdvancedDialog(QWidget* parent, bool status);
~AdvancedDialog();
~AdvancedDialog() override;
bool onlyInKde() const;
......
......@@ -32,7 +32,7 @@ class AutoStartItem : public QTreeWidgetItem, public QObject
{
public:
AutoStartItem( const QString &service, QTreeWidgetItem *parent, Autostart* );
~AutoStartItem();
~AutoStartItem() override;
QUrl fileName() const;
......@@ -46,7 +46,7 @@ class DesktopStartItem : public AutoStartItem
{
public:
DesktopStartItem( const QString &service, QTreeWidgetItem *parent, Autostart* );
~DesktopStartItem();
~DesktopStartItem() override;
};
......@@ -57,7 +57,7 @@ class ScriptStartItem : public AutoStartItem
public:
enum ENV { START=0, SHUTDOWN=1, PRE_START=2}; //rename
ScriptStartItem( const QString &service, QTreeWidgetItem *parent, Autostart* );
~ScriptStartItem();
~ScriptStartItem() override;
void changeStartup( ScriptStartItem::ENV type );
......
......@@ -32,7 +32,7 @@ class ServerConfigModule : public KCModule, private Ui::ConfigWidget
public:
ServerConfigModule(QWidget* parent, const QVariantList& args);
~ServerConfigModule();
~ServerConfigModule() override;
public Q_SLOTS:
void load() override;
......
......@@ -41,7 +41,7 @@ class KColorCm : public KCModule, public Ui::colorSettings
public:
KColorCm(QWidget *parent, const QVariantList &);
~KColorCm();
~KColorCm() override;
public Q_SLOTS:
......
......@@ -81,7 +81,7 @@ class KTimerDialog : public KDialog
/**
* Destructor.
*/
~KTimerDialog();
~KTimerDialog() override;
/**
* Execute the dialog modelessly - see @see QDialog .
......
......@@ -42,7 +42,7 @@ class CursorThemeConfig : public KQuickAddons::ConfigModule
public:
CursorThemeConfig(QObject *parent, const QVariantList &);
~CursorThemeConfig();
~CursorThemeConfig() override;
public:
void load() override;
......
......@@ -36,7 +36,7 @@ class PreviewWidget : public QQuickPaintedItem
public:
PreviewWidget(QQuickItem *parent = nullptr);