src/dialogs/configdialog.h

changeset 1217
314e12e23c3a
parent 1010
969b48eddd6b
child 1222
34def2630300
--- 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<ColorToolbarItem> 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<QListWidgetItem*>& 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<QListWidgetItem*>& haystack);
 	QString quickColorString();
 	QListWidgetItem* getSelectedQuickColor();
 	QList<ShortcutListItem*> getShortcutSelection();
 	void initExtProgs();
-	void applyToWidgetOptions (std::function<void (QWidget*, QString)> func);
+	void applyToWidgetOptions(std::function<void(QWidget*, QString)> 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;
 };

mercurial