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

Use consistently override

parent 78eb5f09
......@@ -32,7 +32,7 @@ class Console : public QObject
Q_OBJECT
public:
explicit Console(const KScreen::ConfigPtr &config);
virtual ~Console();
~Console() override;
public Q_SLOTS:
void printConfig();
......
......@@ -30,7 +30,7 @@ class CollapsableButton : public QWidget
public:
explicit CollapsableButton(const QString &text, QWidget *parent = nullptr);
virtual ~CollapsableButton();
~CollapsableButton() override;
void setCollapsed(bool collapsed);
bool isCollapsed() const;
......@@ -47,8 +47,8 @@ class CollapsableButton : public QWidget
void toggled();
protected:
void paintEvent(QPaintEvent *ev) Q_DECL_OVERRIDE;
void mouseReleaseEvent(QMouseEvent *ev) Q_DECL_OVERRIDE;
void paintEvent(QPaintEvent *ev) override;
void mouseReleaseEvent(QMouseEvent *ev) override;
private:
bool mCollapsed;
......
......@@ -41,7 +41,7 @@ class ControlPanel : public QFrame
public:
explicit ControlPanel(QWidget *parent = nullptr);
virtual ~ControlPanel();
~ControlPanel() override;
void setConfig(const KScreen::ConfigPtr &config);
......
......@@ -33,7 +33,7 @@ class QMLOutputComponent : public QQmlComponent
public:
explicit QMLOutputComponent(QQmlEngine *engine, QMLScreen *parent);
virtual ~QMLOutputComponent();
~QMLOutputComponent() override;
QMLOutput* createForOutput(const KScreen::OutputPtr &output);
......
......@@ -37,12 +37,12 @@ class KCMKScreen : public KCModule
explicit KCMKScreen (QWidget* parent = nullptr, const QVariantList& args = QVariantList());
~KCMKScreen() override;
virtual QSize sizeHint() const Q_DECL_OVERRIDE;
QSize sizeHint() const override;
public Q_SLOTS:
void load() Q_DECL_OVERRIDE;
void save() Q_DECL_OVERRIDE;
void defaults() Q_DECL_OVERRIDE;
void load() override;
void save() override;
void defaults() override;
void changed();
private:
......
......@@ -41,7 +41,7 @@ class OutputConfig : public QWidget
public:
explicit OutputConfig(QWidget *parent);
explicit OutputConfig(const KScreen::OutputPtr &output, QWidget *parent = nullptr);
virtual ~OutputConfig();
~OutputConfig() override;
virtual void setOutput(const KScreen::OutputPtr &output);
KScreen::OutputPtr output() const;
......
......@@ -29,7 +29,7 @@ class PreviewWidget : public QLabel
Q_OBJECT
public:
explicit PreviewWidget(QWidget *parent=nullptr);
~PreviewWidget();
~PreviewWidget() override;
void setScale(qreal scale);
public Q_SLOTS:
QPixmap updatePixmapCache();
......
......@@ -31,7 +31,7 @@ class PrimaryOutputCombo : public QComboBox
Q_OBJECT
public:
explicit PrimaryOutputCombo(QWidget *parent = nullptr);
virtual ~PrimaryOutputCombo();
~PrimaryOutputCombo() override;
void setConfig(const KScreen::ConfigPtr &config);
KScreen::OutputPtr primaryOutput() const;
......
......@@ -34,7 +34,7 @@ public:
~ScalingConfig() override;
protected:
void accept() Q_DECL_OVERRIDE;
void accept() override;
private:
void load();
qreal scaleFactor() const;
......
......@@ -35,15 +35,15 @@ class UnifiedOutputConfig : public OutputConfig
Q_OBJECT
public:
explicit UnifiedOutputConfig(const KScreen::ConfigPtr &config, QWidget *parent);
virtual ~UnifiedOutputConfig();
~UnifiedOutputConfig() override;
void setOutput(const KScreen::OutputPtr &output) Q_DECL_OVERRIDE;
void setOutput(const KScreen::OutputPtr &output) override;
private Q_SLOTS:
void slotResolutionChanged(const QSize &size);
private:
void initUi() Q_DECL_OVERRIDE;
void initUi() override;
KScreen::OutputPtr createFakeOutput();
QString findBestMode(const KScreen::OutputPtr &output, const QSize &size);
......
......@@ -49,13 +49,13 @@ class Widget : public QWidget
public:
explicit Widget(QWidget *parent = nullptr);
virtual ~Widget();
~Widget() override;
void setConfig(const KScreen::ConfigPtr &config);
KScreen::ConfigPtr currentConfig() const;
protected:
bool eventFilter(QObject *object, QEvent *event) Q_DECL_OVERRIDE;
bool eventFilter(QObject *object, QEvent *event) override;
Q_SIGNALS:
void changed();
......
......@@ -42,7 +42,7 @@ class Q_DECL_EXPORT KScreenDaemon : public KDEDModule
public:
KScreenDaemon(QObject *parent, const QList<QVariant>&);
virtual ~KScreenDaemon();
~KScreenDaemon() override;
public Q_SLOTS:
virtual void requestConfig();
......
......@@ -50,7 +50,7 @@ Q_SIGNALS:
private:
explicit Device(QObject* parent = nullptr);
virtual ~Device();
~Device() override;
void setReady();
void fetchIsLaptop();
......
......@@ -62,7 +62,7 @@ class Generator : public QObject
private:
explicit Generator();
virtual ~Generator();
~Generator() override;
KScreen::ConfigPtr fallbackIfNeeded(const KScreen::ConfigPtr &config);
......
......@@ -31,7 +31,7 @@ class OsdTest : public QObject
public:
explicit OsdTest(QObject *parent = nullptr);
virtual ~OsdTest();
~OsdTest() override;
void setUseDBus(bool yesno);
......
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