Formatting
This commit is contained in:
@@ -39,11 +39,11 @@
|
||||
#include <xcb/xproto.h>
|
||||
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6, 2, 0)
|
||||
#if defined(HAVE_X11EXTRAS)
|
||||
# include <QX11Info>
|
||||
#elif defined(HAVE_QPA_QPLATFORMNATIVEINTERFACE_H)
|
||||
# include <qpa/qplatformnativeinterface.h>
|
||||
#endif
|
||||
# if defined(HAVE_X11EXTRAS)
|
||||
# include <QX11Info>
|
||||
# elif defined(HAVE_QPA_QPLATFORMNATIVEINTERFACE_H)
|
||||
# include <qpa/qplatformnativeinterface.h>
|
||||
# endif
|
||||
#endif
|
||||
|
||||
const QVector<quint32> GlobalShortcut::mask_modifiers_ = QVector<quint32>() << 0 << Mod2Mask << LockMask << (Mod2Mask | LockMask);
|
||||
@@ -57,7 +57,7 @@ Display *X11Display() {
|
||||
if (!qApp) return nullptr;
|
||||
|
||||
if (QNativeInterface::QX11Application *x11_app = qApp->nativeInterface<QNativeInterface::QX11Application>()) {
|
||||
return x11_app->display();
|
||||
return x11_app->display();
|
||||
}
|
||||
return nullptr;
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ GlobalShortcutsBackend::GlobalShortcutsBackend(GlobalShortcutsManager *manager,
|
||||
|
||||
QString GlobalShortcutsBackend::name() const {
|
||||
|
||||
switch(type_) {
|
||||
switch (type_) {
|
||||
case Type_None:
|
||||
return "None";
|
||||
case Type_KDE:
|
||||
|
||||
@@ -170,29 +170,25 @@ GlobalShortcutsManager::Shortcut GlobalShortcutsManager::AddShortcut(const QStri
|
||||
bool GlobalShortcutsManager::IsKdeAvailable() {
|
||||
|
||||
return GlobalShortcutsBackendKDE::IsKDEAvailable();
|
||||
|
||||
}
|
||||
|
||||
bool GlobalShortcutsManager::IsGnomeAvailable() {
|
||||
|
||||
return GlobalShortcutsBackendGnome::IsGnomeAvailable();
|
||||
|
||||
}
|
||||
|
||||
bool GlobalShortcutsManager::IsMateAvailable() {
|
||||
|
||||
return GlobalShortcutsBackendMate::IsMateAvailable();
|
||||
|
||||
}
|
||||
|
||||
# endif // defined(Q_OS_UNIX) && !defined(Q_OS_MACOS) && defined(HAVE_DBUS)
|
||||
#endif // defined(Q_OS_UNIX) && !defined(Q_OS_MACOS) && defined(HAVE_DBUS)
|
||||
|
||||
#ifdef HAVE_X11_GLOBALSHORTCUTS
|
||||
|
||||
bool GlobalShortcutsManager::IsX11Available() {
|
||||
|
||||
return GlobalShortcutsBackendX11::IsX11Available();
|
||||
|
||||
}
|
||||
|
||||
#endif // HAVE_X11_GLOBALSHORTCUTS
|
||||
|
||||
Reference in New Issue
Block a user