Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 6ace4109 authored by Laurent Montel's avatar Laurent Montel 😁

Use Q_DECL_OVERRIDE

parent 4daf44a6
......@@ -38,15 +38,15 @@ public:
virtual ~BrightnessControl() = default;
protected:
virtual void onProfileUnload();
virtual void onWakeupFromIdle();
virtual void onIdleTimeout(int msec);
virtual void onProfileLoad();
virtual void triggerImpl(const QVariantMap& args);
virtual bool isSupported();
void onProfileUnload() Q_DECL_OVERRIDE;
void onWakeupFromIdle() Q_DECL_OVERRIDE;
void onIdleTimeout(int msec) Q_DECL_OVERRIDE;
void onProfileLoad() Q_DECL_OVERRIDE;
void triggerImpl(const QVariantMap& args) Q_DECL_OVERRIDE;
bool isSupported() Q_DECL_OVERRIDE;
public:
virtual bool loadAction(const KConfigGroup& config);
bool loadAction(const KConfigGroup& config) Q_DECL_OVERRIDE;
public Q_SLOTS:
// DBus export
......
......@@ -36,9 +36,9 @@ public:
BrightnessControlConfig(QObject*, const QVariantList&);
virtual ~BrightnessControlConfig();
virtual void save();
virtual void load();
virtual QList< QPair< QString, QWidget* > > buildUi();
void save() Q_DECL_OVERRIDE;
void load() Q_DECL_OVERRIDE;
QList< QPair< QString, QWidget* > > buildUi() Q_DECL_OVERRIDE;
private:
QSlider *m_slider;
......
......@@ -37,15 +37,15 @@ public:
virtual ~DimDisplay() = default;
protected:
virtual void onProfileUnload();
virtual void onWakeupFromIdle();
virtual void onIdleTimeout(int msec);
virtual void onProfileLoad();
virtual void triggerImpl(const QVariantMap& args);
virtual bool isSupported();
void onProfileUnload() Q_DECL_OVERRIDE;
void onWakeupFromIdle() Q_DECL_OVERRIDE;
void onIdleTimeout(int msec) Q_DECL_OVERRIDE;
void onProfileLoad() Q_DECL_OVERRIDE;
void triggerImpl(const QVariantMap& args) Q_DECL_OVERRIDE;
bool isSupported() Q_DECL_OVERRIDE;
public:
virtual bool loadAction(const KConfigGroup& config);
bool loadAction(const KConfigGroup& config) Q_DECL_OVERRIDE;
private:
void setBrightnessHelper(int screen, int keyboard);
......
......@@ -36,9 +36,9 @@ public:
DimDisplayConfig(QObject *, const QVariantList&);
virtual ~DimDisplayConfig();
virtual void save();
virtual void load();
virtual QList< QPair< QString, QWidget* > > buildUi();
void save() Q_DECL_OVERRIDE;
void load() Q_DECL_OVERRIDE;
QList< QPair< QString, QWidget* > > buildUi() Q_DECL_OVERRIDE;
private:
QSpinBox *m_spinBox;
......
......@@ -40,18 +40,18 @@ public:
explicit HandleButtonEvents(QObject* parent);
virtual ~HandleButtonEvents();
virtual bool loadAction(const KConfigGroup& config);
virtual bool isSupported();
bool loadAction(const KConfigGroup& config) Q_DECL_OVERRIDE;
bool isSupported() Q_DECL_OVERRIDE;
Q_SIGNALS:
void triggersLidActionChanged(bool triggers);
protected:
virtual void triggerImpl(const QVariantMap& args);
virtual void onProfileUnload();
virtual void onWakeupFromIdle();
virtual void onIdleTimeout(int msec);
virtual void onProfileLoad();
void triggerImpl(const QVariantMap& args) Q_DECL_OVERRIDE;
void onProfileUnload() Q_DECL_OVERRIDE;
void onWakeupFromIdle() Q_DECL_OVERRIDE;
void onIdleTimeout(int msec) Q_DECL_OVERRIDE;
void onProfileLoad() Q_DECL_OVERRIDE;
public Q_SLOTS:
int lidAction() const;
......
......@@ -37,9 +37,9 @@ public:
HandleButtonEventsConfig(QObject* parent, const QVariantList&);
virtual ~HandleButtonEventsConfig();
virtual void save();
virtual void load();
virtual QList< QPair< QString, QWidget* > > buildUi();
void save() Q_DECL_OVERRIDE;
void load() Q_DECL_OVERRIDE;
QList< QPair< QString, QWidget* > > buildUi() Q_DECL_OVERRIDE;
private:
QComboBox *m_lidCloseCombo;
......
......@@ -38,15 +38,15 @@ public:
virtual ~KeyboardBrightnessControl() = default;
protected:
virtual void onProfileUnload();
virtual void onWakeupFromIdle();
virtual void onIdleTimeout(int msec);
virtual void onProfileLoad();
virtual void triggerImpl(const QVariantMap& args);
virtual bool isSupported();
void onProfileUnload() Q_DECL_OVERRIDE;
void onWakeupFromIdle() Q_DECL_OVERRIDE;
void onIdleTimeout(int msec) Q_DECL_OVERRIDE;
void onProfileLoad() Q_DECL_OVERRIDE;
void triggerImpl(const QVariantMap& args) Q_DECL_OVERRIDE;
bool isSupported() Q_DECL_OVERRIDE;
public:
virtual bool loadAction(const KConfigGroup& config);
bool loadAction(const KConfigGroup& config) Q_DECL_OVERRIDE;
public Q_SLOTS:
void onBrightnessChangedFromBackend(const BrightnessLogic::BrightnessInfo &brightnessInfo, BackendInterface::BrightnessControlType type);
......
......@@ -36,9 +36,9 @@ public:
KeyboardBrightnessControlConfig(QObject*, const QVariantList&);
virtual ~KeyboardBrightnessControlConfig();
virtual void save();
virtual void load();
virtual QList< QPair< QString, QWidget* > > buildUi();
void save() Q_DECL_OVERRIDE;
void load() Q_DECL_OVERRIDE;
QList< QPair< QString, QWidget* > > buildUi() Q_DECL_OVERRIDE;
private:
QSlider *m_slider;
......
......@@ -37,14 +37,14 @@ public:
virtual ~RunScript();
protected:
virtual void onProfileUnload();
virtual void onWakeupFromIdle();
virtual void onIdleTimeout(int msec);
virtual void onProfileLoad();
virtual void triggerImpl(const QVariantMap& args);
void onProfileUnload() Q_DECL_OVERRIDE;
void onWakeupFromIdle() Q_DECL_OVERRIDE;
void onIdleTimeout(int msec) Q_DECL_OVERRIDE;
void onProfileLoad() Q_DECL_OVERRIDE;
void triggerImpl(const QVariantMap& args) Q_DECL_OVERRIDE;
public:
virtual bool loadAction(const KConfigGroup& config);
bool loadAction(const KConfigGroup& config) Q_DECL_OVERRIDE;
private:
int m_scriptPhase;
......
......@@ -39,9 +39,9 @@ public:
RunScriptConfig(QObject* parent, const QVariantList&);
virtual ~RunScriptConfig();
virtual void save();
virtual void load();
virtual QList< QPair< QString, QWidget* > > buildUi();
void save() Q_DECL_OVERRIDE;
void load() Q_DECL_OVERRIDE;
QList< QPair< QString, QWidget* > > buildUi() Q_DECL_OVERRIDE;
private:
KUrlRequester *m_urlRequester;
......
......@@ -55,14 +55,14 @@ public:
explicit SuspendSession(QObject *parent);
virtual ~SuspendSession();
virtual bool loadAction(const KConfigGroup& config);
bool loadAction(const KConfigGroup& config) Q_DECL_OVERRIDE;
protected:
virtual void onProfileUnload();
virtual void onWakeupFromIdle();
virtual void onIdleTimeout(int msec);
virtual void onProfileLoad();
virtual void triggerImpl(const QVariantMap& args);
void onProfileUnload() Q_DECL_OVERRIDE;
void onWakeupFromIdle() Q_DECL_OVERRIDE;
void onIdleTimeout(int msec) Q_DECL_OVERRIDE;
void onProfileLoad() Q_DECL_OVERRIDE;
void triggerImpl(const QVariantMap& args) Q_DECL_OVERRIDE;
public Q_SLOTS:
void suspendToRam();
......
......@@ -37,9 +37,9 @@ public:
SuspendSessionConfig(QObject* parent, const QVariantList&);
virtual ~SuspendSessionConfig();
virtual void save();
virtual void load();
virtual QList< QPair< QString, QWidget* > > buildUi();
void save() Q_DECL_OVERRIDE;
void load() Q_DECL_OVERRIDE;
QList< QPair< QString, QWidget* > > buildUi() Q_DECL_OVERRIDE;
private:
QSpinBox *m_idleTime;
......
......@@ -38,16 +38,16 @@ public:
virtual ~PowerDevilDPMSAction();
protected:
virtual void onProfileUnload();
virtual bool onUnloadAction();
virtual void onWakeupFromIdle();
virtual void onIdleTimeout(int msec);
virtual void onProfileLoad();
virtual void triggerImpl(const QVariantMap &args);
bool isSupported();
void onProfileUnload() Q_DECL_OVERRIDE;
bool onUnloadAction() Q_DECL_OVERRIDE;
void onWakeupFromIdle() Q_DECL_OVERRIDE;
void onIdleTimeout(int msec) Q_DECL_OVERRIDE;
void onProfileLoad() Q_DECL_OVERRIDE;
void triggerImpl(const QVariantMap &args) Q_DECL_OVERRIDE;
bool isSupported() Q_DECL_OVERRIDE;
public:
virtual bool loadAction(const KConfigGroup &config);
bool loadAction(const KConfigGroup &config) Q_DECL_OVERRIDE;
private Q_SLOTS:
void onUnavailablePoliciesChanged(PowerDevil::PolicyAgent::RequiredPolicies policies);
......
......@@ -32,9 +32,9 @@ public:
PowerDevilDPMSActionConfig(QObject* parent, const QVariantList&);
virtual ~PowerDevilDPMSActionConfig();
virtual void save();
virtual void load();
virtual QList< QPair< QString, QWidget* > > buildUi();
void save() Q_DECL_OVERRIDE;
void load() Q_DECL_OVERRIDE;
QList< QPair< QString, QWidget* > > buildUi() Q_DECL_OVERRIDE;
private:
QSpinBox *m_spinBox;
......
......@@ -56,15 +56,15 @@ public:
explicit PowerDevilUPowerBackend(QObject* parent = nullptr);
virtual ~PowerDevilUPowerBackend();
virtual void init();
void init() Q_DECL_OVERRIDE;
static bool isAvailable();
virtual int brightness(BrightnessControlType type = Screen) const;
virtual int brightnessMax(BrightnessControlType type = Screen) const;
int brightness(BrightnessControlType type = Screen) const Q_DECL_OVERRIDE;
int brightnessMax(BrightnessControlType type = Screen) const Q_DECL_OVERRIDE;
virtual int brightnessKeyPressed(PowerDevil::BrightnessLogic::BrightnessKeyType type, BrightnessControlType controlType);
virtual void setBrightness(int value, PowerDevil::BackendInterface::BrightnessControlType type = Screen);
virtual KJob* suspend(PowerDevil::BackendInterface::SuspendMethod method);
int brightnessKeyPressed(PowerDevil::BrightnessLogic::BrightnessKeyType type, BrightnessControlType controlType) Q_DECL_OVERRIDE;
void setBrightness(int value, PowerDevil::BackendInterface::BrightnessControlType type = Screen) Q_DECL_OVERRIDE;
KJob* suspend(PowerDevil::BackendInterface::SuspendMethod method) Q_DECL_OVERRIDE;
Q_SIGNALS:
void brightnessSupportQueried(bool available);
......
......@@ -41,9 +41,9 @@ public:
virtual ~ActivityPage();
void fillUi();
void load();
void save();
virtual void defaults();
void load() Q_DECL_OVERRIDE;
void save() Q_DECL_OVERRIDE;
void defaults() Q_DECL_OVERRIDE;
private Q_SLOTS:
void onActivityServiceStatusChanged(KActivities::Consumer::ServiceStatus status);
......
......@@ -30,7 +30,7 @@ public:
virtual ~ErrorOverlay();
protected:
bool eventFilter(QObject *object, QEvent *event);
bool eventFilter(QObject *object, QEvent *event) Q_DECL_OVERRIDE;
private:
void reposition();
......
......@@ -34,9 +34,9 @@ public:
virtual ~GeneralPage();
void fillUi();
void load();
void save();
virtual void defaults();
void load() Q_DECL_OVERRIDE;
void save() Q_DECL_OVERRIDE;
void defaults() Q_DECL_OVERRIDE;
private Q_SLOTS:
void configureNotifications();
......
......@@ -42,9 +42,9 @@ public:
explicit EditPage(QWidget *parent, const QVariantList &args);
virtual ~EditPage() = default;
void load();
void save();
virtual void defaults();
void load() Q_DECL_OVERRIDE;
void save() Q_DECL_OVERRIDE;
void defaults() Q_DECL_OVERRIDE;
private Q_SLOTS:
void onChanged(bool changed);
......
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