diff options
author | Nils Achtergarde <[email protected]> | 2017-12-31 00:25:06 +0000 |
---|---|---|
committer | Nils Achtergarde <[email protected]> | 2017-12-31 00:25:06 +0000 |
commit | 19ac40b1974583197fe62f167442bb0d52e62b01 (patch) | |
tree | f32720f4cd1f1cfbb001f4d9a9ba90f7ea9baa20 /settingsdialog.h | |
parent | verify files readded (4ecc173307c8c1ed13f28b6955484a484a25402a to 7c874c55c82... (diff) | |
download | gpg4usb-19ac40b1974583197fe62f167442bb0d52e62b01.tar.gz gpg4usb-19ac40b1974583197fe62f167442bb0d52e62b01.zip |
recommit of ed8fb7fab377f277811368229b5d056e7edd860a (automatically restart gpg4usb after changing keydb path (and add note that restart is done))
Diffstat (limited to 'settingsdialog.h')
-rwxr-xr-x | settingsdialog.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/settingsdialog.h b/settingsdialog.h index 20bb4d2..b709b71 100755 --- a/settingsdialog.h +++ b/settingsdialog.h @@ -158,7 +158,27 @@ signals: }; -class SettingsDialog : public QDialog + class GpgPathsTab : public QWidget + { + Q_OBJECT + public: + GpgPathsTab(QWidget *parent = 0); + void applySettings(); + +private: + QString getRelativePath(const QString dir1,const QString dir2); + QString defKeydbPath; /** The default keydb path used by gpg4usb */ + QString accKeydbPath; /** The currently used keydb path */ + QLabel *keydbLabel; + void setSettings(); + + private slots: + QString chooseKeydbDir(); + void setKeydbPathToDefault(); + + }; + + class SettingsDialog : public QDialog { Q_OBJECT @@ -169,6 +189,7 @@ class SettingsDialog : public QDialog AppearanceTab *appearanceTab; KeyserverTab *keyserverTab; AdvancedTab *advancedTab; + GpgPathsTab *gpgPathsTab; static QHash<QString, QString> listLanguages(); public slots: |