s/Q_OS_LINUX/Q_OS_UNIX/g

Enable support for UNIX like OS.
This commit is contained in:
Rafael Sadowski 2017-10-03 09:47:33 +02:00 committed by Janek Bevendorff
parent 8f4c2f5c58
commit e29d3497eb
3 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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

View File

@ -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