Fix missing poll connect on Windows

This commit is contained in:
Alexandre Vicente
2020-04-21 22:02:52 -03:00
parent d32957e52c
commit 12e05bfd4e
+5
View File
@@ -28,6 +28,11 @@ private:
};
NATIVE_INSTANCE(QHotkeyPrivateWin)
QHotkeyPrivateWin::QHotkeyPrivateWin(){
pollTimer.setInterval(50);
connect(&pollTimer, &QTimer::timeout, this, &QHotkeyPrivateWin::pollForHotkeyRelease);
}
bool QHotkeyPrivate::isPlatformSupported()
{
return true;