summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/widgets/qmainwindow/tst_qmainwindow.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-09-11 13:05:27 +0200
committerLars Knoll <lars.knoll@qt.io>2020-09-13 21:03:31 +0200
commit2c698a6d07c1e8fb1cca417892c017f9591852c3 (patch)
tree9860cefbcdd1237b85dfabea95ff0060b7b950b6 /tests/auto/widgets/widgets/qmainwindow/tst_qmainwindow.cpp
parent6a37ca39ec7cfc2f4392784fd31936526d55e941 (diff)
Fix compiler warnings about missing overrides
Change-Id: I52bf9fe45607f4a99cafa441bd78dfe5f7adb0e1 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/widgets/widgets/qmainwindow/tst_qmainwindow.cpp')
-rw-r--r--tests/auto/widgets/widgets/qmainwindow/tst_qmainwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/widgets/widgets/qmainwindow/tst_qmainwindow.cpp b/tests/auto/widgets/widgets/qmainwindow/tst_qmainwindow.cpp
index 15890bfd9c..b0fc8a3bfa 100644
--- a/tests/auto/widgets/widgets/qmainwindow/tst_qmainwindow.cpp
+++ b/tests/auto/widgets/widgets/qmainwindow/tst_qmainwindow.cpp
@@ -65,7 +65,7 @@ public:
{
m_timerId = startTimer(200);
}
- void timerEvent(QTimerEvent*)
+ void timerEvent(QTimerEvent*) override
{
QCoreApplication::postEvent(m_tb, new QMouseEvent(QEvent::MouseButtonPress, QPoint(6, 7), Qt::LeftButton, {}, {}));
QCoreApplication::postEvent(m_tb, new QMouseEvent(QEvent::MouseMove, QPoint(7, 8), Qt::LeftButton, Qt::LeftButton, {}));
@@ -89,7 +89,7 @@ public:
m_timerId = startTimer(100);
}
- void timerEvent(QTimerEvent*)
+ void timerEvent(QTimerEvent*) override
{
QCoreApplication::postEvent(m_w, new QMouseEvent(QEvent::MouseButtonPress, QPoint(230, 370), Qt::LeftButton, {}, {}));
QCoreApplication::postEvent(m_w, new QMouseEvent(QEvent::MouseButtonRelease, QPoint(230, 370), Qt::LeftButton, {}, {}));
@@ -1468,7 +1468,7 @@ public:
{
}
- QSize sizeHint() const
+ QSize sizeHint() const override
{
return QSize(200, 200);
}