From 9fa9fafe7509b54edf3c69eb43d97126dd68dc69 Mon Sep 17 00:00:00 2001 From: tux3 Date: Thu, 7 May 2015 20:35:35 +0200 Subject: [PATCH] Use old Qt connect syntax for QTimer::singleShot The new syntax is for Qt>=5.4 only, but we need to support back to Qt 5.2 --- src/widget/form/chatform.cpp | 2 +- src/widget/tool/flyoutoverlaywidget.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widget/form/chatform.cpp b/src/widget/form/chatform.cpp index 809156ff3..81f0bc49f 100644 --- a/src/widget/form/chatform.cpp +++ b/src/widget/form/chatform.cpp @@ -869,7 +869,7 @@ void ChatForm::onScreenshotClicked() doScreenshot(); // Give the window manager a moment to open the fullscreen grabber window - QTimer::singleShot(500, this, &ChatForm::hideFileMenu); + QTimer::singleShot(500, this, SLOT(hideFileMenu())); } void ChatForm::doScreenshot() diff --git a/src/widget/tool/flyoutoverlaywidget.cpp b/src/widget/tool/flyoutoverlaywidget.cpp index 3b2bdf2b7..777e59077 100644 --- a/src/widget/tool/flyoutoverlaywidget.cpp +++ b/src/widget/tool/flyoutoverlaywidget.cpp @@ -109,7 +109,7 @@ void FlyoutOverlayWidget::finishedAnimation() // Delay it by a few frames to let the system catch up on rendering if (hide) - QTimer::singleShot(50, this, &FlyoutOverlayWidget::hidden); + QTimer::singleShot(50, this, SIGNAL(hidden())); }