summaryrefslogtreecommitdiffstats
path: root/kaddressbook/editors/cryptowidget.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kaddressbook/editors/cryptowidget.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kaddressbook/editors/cryptowidget.cpp')
-rw-r--r--kaddressbook/editors/cryptowidget.cpp70
1 files changed, 35 insertions, 35 deletions
diff --git a/kaddressbook/editors/cryptowidget.cpp b/kaddressbook/editors/cryptowidget.cpp
index d2d5917f9..45a5efbaf 100644
--- a/kaddressbook/editors/cryptowidget.cpp
+++ b/kaddressbook/editors/cryptowidget.cpp
@@ -35,13 +35,13 @@
#include <kiconloader.h>
#include <klocale.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qpushbutton.h>
-#include <qvgroupbox.h>
-#include <qhbox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
+#include <tqpushbutton.h>
+#include <tqvgroupbox.h>
+#include <tqhbox.h>
#include "cryptowidget.h"
@@ -58,81 +58,81 @@ CryptoWidgetFactory::CryptoWidgetFactory()
KGlobal::iconLoader()->addAppDir( "libkleopatra" );
}
-QString CryptoWidgetFactory::pageTitle() const
+TQString CryptoWidgetFactory::pageTitle() const
{
return i18n( "Crypto Settings" );
}
-QString CryptoWidgetFactory::pageIdentifier() const
+TQString CryptoWidgetFactory::pageIdentifier() const
{
return "crypto";
}
-CryptoWidget::CryptoWidget( KABC::AddressBook *ab, QWidget *parent, const char *name )
+CryptoWidget::CryptoWidget( KABC::AddressBook *ab, TQWidget *parent, const char *name )
: KAB::ContactEditorWidget( ab, parent, name ), mReadOnly( false )
{
- QGridLayout *topLayout = new QGridLayout( this, 2, 5, KDialog::marginHint(),
+ TQGridLayout *topLayout = new TQGridLayout( this, 2, 5, KDialog::marginHint(),
KDialog::spacingHint() );
topLayout->setColStretch( 1, 1 );
topLayout->setRowStretch( 4, 1 );
- QVGroupBox* protGB = new QVGroupBox( i18n( "Allowed Protocols" ), this );
+ TQVGroupBox* protGB = new TQVGroupBox( i18n( "Allowed Protocols" ), this );
topLayout->addMultiCellWidget( protGB, 0, 0, 0, 1 );
uint msgFormat = 1;
for ( uint i = 0 ; i < NumberOfProtocols ; ++i ) {
Kleo::CryptoMessageFormat f = static_cast<Kleo::CryptoMessageFormat>( msgFormat );
- mProtocolCB[ i ] = new QCheckBox( Kleo::cryptoMessageFormatToLabel( f ), protGB );
- connect( mProtocolCB[i], SIGNAL( clicked() ), this, SLOT( setModified() ) );
+ mProtocolCB[ i ] = new TQCheckBox( Kleo::cryptoMessageFormatToLabel( f ), protGB );
+ connect( mProtocolCB[i], TQT_SIGNAL( clicked() ), this, TQT_SLOT( setModified() ) );
// Iterating over a bitfield means *2 every time
msgFormat *= 2;
}
- QLabel* l = new QLabel( i18n( "Preferred OpenPGP encryption key:" ), this );
+ TQLabel* l = new TQLabel( i18n( "Preferred OpenPGP encryption key:" ), this );
topLayout->addWidget( l, 1, 0 );
mPgpKey = new Kleo::EncryptionKeyRequester( true, Kleo::EncryptionKeyRequester::OpenPGP, this );
topLayout->addWidget( mPgpKey, 1, 1 );
- l = new QLabel( i18n( "Preferred S/MIME encryption certificate:" ), this );
+ l = new TQLabel( i18n( "Preferred S/MIME encryption certificate:" ), this );
topLayout->addWidget( l, 2, 0 );
mSmimeCert = new Kleo::EncryptionKeyRequester( true, Kleo::EncryptionKeyRequester::SMIME, this );
topLayout->addWidget( mSmimeCert, 2, 1 );
- QGroupBox* box = new QVGroupBox( i18n( "Message Preference" ), this );
+ TQGroupBox* box = new TQVGroupBox( i18n( "Message Preference" ), this );
topLayout->addMultiCellWidget( box, 3, 3, 0, 1 );
// Send preferences/sign (see certmanager/lib/kleo/enum.h)
- QHBox* hbox = new QHBox( box );
+ TQHBox* hbox = new TQHBox( box );
- l = new QLabel( i18n( "Sign:" ), hbox );
+ l = new TQLabel( i18n( "Sign:" ), hbox );
- mSignPref = new QComboBox( false, hbox );
+ mSignPref = new TQComboBox( false, hbox );
for ( unsigned int i = Kleo::UnknownSigningPreference; i < Kleo::MaxSigningPreference ; ++i )
mSignPref->insertItem( Kleo::signingPreferenceToLabel(
static_cast<Kleo::SigningPreference>( i ) ) );
// Send preferences/encrypt (see certmanager/lib/kleo/enum.h)
- hbox = new QHBox( box );
+ hbox = new TQHBox( box );
- l = new QLabel( i18n("Encrypt:"), hbox );
+ l = new TQLabel( i18n("Encrypt:"), hbox );
- mCryptPref = new QComboBox( false, hbox );
+ mCryptPref = new TQComboBox( false, hbox );
for ( unsigned int i = Kleo::UnknownPreference; i < Kleo::MaxEncryptionPreference ; ++i )
mCryptPref->insertItem( Kleo::encryptionPreferenceToLabel(
static_cast<Kleo::EncryptionPreference>( i ) ) );
// Emit "changed()" signal
- connect( mSignPref, SIGNAL( activated(int) ), this, SLOT( setModified() ) );
- connect( mCryptPref, SIGNAL( activated(int) ), this, SLOT( setModified() ) );
+ connect( mSignPref, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( setModified() ) );
+ connect( mCryptPref, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( setModified() ) );
// Not optimal, but KeyRequester doesn't emit any signals when the key changes
- connect( mPgpKey->eraseButton(), SIGNAL( clicked() ), this, SLOT( setModified() ) );
- connect( mPgpKey->dialogButton(), SIGNAL( clicked() ), this, SLOT( setModified() ) );
- connect( mSmimeCert->eraseButton(), SIGNAL( clicked() ), this, SLOT( setModified() ) );
- connect( mSmimeCert->dialogButton(), SIGNAL( clicked() ), this, SLOT( setModified() ) );
+ connect( mPgpKey->eraseButton(), TQT_SIGNAL( clicked() ), this, TQT_SLOT( setModified() ) );
+ connect( mPgpKey->dialogButton(), TQT_SIGNAL( clicked() ), this, TQT_SLOT( setModified() ) );
+ connect( mSmimeCert->eraseButton(), TQT_SIGNAL( clicked() ), this, TQT_SLOT( setModified() ) );
+ connect( mSmimeCert->dialogButton(), TQT_SIGNAL( clicked() ), this, TQT_SLOT( setModified() ) );
}
CryptoWidget::~CryptoWidget()
@@ -144,7 +144,7 @@ void CryptoWidget::loadContact( KABC::Addressee *addr )
bool blocked = signalsBlocked();
blockSignals( true );
- QStringList lst = QStringList::split( ',', addr->custom( "KADDRESSBOOK",
+ TQStringList lst = TQStringList::split( ',', addr->custom( "KADDRESSBOOK",
"CRYPTOPROTOPREF" ) );
uint cryptoFormats = Kleo::stringListToCryptoMessageFormats( lst );
@@ -161,8 +161,8 @@ void CryptoWidget::loadContact( KABC::Addressee *addr )
// We dont use the contents of addr->key(...) because we want just a ref.
// to the key/cert. stored elsewhere.
- mPgpKey->setFingerprints( QStringList::split( ",", addr->custom( "KADDRESSBOOK", "OPENPGPFP" ) ) );
- mSmimeCert->setFingerprints( QStringList::split( ",", addr->custom( "KADDRESSBOOK", "SMIMEFP" ) ) );
+ mPgpKey->setFingerprints( TQStringList::split( ",", addr->custom( "KADDRESSBOOK", "OPENPGPFP" ) ) );
+ mSmimeCert->setFingerprints( TQStringList::split( ",", addr->custom( "KADDRESSBOOK", "SMIMEFP" ) ) );
blockSignals( blocked );
}
@@ -176,7 +176,7 @@ void CryptoWidget::storeContact( KABC::Addressee *addr )
cryptoFormats |= msgFormat;
}
- QStringList lst = Kleo::cryptoMessageFormatsToStringList( cryptoFormats );
+ TQStringList lst = Kleo::cryptoMessageFormatsToStringList( cryptoFormats );
if ( !lst.isEmpty() )
addr->insertCustom( "KADDRESSBOOK", "CRYPTOPROTOPREF", lst.join( "," ) );
else
@@ -198,8 +198,8 @@ void CryptoWidget::storeContact( KABC::Addressee *addr )
else
addr->removeCustom( "KADDRESSBOOK", "CRYPTOENCRYPTPREF" );
- QStringList pfp = mPgpKey->fingerprints();
- QStringList sfp = mSmimeCert->fingerprints();
+ TQStringList pfp = mPgpKey->fingerprints();
+ TQStringList sfp = mSmimeCert->fingerprints();
if ( !pfp.isEmpty() )
addr->insertCustom( "KADDRESSBOOK", "OPENPGPFP", pfp.join( "," ) );