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:
parent
426fd71745
commit
9fa9fafe75
|
@ -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()
|
||||
|
|
|
@ -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()));
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user