summaryrefslogtreecommitdiffstats
path: root/kmymoney2/dialogs/settings/ksettingsgpg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/dialogs/settings/ksettingsgpg.cpp')
-rw-r--r--kmymoney2/dialogs/settings/ksettingsgpg.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/kmymoney2/dialogs/settings/ksettingsgpg.cpp b/kmymoney2/dialogs/settings/ksettingsgpg.cpp
index 2dba83e..133700d 100644
--- a/kmymoney2/dialogs/settings/ksettingsgpg.cpp
+++ b/kmymoney2/dialogs/settings/ksettingsgpg.cpp
@@ -17,9 +17,9 @@
// ----------------------------------------------------------------------------
// QT Includes
-#include <qgroupbox.h>
-#include <qcheckbox.h>
-#include <qregexp.h>
+#include <tqgroupbox.h>
+#include <tqcheckbox.h>
+#include <tqregexp.h>
// ----------------------------------------------------------------------------
// KDE Includes
@@ -40,8 +40,8 @@
#define RECOVER_KEY_ID "0xD2B08440"
#define RECOVER_KEY_ID_FULL "59B0F826D2B08440"
-KSettingsGpg::KSettingsGpg(QWidget* parent, const char* name) :
- KSettingsGpgDecl(parent, name),
+KSettingsGpg::KSettingsGpg(TQWidget* tqparent, const char* name) :
+ KSettingsGpgDecl(tqparent, name),
m_checkCount(0),
m_needCheckList(true),
m_listOk(false)
@@ -51,11 +51,11 @@ KSettingsGpg::KSettingsGpg(QWidget* parent, const char* name) :
// don't show the widget in which the master key is actually kept
kcfg_GpgRecipient->hide();
- connect(kcfg_WriteDataEncrypted, SIGNAL(toggled(bool)), this, SLOT(slotStatusChanged(bool)));
- connect(m_masterKeyCombo, SIGNAL(activated(int)), this, SLOT(slotIdChanged()));
- connect(kcfg_GpgRecipientList, SIGNAL(changed()), this, SLOT(slotIdChanged()));
- connect(kcfg_GpgRecipientList, SIGNAL(added(const QString&)), this, SLOT(slotKeyListChanged()));
- connect(kcfg_GpgRecipientList, SIGNAL(removed(const QString&)), this, SLOT(slotKeyListChanged()));
+ connect(kcfg_WriteDataEncrypted, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotStatusChanged(bool)));
+ connect(m_masterKeyCombo, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotIdChanged()));
+ connect(kcfg_GpgRecipientList, TQT_SIGNAL(changed()), this, TQT_SLOT(slotIdChanged()));
+ connect(kcfg_GpgRecipientList, TQT_SIGNAL(added(const TQString&)), this, TQT_SLOT(slotKeyListChanged()));
+ connect(kcfg_GpgRecipientList, TQT_SIGNAL(removed(const TQString&)), this, TQT_SLOT(slotKeyListChanged()));
// Initial state setup
slotStatusChanged(kcfg_WriteDataEncrypted->isChecked());
@@ -93,8 +93,8 @@ void KSettingsGpg::slotIdChanged(void)
// if it is available, then scan the current list if we need to
if(keysOk) {
if(m_needCheckList) {
- QStringList keys = kcfg_GpgRecipientList->items();
- QStringList::const_iterator it_s;
+ TQStringList keys = kcfg_GpgRecipientList->items();
+ TQStringList::const_iterator it_s;
for(it_s = keys.begin(); keysOk && it_s != keys.end(); ++it_s) {
if(!KGPGFile::keyAvailable(*it_s))
keysOk = false;
@@ -115,7 +115,7 @@ void KSettingsGpg::slotIdChanged(void)
// if we have a master key, we store it in the hidden widget
if(m_masterKeyCombo->currentItem() != 0) {
- QRegExp keyExp(".* \\((.*)\\)");
+ TQRegExp keyExp(".* \\((.*)\\)");
if(keyExp.search(m_masterKeyCombo->currentText()) != -1) {
kcfg_GpgRecipient->setText(keyExp.cap(1));
}
@@ -131,10 +131,10 @@ void KSettingsGpg::slotIdChanged(void)
void KSettingsGpg::show(void)
{
- QString masterKey;
+ TQString masterKey;
if(m_masterKeyCombo->currentItem() != 0) {
- QRegExp keyExp(".* \\((.*)\\)");
+ TQRegExp keyExp(".* \\((.*)\\)");
if(keyExp.search(m_masterKeyCombo->currentText()) != -1) {
masterKey = keyExp.cap(1);
}
@@ -143,19 +143,19 @@ void KSettingsGpg::show(void)
// fill the secret key combobox with a fresh list
m_masterKeyCombo->clear();
- QStringList keyList;
+ TQStringList keyList;
KGPGFile::secretKeyList(keyList);
- for(QStringList::iterator it = keyList.begin(); it != keyList.end(); ++it) {
- QStringList fields = QStringList::split(":", *it);
+ for(TQStringList::iterator it = keyList.begin(); it != keyList.end(); ++it) {
+ TQStringList fields = TQStringList::split(":", *it);
if(fields[0] != RECOVER_KEY_ID_FULL) {
- // replace parenthesis in name field with brackets
- QString name = fields[1];
- name.replace('(', "[");
- name.replace(')', "]");
- name = QString("%1 (0x%2)").arg(name).arg(fields[0]);
+ // replace tqparenthesis in name field with brackets
+ TQString name = fields[1];
+ name.tqreplace('(', "[");
+ name.tqreplace(')', "]");
+ name = TQString("%1 (0x%2)").tqarg(name).tqarg(fields[0]);
m_masterKeyCombo->insertItem(name);
- if(name.contains(masterKey))
+ if(name.tqcontains(masterKey))
m_masterKeyCombo->setCurrentItem(name);
}
}
@@ -177,7 +177,7 @@ void KSettingsGpg::slotStatusChanged(bool state)
state = false;
if((state == true) && (oncePerSession == true) && isVisible()) {
- KMessageBox::information(this, QString("<qt>%1</qt>").arg(i18n("You have turned on the GPG encryption support. This means, that new files will be stored encrypted. Existing files will not be encrypted automatically. To achieve encryption of existing files, please use the <b>File/Save as...</b> feature and store the file under a different name. Once confident with the result, feel free to delete the old file and rename the encrypted one to the old name.")), i18n("GPG encryption activated"), "GpgEncryptionActivated");
+ KMessageBox::information(this, TQString("<qt>%1</qt>").tqarg(i18n("You have turned on the GPG encryption support. This means, that new files will be stored encrypted. Existing files will not be encrypted automatically. To achieve encryption of existing files, please use the <b>File/Save as...</b> feature and store the file under a different name. Once confident with the result, feel free to delete the old file and rename the encrypted one to the old name.")), i18n("GPG encryption activated"), "GpgEncryptionActivated");
oncePerSession = false;
}