X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fsettingspages%2Fshortcutssettingspage.h;h=661f5e8dd64338e6670834fc2c4c2742d570851a;hp=bd3413dff25e050cc0c0b2b7527194aa6e3c1a0e;hb=HEAD;hpb=f8275c3b697f1ee43d93bb4e5e688e87ca0405ce diff --git a/src/qtui/settingspages/shortcutssettingspage.h b/src/qtui/settingspages/shortcutssettingspage.h index bd3413df..280e76f6 100644 --- a/src/qtui/settingspages/shortcutssettingspage.h +++ b/src/qtui/settingspages/shortcutssettingspage.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2010 by the Quassel Project * + * Copyright (C) 2005-2022 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #ifndef SHORTCUTSSETTINGSPAGE_H @@ -30,43 +30,45 @@ class ActionCollection; class ShortcutsModel; -class ShortcutsFilter : public QSortFilterProxyModel { - Q_OBJECT +class ShortcutsFilter : public QSortFilterProxyModel +{ + Q_OBJECT public: - ShortcutsFilter(QObject *parent = 0); + ShortcutsFilter(QObject* parent = nullptr); public slots: - void setFilterString(const QString &filterString); + void setFilterString(const QString& filterString); protected: - virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const; + bool filterAcceptsRow(int source_row, const QModelIndex& source_parent) const override; private: - QString _filterString; + QString _filterString; }; -class ShortcutsSettingsPage : public SettingsPage { - Q_OBJECT +class ShortcutsSettingsPage : public SettingsPage +{ + Q_OBJECT public: - ShortcutsSettingsPage(const QHash &actionCollections, QWidget *parent = 0); + ShortcutsSettingsPage(const QHash& actionCollections, QWidget* parent = nullptr); - inline bool hasDefaults() const { return true; } + inline bool hasDefaults() const override { return true; } public slots: - void save(); - void load(); - void defaults(); + void save() override; + void load() override; + void defaults() override; private slots: - void on_searchEdit_textChanged(const QString &text); - void keySequenceChanged(const QKeySequence &seq, const QModelIndex &conflicting); - void setWidgetStates(); - void toggledCustomOrDefault(); + void on_searchEdit_textChanged(const QString& text); + void keySequenceChanged(const QKeySequence& seq, const QModelIndex& conflicting); + void setWidgetStates(); + void toggledCustomOrDefault(); private: - Ui::ShortcutsSettingsPage ui; - ShortcutsModel *_shortcutsModel; - ShortcutsFilter *_shortcutsFilter; + Ui::ShortcutsSettingsPage ui; + ShortcutsModel* _shortcutsModel; + ShortcutsFilter* _shortcutsFilter; }; -#endif // SHORTCUTSSETTINGSPAGE_H +#endif // SHORTCUTSSETTINGSPAGE_H