diff -r 12f9ea615cbc -r 314e12e23c3a src/dialogs/configdialog.h --- a/src/dialogs/configdialog.h Thu Jan 04 19:40:52 2018 +0200 +++ b/src/dialogs/configdialog.h Thu Jan 04 19:44:26 2018 +0200 @@ -28,12 +28,12 @@ class ShortcutListItem : public QListWidgetItem { public: - explicit ShortcutListItem (QListWidget* view = nullptr, int type = Type); + explicit ShortcutListItem(QListWidget* view = nullptr, int type = Type); QAction* action() const; QKeySequence sequence() const; - void setAction (QAction* action); - void setSequence (const QKeySequence& sequence); + void setAction(QAction* action); + void setSequence(const QKeySequence& sequence); private: QAction* m_action; @@ -65,7 +65,7 @@ DownloadTab }; - explicit ConfigDialog (QWidget* parent = nullptr, Tab defaulttab = (Tab) 0, Qt::WindowFlags f = 0); + explicit ConfigDialog(QWidget* parent = nullptr, Tab defaulttab = (Tab) 0, Qt::WindowFlags f = 0); virtual ~ConfigDialog(); QList quickColors; @@ -78,16 +78,16 @@ class QSettings* m_settings; void applySettings(); - void addShortcut (QAction* act); - void setButtonBackground (QPushButton* button, QString value); - void updateQuickColorList (ColorToolbarItem* sel = nullptr); - void setShortcutText (ShortcutListItem* item); - int getItemRow (QListWidgetItem* item, QList& haystack); + void addShortcut(QAction* act); + void setButtonBackground(QPushButton* button, QString value); + void updateQuickColorList(ColorToolbarItem* sel = nullptr); + void setShortcutText(ShortcutListItem* item); + int getItemRow(QListWidgetItem* item, QList& haystack); QString quickColorString(); QListWidgetItem* getSelectedQuickColor(); QList getShortcutSelection(); void initExtProgs(); - void applyToWidgetOptions (std::function func); + void applyToWidgetOptions(std::function func); private slots: void setButtonColor(); @@ -101,8 +101,8 @@ void slot_clearColors(); void slot_setExtProgPath(); void slot_findDownloadFolder(); - void buttonClicked (QAbstractButton* button); - void selectPage (int row); + void buttonClicked(QAbstractButton* button); + void selectPage(int row); }; // ============================================================================= @@ -112,8 +112,8 @@ Q_OBJECT public: - explicit KeySequenceDialog (QKeySequence seq, QWidget* parent = nullptr, Qt::WindowFlags f = 0); - static bool staticDialog (ShortcutListItem* item, QWidget* parent = nullptr); + explicit KeySequenceDialog(QKeySequence seq, QWidget* parent = nullptr, Qt::WindowFlags f = 0); + static bool staticDialog(ShortcutListItem* item, QWidget* parent = nullptr); QLabel* lb_output; QDialogButtonBox* bbx_buttons; @@ -123,5 +123,5 @@ void updateOutput(); private slots: - virtual void keyPressEvent (QKeyEvent* ev) override; + virtual void keyPressEvent(QKeyEvent* ev) override; };