1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

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
This commit is contained in:
tux3 2015-05-07 20:35:35 +02:00
parent 426fd71745
commit 9fa9fafe75
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -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()));
}