Remove Qt4 support

This commit is contained in:
Craig Drummond
2017-04-02 18:43:34 +01:00
parent e60bdafa11
commit 18e2fb6dcf
109 changed files with 137 additions and 10424 deletions

View File

@@ -30,19 +30,14 @@
Application::Application(int &argc, char **argv)
: SingleApplication(argc, argv)
{
#if QT_VERSION >= 0x050000
installNativeEventFilter(this);
#endif
QIcon::setThemeName(QLatin1String("cantata"));
setAttribute(Qt::AA_DontShowIconsInMenus, true);
#if QT_VERSION >= 0x050400
if (Settings::self()->retinaSupport()) {
setAttribute(Qt::AA_UseHighDpiPixmaps);
}
#endif
}
#if QT_VERSION >= 0x050000
bool Application::nativeEventFilter(const QByteArray &, void *message, long *result)
{
MSG *msg = static_cast<MSG *>(message);
@@ -51,13 +46,4 @@ bool Application::nativeEventFilter(const QByteArray &, void *message, long *res
}
return false;
}
#else
bool Application::winEventFilter(MSG *msg, long *result)
{
if (msg && WM_POWERBROADCAST==msg->message && PBT_APMRESUMEAUTOMATIC==msg->wParam) {
emit reconnect();
}
return QCoreApplication::winEventFilter(msg, result);
}
#endif