summaryrefslogtreecommitdiffstats
path: root/src/x11_in_qt5.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/x11_in_qt5.cpp')
-rw-r--r--src/x11_in_qt5.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/x11_in_qt5.cpp b/src/x11_in_qt5.cpp
index be90323..cba36ec 100644
--- a/src/x11_in_qt5.cpp
+++ b/src/x11_in_qt5.cpp
@@ -43,7 +43,8 @@ public:
{}
void start_idle(SuilInstance* instance,
- const LV2UI_Idle_Interface* idle_iface) {
+ const LV2UI_Idle_Interface* idle_iface)
+ {
_instance = instance;
_idle_iface = idle_iface;
if (_idle_iface && _ui_timer == 0) {
@@ -52,14 +53,16 @@ public:
}
protected:
- void timerEvent(QTimerEvent* event) {
+ void timerEvent(QTimerEvent* event) override
+ {
if (event->timerId() == _ui_timer && _idle_iface) {
_idle_iface->idle(_instance->handle);
}
QWidget::timerEvent(event);
}
- void closeEvent(QCloseEvent* event) {
+ void closeEvent(QCloseEvent* event) override
+ {
if (_ui_timer && _idle_iface) {
this->killTimer(_ui_timer);
_ui_timer = 0;