aboutsummaryrefslogtreecommitdiffstats
path: root/settingsdialog.cpp
diff options
context:
space:
mode:
authorubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-12-06 22:32:15 +0000
committerubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-12-06 22:32:15 +0000
commit2f0cf039447ab86de879bc4ec6403af726585835 (patch)
treeb98a52994d905cfc6d445c0bc606a09b12883f4a /settingsdialog.cpp
parentcopyright headers (diff)
downloadgpg4usb-2f0cf039447ab86de879bc4ec6403af726585835.tar.gz
gpg4usb-2f0cf039447ab86de879bc4ec6403af726585835.zip
add option for steganography to settingsdialog
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@673 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'settingsdialog.cpp')
-rwxr-xr-xsettingsdialog.cpp24
1 files changed, 22 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