summaryrefslogtreecommitdiff
path: root/ui/progressindicator.h
diff options
context:
space:
mode:
authorRusty Wagner <rusty.wagner@gmail.com>2021-02-19 19:25:53 -0500
committerRusty Wagner <rusty.wagner@gmail.com>2021-03-16 20:40:13 -0400
commite43222c3e8da9f42d0d95207fa94335165a27d9d (patch)
treee8f64b54dafd7c75f48c95bd7c7e62fed0c904a2 /ui/progressindicator.h
parenta327eb06173d0aa814460842e5280a6bf1edddf1 (diff)
Compatibility with Qt 6
Diffstat (limited to 'ui/progressindicator.h')
-rw-r--r--ui/progressindicator.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/progressindicator.h b/ui/progressindicator.h
index 3d4d58ef..56976f31 100644
--- a/ui/progressindicator.h
+++ b/ui/progressindicator.h
@@ -104,7 +104,11 @@ Q_SIGNALS:
void clicked();
protected:
+#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
void enterEvent(QEvent* event) override;
+#else
+ void enterEvent(QEnterEvent* event) override;
+#endif
void leaveEvent(QEvent* event) override;
void mouseReleaseEvent(QMouseEvent* event) override { if (event->button() == Qt::LeftButton) Q_EMIT clicked(); }
void timerEvent(QTimerEvent * event) override;