mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
s/Q_OS_LINUX/Q_OS_UNIX/g
Enable support for UNIX like OS.
This commit is contained in:
parent
8f4c2f5c58
commit
e29d3497eb
@ -19,7 +19,7 @@
|
||||
#if defined(Q_OS_OSX)
|
||||
#include "ScreenLockListenerMac.h"
|
||||
#endif
|
||||
#if defined(Q_OS_LINUX)
|
||||
#if defined(Q_OS_UNIX)
|
||||
#include "ScreenLockListenerDBus.h"
|
||||
#endif
|
||||
#if defined(Q_OS_WIN)
|
||||
@ -36,7 +36,7 @@ ScreenLockListenerPrivate* ScreenLockListenerPrivate::instance(QWidget* parent)
|
||||
#if defined(Q_OS_OSX)
|
||||
Q_UNUSED(parent);
|
||||
return ScreenLockListenerMac::instance();
|
||||
#elif defined(Q_OS_LINUX)
|
||||
#elif defined(Q_OS_UNIX)
|
||||
return new ScreenLockListenerDBus(parent);
|
||||
#elif defined(Q_OS_WIN)
|
||||
return new ScreenLockListenerWin(parent);
|
||||
|
@ -23,7 +23,7 @@
|
||||
#include <QShortcut>
|
||||
#include <QTimer>
|
||||
|
||||
#if defined(Q_OS_LINUX) && ! defined(QT_NO_DBUS)
|
||||
#if defined(Q_OS_UNIX) && !defined(QT_NO_DBUS)
|
||||
#include <QList>
|
||||
#include <QtDBus/QtDBus>
|
||||
#endif
|
||||
@ -888,7 +888,7 @@ void MainWindow::toggleWindow()
|
||||
raise();
|
||||
activateWindow();
|
||||
|
||||
#if defined(Q_OS_LINUX) && ! defined(QT_NO_DBUS) && (QT_VERSION < QT_VERSION_CHECK(5, 9, 0))
|
||||
#if defined(Q_OS_UNIX) && !defined(QT_NO_DBUS) && (QT_VERSION < QT_VERSION_CHECK(5, 9, 0))
|
||||
// re-register global D-Bus menu (needed on Ubuntu with Unity)
|
||||
// see https://github.com/keepassxreboot/keepassxc/issues/271
|
||||
// and https://bugreports.qt.io/browse/QTBUG-58723
|
||||
|
@ -39,7 +39,7 @@
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)
|
||||
#elif Q_OS_LINUX
|
||||
#elif Q_OS_UNIX
|
||||
Q_IMPORT_PLUGIN(QXcbIntegrationPlugin)
|
||||
#endif
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user