diff options
author | Fredrik Orderud <forderud@gmail.com> | 2019-09-29 00:39:32 +0200 |
---|---|---|
committer | Fredrik Orderud <forderud@gmail.com> | 2019-09-30 10:25:50 +0200 |
commit | 83534963c50be6e63c22f4745b33ee133465c30b (patch) | |
tree | 0afef54e30883a2ed2aaa2bdf8e342b293f8ce65 | |
parent | 98fe0e8db097919ffc727194749753cc8dcb52f4 (diff) |
Explicitly override keyPressEvent methods
Done to fix annoying compiler warnings when building qtcharts.
Task-number: QTBUG-78822
Change-Id: I8b6ee8fffa203000302f4fb99eb61c00b36d7850
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
-rw-r--r-- | src/charts/axis/datetimeaxis/datetimeaxislabel_p.h | 2 | ||||
-rw-r--r-- | src/charts/axis/valueaxis/valueaxislabel_p.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/charts/axis/datetimeaxis/datetimeaxislabel_p.h b/src/charts/axis/datetimeaxis/datetimeaxislabel_p.h index 616bf14a..5746ad0f 100644 --- a/src/charts/axis/datetimeaxis/datetimeaxislabel_p.h +++ b/src/charts/axis/datetimeaxis/datetimeaxislabel_p.h @@ -51,7 +51,7 @@ class Q_CHARTS_PRIVATE_EXPORT DateTimeAxisLabel : public EditableAxisLabel public: DateTimeAxisLabel(QGraphicsItem *parent = nullptr); - void keyPressEvent(QKeyEvent *event); + void keyPressEvent(QKeyEvent *event) override; QDateTime value() const; void setValue(const QDateTime &value); diff --git a/src/charts/axis/valueaxis/valueaxislabel_p.h b/src/charts/axis/valueaxis/valueaxislabel_p.h index 44b01920..4981b0e9 100644 --- a/src/charts/axis/valueaxis/valueaxislabel_p.h +++ b/src/charts/axis/valueaxis/valueaxislabel_p.h @@ -49,7 +49,7 @@ class Q_CHARTS_PRIVATE_EXPORT ValueAxisLabel : public EditableAxisLabel public: ValueAxisLabel(QGraphicsItem *parent = nullptr); - void keyPressEvent(QKeyEvent *event); + void keyPressEvent(QKeyEvent *event) override; qreal value() const; void setValue(const qreal &value); |