Commit 0c4ed315 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use override keyword

parent 2f299ee1
......@@ -43,7 +43,7 @@ class App : public QGuiApplication {
public:
typedef QPair< uint, uint > TriggerKey;
App(int &argc, char* argv[]);
virtual ~App();
~App() override;
void setTriggerKeys(QList< TriggerKey > triggersList);
void setDoGrab(bool doGrab);
bool keyboardGrabbed() { return m_keyboardGrabbed; }
......
......@@ -30,7 +30,7 @@
class EngineManager {
public:
EngineManager();
virtual ~EngineManager();
~EngineManager() override;
void setEngines(IBusEngineDesc** engines);
IBusEngineDesc** engines() { return m_engines; }
......
......@@ -25,7 +25,7 @@
class PropertyManager {
public:
PropertyManager();
virtual ~PropertyManager();
~PropertyManager() override;
void setProperties(IBusPropList* props);
void updateProperty(IBusProperty* prop);
......
......@@ -64,7 +64,7 @@ public:
};
explicit PagerModel(QObject *parent = nullptr);
virtual ~PagerModel();
~PagerModel() override;
QHash<int, QByteArray> roleNames() const override;
......
......@@ -36,7 +36,7 @@ public:
};
explicit WindowModel(PagerModel *parent);
virtual ~WindowModel();
~WindowModel() override;
QHash<int, QByteArray> roleNames() const override;
......
......@@ -51,7 +51,7 @@ class Backend : public QObject, protected QDBusContext
public:
explicit Backend(QObject *parent = nullptr);
virtual ~Backend();
~Backend() override;
bool available() const;
bool hasLauncher(const QString &storageId) const;
......
......@@ -56,7 +56,7 @@ public:
};
explicit DirModel(QObject* parent=nullptr);
virtual ~DirModel();
~DirModel() override;
QHash<int, QByteArray> roleNames() const override;
......
......@@ -47,7 +47,7 @@ class KdePlatformDependent : public QObject, public Attica::PlatformDependent
public:
KdePlatformDependent();
virtual ~KdePlatformDependent();
~KdePlatformDependent() override;
QList<QUrl> getDefaultProviderFiles() const override;
void addDefaultProviderFile(const QUrl& url) override;
void removeDefaultProviderFile(const QUrl& url) override;
......
......@@ -37,7 +37,7 @@ class PanelAgent: public QObject, protected QDBusContext
public:
PanelAgent(QObject *parent);
virtual ~PanelAgent();
~PanelAgent() override;
void configure();
void created();
......
......@@ -40,7 +40,7 @@ class SortedActivitiesModel : public QSortFilterProxyModel {
public:
SortedActivitiesModel(const QVector<KActivities::Info::State> &states, QObject *parent = nullptr);
virtual ~SortedActivitiesModel();
~SortedActivitiesModel() override;
QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const override;
......
......@@ -33,7 +33,7 @@ class KAccessConfig : public KCModule
public:
KAccessConfig(QWidget *parent, const QVariantList&);
virtual ~KAccessConfig();
~KAccessConfig() override;
void load() override;
void save() override;
......
......@@ -36,7 +36,7 @@ class PreviewWidget : public QFrame, Ui::preview
public:
PreviewWidget(QWidget *parent);
virtual ~PreviewWidget();
~PreviewWidget() override;
void setPalette(const KSharedConfigPtr &config,
QPalette::ColorGroup state = QPalette::Active);
......
......@@ -37,7 +37,7 @@ class SetPreviewWidget : public QFrame, Ui::setpreview
public:
SetPreviewWidget(QWidget *parent);
virtual ~SetPreviewWidget();
~SetPreviewWidget() override;
void setPalette(const KSharedConfigPtr &config, KColorScheme::ColorSet);
......
......@@ -46,7 +46,7 @@ class CfgComponent: public QWidget, public Ui::ComponentConfig_UI, public CfgPlu
Q_OBJECT
public:
CfgComponent(QWidget *parent);
virtual ~CfgComponent();
~CfgComponent() override;
void load(KConfig *cfg) override;
void save(KConfig *cfg) override;
void defaults() override;
......@@ -67,7 +67,7 @@ Q_OBJECT
public:
ComponentChooser(QWidget *parent=0);
virtual ~ComponentChooser();
~ComponentChooser() override;
void load();
void save();
void restoreDefault();
......
......@@ -24,7 +24,7 @@ class CfgBrowser: public QWidget, public Ui::BrowserConfig_UI, public CfgPlugin
Q_OBJECT
public:
CfgBrowser(QWidget *parent);
virtual ~CfgBrowser();
~CfgBrowser() override;
void load(KConfig *cfg) override;
void save(KConfig *cfg) override;
void defaults() override;
......
......@@ -26,7 +26,7 @@ class CfgEmailClient: public QWidget, public Ui::EmailClientConfig_UI, public Cf
Q_OBJECT
public:
CfgEmailClient(QWidget *parent);
virtual ~CfgEmailClient();
~CfgEmailClient() override;
void load(KConfig *cfg) override;
void save(KConfig *cfg) override;
void defaults() override;
......
......@@ -29,7 +29,7 @@ class CfgFileManager: public QWidget, public Ui::FileManagerConfig_UI, public Cf
Q_OBJECT
public:
CfgFileManager(QWidget *parent);
virtual ~CfgFileManager();
~CfgFileManager() override;
void load(KConfig *cfg) override;
void save(KConfig *cfg) override;
void defaults() override;
......
......@@ -26,7 +26,7 @@ class CfgTerminalEmulator: public QWidget, public Ui::TerminalEmulatorConfig_UI,
Q_OBJECT
public:
CfgTerminalEmulator(QWidget *parent);
virtual ~CfgTerminalEmulator();
~CfgTerminalEmulator() override;
void load(KConfig *cfg) override;
void save(KConfig *cfg) override;
void defaults() override;
......
......@@ -37,7 +37,7 @@ class IconThemesConfig : public KCModule
public:
IconThemesConfig(QWidget *parent);
virtual ~IconThemesConfig();
~IconThemesConfig() override;
void loadThemes();
bool installThemes(const QStringList &themes, const QString &archiveName);
......
......@@ -30,7 +30,7 @@ template <typename T> class QList;
class KeyboardLayoutActionCollection : public KActionCollection {
public:
KeyboardLayoutActionCollection(QObject* parent, bool configAction);
virtual ~KeyboardLayoutActionCollection();
~KeyboardLayoutActionCollection() override;
QAction* getToggleAction();
// KAction* getAction(const LayoutUnit& layoutUnit);
......
Markdown is supported
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