aboutsummaryrefslogtreecommitdiffstats
path: root/include/ui/SettingsDialog.h
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-06-18 08:47:06 +0000
committerSaturneric <[email protected]>2021-06-18 08:47:06 +0000
commit4bd6e0a8f18603e1ea0600fd6df97d2bafef627f (patch)
tree98c72ecde2eb7605f4371fbe4ffecc5468688a71 /include/ui/SettingsDialog.h
parentFixed. (diff)
downloadGpgFrontend-4bd6e0a8f18603e1ea0600fd6df97d2bafef627f.tar.gz
GpgFrontend-4bd6e0a8f18603e1ea0600fd6df97d2bafef627f.zip
Improve project configuration files.
Set the TS file to update automatically. Set to automatically generate QM files. Adjust the configuration file reading path. Fix the refresh logic of the configuration file. Set icon for executable file Improve the about page. Adjust the configuration file reading and setting related to Key Server.
Diffstat (limited to '')
-rwxr-xr-xinclude/ui/SettingsDialog.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/ui/SettingsDialog.h b/include/ui/SettingsDialog.h
index b3a70976..d2139a2e 100755
--- a/include/ui/SettingsDialog.h
+++ b/include/ui/SettingsDialog.h
@@ -38,6 +38,10 @@ public:
void applySettings();
private:
+
+ QString appPath;
+ QSettings settings;
+
QCheckBox *rememberPasswordCheckBox;
[[maybe_unused]] QCheckBox *importConfirmationcheckBox{};
QCheckBox *saveCheckedKeysCheckBox;
@@ -73,6 +77,10 @@ public:
void applySettings();
private:
+
+ QString appPath;
+ QSettings settings;
+
QCheckBox *mimeParseCheckBox;
QCheckBox *mimeQPCheckBox;
QCheckBox *mimeOpenAttachmentCheckBox;
@@ -95,6 +103,10 @@ public:
void applySettings();
private:
+
+ QString appPath;
+ QSettings settings;
+
QButtonGroup *iconStyleGroup;
QRadioButton *iconSizeSmall;
QRadioButton *iconSizeMedium;
@@ -122,6 +134,10 @@ public:
void applySettings();
private:
+
+ QString appPath;
+ QSettings settings;
+
QComboBox *comboBox;
QLineEdit *newKeyServerEdit;
@@ -146,6 +162,10 @@ public:
void applySettings();
private:
+
+ QString appPath;
+ QSettings settings;
+
QCheckBox *steganoCheckBox;
signals:
@@ -164,6 +184,9 @@ public:
private:
static QString getRelativePath(const QString& dir1, const QString& dir2);
+ QString appPath;
+ QSettings settings;
+
QString defKeydbPath; /** The default keydb path used by gpg4usb */
QString accKeydbPath; /** The currently used keydb path */
QLabel *keydbLabel;