aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsettingsdialog.cpp24
-rwxr-xr-xsettingsdialog.h1
2 files changed, 23 insertions, 2 deletions
diff --git a/settingsdialog.cpp b/settingsdialog.cpp
index 23a0626..d51df95 100755
--- a/settingsdialog.cpp
+++ b/settingsdialog.cpp
@@ -92,6 +92,15 @@ GeneralTab::GeneralTab(QWidget *parent)
importConfirmationBox->setLayout(importConfirmationBoxLayout);
/*****************************************
+ * Steganography Box
+ *****************************************/
+ QGroupBox *steganoBox = new QGroupBox(tr("Show Steganography Options [Advanced]"));
+ QHBoxLayout *steganoBoxLayout = new QHBoxLayout();
+ steganoCheckBox= new QCheckBox(tr("Show Steganographic Options."), this);
+ steganoBoxLayout->addWidget(steganoCheckBox);
+ steganoBox->setLayout(steganoBoxLayout);
+
+ /*****************************************
* Language Select Box
*****************************************/
QGroupBox *langBox = new QGroupBox(tr("Language"));
@@ -112,6 +121,7 @@ GeneralTab::GeneralTab(QWidget *parent)
mainLayout->addWidget(rememberPasswordBox);
mainLayout->addWidget(saveCheckedKeysBox);
mainLayout->addWidget(importConfirmationBox);
+ mainLayout->addWidget(steganoBox);
mainLayout->addWidget(langBox);
setSettings();
mainLayout->addStretch(1);
@@ -127,10 +137,14 @@ void GeneralTab::setSettings()
{
QSettings settings;
// Keysaving
- if (settings.value("keys/keySave").toBool()) saveCheckedKeysCheckBox->setCheckState(Qt::Checked);
+ if (settings.value("keys/keySave").toBool()) {
+ saveCheckedKeysCheckBox->setCheckState(Qt::Checked);
+ }
// Remember Password
- if (settings.value("general/rememberPassword").toBool()) rememberPasswordCheckBox->setCheckState(Qt::Checked);
+ if (settings.value("general/rememberPassword").toBool()) {
+ rememberPasswordCheckBox->setCheckState(Qt::Checked);
+ }
// Language setting
QString langKey = settings.value("int/lang").toString();
@@ -142,6 +156,10 @@ void GeneralTab::setSettings()
if (settings.value("general/confirmImportKeys",Qt::Checked).toBool()){
importConfirmationCheckBox->setCheckState(Qt::Checked);
}
+
+ if (settings.value("general/steganography",Qt::Checked).toBool()){
+ steganoCheckBox->setCheckState(Qt::Checked);
+ }
}
/***********************************
@@ -156,6 +174,8 @@ void GeneralTab::applySettings()
settings.setValue("general/rememberPassword", rememberPasswordCheckBox->isChecked());
settings.setValue("int/lang", lang.key(langSelectBox->currentText()));
settings.setValue("general/confirmImportKeys", importConfirmationCheckBox->isChecked());
+ settings.setValue("general/steganography", steganoCheckBox->isChecked());
+
}
// http://www.informit.com/articles/article.aspx?p=1405555&seqNum=3
diff --git a/settingsdialog.h b/settingsdialog.h
index afc0bce..37aae65 100755
--- a/settingsdialog.h
+++ b/settingsdialog.h
@@ -59,6 +59,7 @@ class GeneralTab : public QWidget
private:
QCheckBox *rememberPasswordCheckBox;
QCheckBox *importConfirmationcheckBox;
+ QCheckBox *steganoCheckBox;
QCheckBox *saveCheckedKeysCheckBox;
QCheckBox *importConfirmationCheckBox;
QComboBox *langSelectBox;