summary refs log tree commit diff
path: root/src/ui
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-02-04 15:18:26 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2020-02-04 15:18:26 +0100
commit2b531227a8d0f30d2a63e3fc14383026bb7e5fef (patch)
tree06391e5f2c0e6a0a7100781cace3bb2baf1eddd7 /src/ui
parentmodernize: raw string literals (diff)
downloadnheko-2b531227a8d0f30d2a63e3fc14383026bb7e5fef.tar.xz
modernize: use override
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/FlatButton.h4
-rw-r--r--src/ui/LoadingIndicator.h2
-rw-r--r--src/ui/RaisedButton.h2
-rw-r--r--src/ui/TextLabel.h2
4 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/FlatButton.h b/src/ui/FlatButton.h
index 764df6e9..3749a0d9 100644
--- a/src/ui/FlatButton.h
+++ b/src/ui/FlatButton.h
@@ -18,7 +18,7 @@ class FlatButtonStateMachine : public QStateMachine
 
 public:
         explicit FlatButtonStateMachine(FlatButton *parent);
-        ~FlatButtonStateMachine();
+        ~FlatButtonStateMachine() override;
 
         void setOverlayOpacity(qreal opacity);
         void setCheckedOverlayProgress(qreal opacity);
@@ -100,7 +100,7 @@ public:
                    ui::Role role,
                    QWidget *parent         = nullptr,
                    ui::ButtonPreset preset = ui::ButtonPreset::FlatPreset);
-        ~FlatButton();
+        ~FlatButton() override;
 
         void applyPreset(ui::ButtonPreset preset);
 
diff --git a/src/ui/LoadingIndicator.h b/src/ui/LoadingIndicator.h
index e72a8c48..678ef611 100644
--- a/src/ui/LoadingIndicator.h
+++ b/src/ui/LoadingIndicator.h
@@ -14,7 +14,7 @@ class LoadingIndicator : public QWidget
 public:
         LoadingIndicator(QWidget *parent = nullptr);
 
-        void paintEvent(QPaintEvent *e);
+        void paintEvent(QPaintEvent *e) override;
 
         void start();
         void stop();
diff --git a/src/ui/RaisedButton.h b/src/ui/RaisedButton.h
index 74543262..47ef1acd 100644
--- a/src/ui/RaisedButton.h
+++ b/src/ui/RaisedButton.h
@@ -13,7 +13,7 @@ class RaisedButton : public FlatButton
 public:
         explicit RaisedButton(QWidget *parent = nullptr);
         explicit RaisedButton(const QString &text, QWidget *parent = nullptr);
-        ~RaisedButton();
+        ~RaisedButton() override;
 
 protected:
         bool event(QEvent *event) override;
diff --git a/src/ui/TextLabel.h b/src/ui/TextLabel.h
index 1470d64e..56778dcc 100644
--- a/src/ui/TextLabel.h
+++ b/src/ui/TextLabel.h
@@ -22,7 +22,7 @@ signals:
         void contextMenuIsOpening();
 
 protected:
-        bool eventFilter(QObject *obj, QEvent *event);
+        bool eventFilter(QObject *obj, QEvent *event) override;
 };
 
 class TextLabel : public QTextBrowser