diff options
author | Anne Jan Brouwer <brouwer@annejan.com> | 2015-11-24 01:19:28 +0100 |
---|---|---|
committer | Anne Jan Brouwer <annejan@noprotocol.com> | 2015-11-24 01:19:28 +0100 |
commit | 703840e9273af99698c909257efd4e93d3d72a15 (patch) | |
tree | 9271afd9b0197baaa52da180b2fcdc88e1029783 /configdialog.h | |
parent | c34054da00a7151c7d35cabdd3228b1a982d4bee (diff) |
Even more linting and one more tiny opti
Diffstat (limited to 'configdialog.h')
-rw-r--r-- | configdialog.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/configdialog.h b/configdialog.h index e6b38ba4..f24b6949 100644 --- a/configdialog.h +++ b/configdialog.h @@ -1,11 +1,11 @@ -#ifndef DIALOG_H -#define DIALOG_H +#ifndef CONFIGDIALOG_H_ +#define CONFIGDIALOG_H_ #include <QDialog> #include <QFileDialog> -#include "mainwindow.h" #include <QTableWidgetItem> #include <QCloseEvent> +#include "mainwindow.h" namespace Ui { struct UserInfo; @@ -16,7 +16,7 @@ class ConfigDialog; class ConfigDialog : public QDialog { Q_OBJECT -public: + public: explicit ConfigDialog(MainWindow *parent); ~ConfigDialog(); void setPassPath(QString); @@ -24,15 +24,15 @@ public: void setGpgPath(QString); void setStorePath(QString); void setProfiles(QHash<QString, QString>, QString); - void usePass(bool); + void usePass(bool usePass); void useClipboard(MainWindow::clipBoardType); - void useAutoclear(bool); - void setAutoclear(int); - void useAutoclearPanel(bool); - void setAutoclearPanel(int); - void hidePassword(bool); - void hideContent(bool); - void addGPGId(bool); + void useAutoclear(bool useAutoclear); + void setAutoclear(int seconds); + void useAutoclearPanel(bool useAutoclearPanel); + void setAutoclearPanel(int seconds); + void hidePassword(bool hidePassword); + void hideContent(bool hideContent); + void addGPGId(bool addGPGId); QString getPassPath(); QString getGitPath(); QString getGpgPath(); @@ -52,36 +52,36 @@ public: bool useTrayIcon(); bool hideOnClose(); bool startMinimized(); - void useTrayIcon(bool); - void hideOnClose(bool); - void startMinimized(bool); - void useGit(bool); + void useTrayIcon(bool useTrayIdon); + void hideOnClose(bool hideOnClose); + void startMinimized(bool startMinimized); + void useGit(bool useGit); bool useGit(); QString getPwgenPath(); void setPwgenPath(QString); - void usePwgen(bool); - void useSymbols(bool); - void setPasswordLength(int); + void usePwgen(bool usePwgen); + void useSymbols(bool useSymbols); + void setPasswordLength(int pwLen); void setPasswordChars(QString); bool usePwgen(); bool useSymbols(); int getPasswordLength(); QString getPasswordChars(); bool useTemplate(); - void useTemplate(bool); + void useTemplate(bool useTemplate); QString getTemplate(); void setTemplate(QString); - void templateAllFields(bool); + void templateAllFields(bool templateAllFields); bool templateAllFields(); bool autoPull(); - void autoPull(bool); + void autoPull(bool autoPull); bool autoPush(); - void autoPush(bool); + void autoPush(bool autoPush); -protected: + protected: void closeEvent(QCloseEvent *event); -private slots: + private slots: void on_radioButtonNative_clicked(); void on_radioButtonPass_clicked(); void on_toolButtonGit_clicked(); @@ -99,7 +99,7 @@ private slots: void on_checkBoxUsePwgen_clicked(); void on_checkBoxUseTemplate_clicked(); -private: + private: QScopedPointer<Ui::ConfigDialog> ui; void setGroupBoxState(); QString selectExecutable(); @@ -110,4 +110,4 @@ private: MainWindow *mainWindow; }; -#endif // DIALOG_H +#endif // CONFIGDIALOG_H_ |