mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-12-05 16:22:36 -08:00
Move global shortcut handling into OSUtils (#5566)
Move global shortcut handling into OSUtils
This commit is contained in:
1 parent
a6f01349e8
commit
404fd941e8
35 files changed
+1124
-1136
No files matched your search
@@ -36,10 +36,6 @@
|
||||
#include <QStandardPaths>
|
||||
#include <QtNetwork/QLocalSocket>
|
||||
|
||||
#if defined(Q_OS_WIN) || (defined(Q_OS_UNIX) && !defined(Q_OS_MACOS))
|
||||
#include "gui/osutils/OSEventFilter.h"
|
||||
#endif
|
||||
|
||||
#if defined(Q_OS_UNIX)
|
||||
#include <signal.h>
|
||||
#include <sys/socket.h>
|
||||
@@ -60,9 +56,7 @@ Application::Application(int& argc, char** argv)
|
||||
, m_alreadyRunning(false)
|
||||
, m_lockFile(nullptr)
|
||||
#if defined(Q_OS_WIN) || (defined(Q_OS_UNIX) && !defined(Q_OS_MACOS))
|
||||
, m_osEventFilter(new OSEventFilter())
|
||||
{
|
||||
installNativeEventFilter(m_osEventFilter.data());
|
||||
#else
|
||||
{
|
||||
#endif
|
||||
@@ -160,6 +154,7 @@ void Application::bootstrap()
|
||||
QApplication::setFont(QApplication::font("QMessageBox"));
|
||||
#endif
|
||||
|
||||
osUtils->registerNativeEventFilter();
|
||||
MessageBox::initializeButtonDefs();
|
||||
|
||||
#ifdef Q_OS_MACOS
|
||||
|
||||
Reference in new issue
Block a user