Remove ifdef's on slots in shortcutsettings page
This commit is contained in:
parent
d3958e757b
commit
64f0313d3c
|
@ -193,8 +193,6 @@ void GlobalShortcutsSettingsPage::Save() {
|
|||
|
||||
}
|
||||
|
||||
#if !defined(Q_OS_WIN) && !defined(Q_OS_MACOS)
|
||||
#ifdef HAVE_X11
|
||||
void GlobalShortcutsSettingsPage::X11Changed(bool) {
|
||||
|
||||
if (!ui_->widget_x11->isVisibleTo(this)) return;
|
||||
|
@ -211,8 +209,7 @@ void GlobalShortcutsSettingsPage::X11Changed(bool) {
|
|||
}
|
||||
|
||||
}
|
||||
#endif // HAVE_X11
|
||||
#ifdef HAVE_DBUS
|
||||
|
||||
void GlobalShortcutsSettingsPage::GSDChanged(bool) {
|
||||
|
||||
if (!ui_->widget_gsd->isVisibleTo(this)) return;
|
||||
|
@ -249,9 +246,6 @@ void GlobalShortcutsSettingsPage::OpenGnomeKeybindingProperties() {
|
|||
}
|
||||
|
||||
}
|
||||
#endif // HAVE_DBUS
|
||||
|
||||
#endif // !defined(Q_OS_WIN) && !defined(Q_OS_MACOS)
|
||||
|
||||
void GlobalShortcutsSettingsPage::SetShortcut(const QString &id, const QKeySequence &key) {
|
||||
|
||||
|
|
|
@ -55,16 +55,9 @@ class GlobalShortcutsSettingsPage : public SettingsPage {
|
|||
void Save() override;
|
||||
|
||||
private slots:
|
||||
|
||||
#if !defined(Q_OS_WIN) && !defined(Q_OS_MACOS)
|
||||
#ifdef HAVE_X11
|
||||
void X11Changed(bool);
|
||||
#endif
|
||||
#ifdef HAVE_DBUS
|
||||
void GSDChanged(bool);
|
||||
void OpenGnomeKeybindingProperties();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
void ItemClicked(QTreeWidgetItem*);
|
||||
void NoneClicked();
|
||||
|
|
Loading…
Reference in New Issue