diff options
author | Daniel Molkentin <danimo@owncloud.com> | 2015-05-05 11:23:59 +0300 |
---|---|---|
committer | Daniel Molkentin <danimo@owncloud.com> | 2015-05-05 11:23:59 +0300 |
commit | bfba6f752c52cb95a316836184109641af825618 (patch) | |
tree | cc7085883974e1cd46e684e8123141840d054a54 /src | |
parent | ae17f58b80208df0e6318dbabbfabd7ae842332e (diff) |
Remove dead code
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/application.cpp | 24 | ||||
-rw-r--r-- | src/gui/application.h | 5 |
2 files changed, 0 insertions, 29 deletions
diff --git a/src/gui/application.cpp b/src/gui/application.cpp index 5898d76e0..6ab33ad98 100644 --- a/src/gui/application.cpp +++ b/src/gui/application.cpp @@ -472,30 +472,6 @@ void Application::setHelp() _helpOnly = true; } -#if defined(Q_OS_WIN) && QT_VERSION < QT_VERSION_CHECK(5,0,0) -bool Application::winEventFilter(MSG *pMsg, long *result) -{ - if (pMsg->message == WM_POWERBROADCAST) { - switch(pMsg->wParam) { - case PBT_APMPOWERSTATUSCHANGE: - qDebug() << "WM_POWERBROADCAST: Power state changed"; - break; - case PBT_APMSUSPEND: - qDebug() << "WM_POWERBROADCAST: Entering low power state"; - break; - case PBT_APMRESUMEAUTOMATIC: - qDebug() << "WM_POWERBROADCAST: Resuming from low power state"; - break; - default: - break; - } - return true; - } - - return SharedTools::QtSingleApplication::winEventFilter(pMsg, result); -} -#endif - QString substLang(const QString &lang) { // Map the more apropriate script codes diff --git a/src/gui/application.h b/src/gui/application.h index 90fee1009..3657d791b 100644 --- a/src/gui/application.h +++ b/src/gui/application.h @@ -67,11 +67,6 @@ protected: void enterNextLogFile(); bool checkConfigExists(bool openSettings); - // reimplemented -#if defined(Q_OS_WIN) && QT_VERSION < QT_VERSION_CHECK(5,0,0) - bool winEventFilter( MSG * message, long * result ); -#endif - signals: void folderRemoved(); void folderStateChanged(Folder*); |