Remove ifdef's on slots in shortcutsettings page

This commit is contained in:
Jonas Kvinge 2020-06-17 19:58:21 +02:00
parent d3958e757b
commit 64f0313d3c
2 changed files with 1 additions and 14 deletions

View File

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

View File

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