diff options
Diffstat (limited to 'kmymoney2/dialogs/kgpgkeyselectiondlg.cpp')
-rw-r--r-- | kmymoney2/dialogs/kgpgkeyselectiondlg.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/kmymoney2/dialogs/kgpgkeyselectiondlg.cpp b/kmymoney2/dialogs/kgpgkeyselectiondlg.cpp index 37ddcc5..38ff094 100644 --- a/kmymoney2/dialogs/kgpgkeyselectiondlg.cpp +++ b/kmymoney2/dialogs/kgpgkeyselectiondlg.cpp @@ -17,9 +17,9 @@ // ---------------------------------------------------------------------------- // QT Includes -#include <qlayout.h> -#include <qlabel.h> -#include <qwhatsthis.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqwhatsthis.h> // ---------------------------------------------------------------------------- // KDE Includes @@ -34,41 +34,41 @@ #include "kgpgkeyselectiondlg.h" #include <kmymoney/kgpgfile.h> -KGpgKeySelectionDlg::KGpgKeySelectionDlg(QWidget *parent, const char *name) : - KDialogBase(parent, name, true, i18n("Select additional keys"), Ok | Cancel), +KGpgKeySelectionDlg::KGpgKeySelectionDlg(TQWidget *tqparent, const char *name) : + KDialogBase(tqparent, name, true, i18n("Select additional keys"), Ok | Cancel), m_needCheckList(true), m_listOk(false), m_checkCount(0) { - QWidget* page = new QWidget(this); + TQWidget* page = new TQWidget(this); setMainWidget(page); - QVBoxLayout* topLayout = new QVBoxLayout(page, 0, spacingHint()); + TQVBoxLayout* topLayout = new TQVBoxLayout(page, 0, spacingHint()); m_listBox = new KEditListBox(page); m_listBox->setTitle(i18n("User identification")); m_listBox->setButtons( int( KEditListBox::Remove | KEditListBox::Add ) ); - QWhatsThis::add( m_listBox, i18n( "Enter the id of the key you want to use for data encryption. This can either be an e-mail address or the hexadecimal key id. In case of the key id don't forget the leading 0x." ) ); + TQWhatsThis::add( m_listBox, i18n( "Enter the id of the key you want to use for data encryption. This can either be an e-mail address or the hexadecimal key id. In case of the key id don't forget the leading 0x." ) ); topLayout->addWidget(m_listBox); // add a LED for the availability of all keys - QHBoxLayout* ledBox = new QHBoxLayout(0, 0, 6, "ledBoxLayout"); + TQHBoxLayout* ledBox = new TQHBoxLayout(0, 0, 6, "ledBoxLayout"); m_keyLed = new KLed(page); m_keyLed->setShape( KLed::Circular ); m_keyLed->setLook( KLed::Sunken ); ledBox->addWidget(m_keyLed); - ledBox->addWidget(new QLabel(i18n("Keys for all of the above user ids found"), page)); - ledBox->addItem(new QSpacerItem( 50, 20, QSizePolicy::Expanding, QSizePolicy::Minimum )); + ledBox->addWidget(new TQLabel(i18n("Keys for all of the above user ids found"), page)); + ledBox->addItem(new TQSpacerItem( 50, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum )); topLayout->addLayout(ledBox); - connect(m_listBox, SIGNAL(changed()), this, SLOT(slotIdChanged())); - connect(m_listBox, SIGNAL(added(const QString&)), this, SLOT(slotKeyListChanged())); - connect(m_listBox, SIGNAL(removed(const QString&)), this, SLOT(slotKeyListChanged())); + connect(m_listBox, TQT_SIGNAL(changed()), this, TQT_SLOT(slotIdChanged())); + connect(m_listBox, TQT_SIGNAL(added(const TQString&)), this, TQT_SLOT(slotKeyListChanged())); + connect(m_listBox, TQT_SIGNAL(removed(const TQString&)), this, TQT_SLOT(slotKeyListChanged())); } -void KGpgKeySelectionDlg::setKeys(const QStringList& list) +void KGpgKeySelectionDlg::setKeys(const TQStringList& list) { m_listBox->clear(); m_listBox->insertStringList(list); @@ -78,9 +78,9 @@ void KGpgKeySelectionDlg::setKeys(const QStringList& list) #if 0 void KGpgKeySelectionDlg::slotShowHelp(void) { - QString anchor = m_helpAnchor[m_criteriaTab->currentPage()]; + TQString anchor = m_helpAnchor[m_criteriaTab->currentPage()]; if(anchor.isEmpty()) - anchor = QString("details.search"); + anchor = TQString("details.search"); kapp->invokeHelp(anchor); } @@ -114,8 +114,8 @@ void KGpgKeySelectionDlg::slotIdChanged(void) // if it is available, then scan the current list if we need to if(keysOk) { if(m_needCheckList) { - QStringList keys = m_listBox->items(); - QStringList::const_iterator it_s; + TQStringList keys = m_listBox->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; |