summaryrefslogtreecommitdiffstats
path: root/certmanager/lib/ui/keyapprovaldialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'certmanager/lib/ui/keyapprovaldialog.cpp')
-rw-r--r--certmanager/lib/ui/keyapprovaldialog.cpp62
1 files changed, 31 insertions, 31 deletions
diff --git a/certmanager/lib/ui/keyapprovaldialog.cpp b/certmanager/lib/ui/keyapprovaldialog.cpp
index 7af85a0b..d45b64a8 100644
--- a/certmanager/lib/ui/keyapprovaldialog.cpp
+++ b/certmanager/lib/ui/keyapprovaldialog.cpp
@@ -49,13 +49,13 @@
#include <kglobalsettings.h>
#include <kseparator.h>
-#include <qstringlist.h>
-#include <qframe.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qcombobox.h>
-#include <qscrollview.h>
-#include <qpushbutton.h>
+#include <tqstringlist.h>
+#include <tqframe.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqcombobox.h>
+#include <tqscrollview.h>
+#include <tqpushbutton.h>
#include <gpgmepp/key.h>
@@ -84,8 +84,8 @@ static int pref2cb( Kleo::EncryptionPreference p ) {
}
}
-static QStringList preferencesStrings() {
- return QStringList() << i18n("<none>")
+static TQStringList preferencesStrings() {
+ return TQStringList() << i18n("<none>")
<< i18n("Never Encrypt with This Key")
<< i18n("Always Encrypt with This Key")
<< i18n("Encrypt Whenever Encryption is Possible")
@@ -98,15 +98,15 @@ struct Kleo::KeyApprovalDialog::Private {
Private() : selfRequester( 0 ), prefsChanged( false ) {}
Kleo::KeyRequester * selfRequester;
- QStringList addresses;
+ TQStringList addresses;
std::vector<Kleo::KeyRequester*> requesters;
- std::vector<QComboBox*> preferences;
+ std::vector<TQComboBox*> preferences;
bool prefsChanged;
};
Kleo::KeyApprovalDialog::KeyApprovalDialog( const std::vector<Item> & recipients,
const std::vector<GpgME::Key> & sender,
- QWidget * parent, const char * name,
+ TQWidget * parent, const char * name,
bool modal )
: KDialogBase( parent, name, modal, i18n("Encryption Key Approval"), Ok|Cancel, Ok ),
d( 0 )
@@ -115,18 +115,18 @@ Kleo::KeyApprovalDialog::KeyApprovalDialog( const std::vector<Item> & recipients
d = new Private();
- QFrame *page = makeMainWidget();
- QVBoxLayout * vlay = new QVBoxLayout( page, 0, spacingHint() );
+ TQFrame *page = makeMainWidget();
+ TQVBoxLayout * vlay = new TQVBoxLayout( page, 0, spacingHint() );
- vlay->addWidget( new QLabel( i18n("The following keys will be used for encryption:"), page ) );
+ vlay->addWidget( new TQLabel( i18n("The following keys will be used for encryption:"), page ) );
- QScrollView * sv = new QScrollView( page );
- sv->setResizePolicy( QScrollView::AutoOneFit );
+ TQScrollView * sv = new TQScrollView( page );
+ sv->setResizePolicy( TQScrollView::AutoOneFit );
vlay->addWidget( sv );
- QWidget * view = new QWidget( sv->viewport() );
+ TQWidget * view = new TQWidget( sv->viewport() );
- QGridLayout * glay = new QGridLayout( view, 3, 2, marginHint(), spacingHint() );
+ TQGridLayout * glay = new TQGridLayout( view, 3, 2, marginHint(), spacingHint() );
glay->setColStretch( 1, 1 );
sv->addChild( view );
@@ -134,7 +134,7 @@ Kleo::KeyApprovalDialog::KeyApprovalDialog( const std::vector<Item> & recipients
if ( !sender.empty() ) {
++row;
- glay->addWidget( new QLabel( i18n("Your keys:"), view ), row, 0 );
+ glay->addWidget( new TQLabel( i18n("Your keys:"), view ), row, 0 );
d->selfRequester = new EncryptionKeyRequester( true, EncryptionKeyRequester::AllProtocols, view );
d->selfRequester->setKeys( sender );
glay->addWidget( d->selfRequester, row, 1 );
@@ -142,28 +142,28 @@ Kleo::KeyApprovalDialog::KeyApprovalDialog( const std::vector<Item> & recipients
glay->addMultiCellWidget( new KSeparator( Horizontal, view ), row, row, 0, 1 );
}
- const QStringList prefs = preferencesStrings();
+ const TQStringList prefs = preferencesStrings();
for ( std::vector<Item>::const_iterator it = recipients.begin() ; it != recipients.end() ; ++it ) {
++row;
- glay->addWidget( new QLabel( i18n("Recipient:"), view ), row, 0 );
- glay->addWidget( new QLabel( it->address, view ), row, 1 );
+ glay->addWidget( new TQLabel( i18n("Recipient:"), view ), row, 0 );
+ glay->addWidget( new TQLabel( it->address, view ), row, 1 );
d->addresses.push_back( it->address );
++row;
- glay->addWidget( new QLabel( i18n("Encryption keys:"), view ), row, 0 );
+ glay->addWidget( new TQLabel( i18n("Encryption keys:"), view ), row, 0 );
KeyRequester * req = new EncryptionKeyRequester( true, EncryptionKeyRequester::AllProtocols, view );
req->setKeys( it->keys );
glay->addWidget( req, row, 1 );
d->requesters.push_back( req );
++row;
- glay->addWidget( new QLabel( i18n("Encryption preference:"), view ), row, 0 );
- QComboBox * cb = new QComboBox( false, view );
+ glay->addWidget( new TQLabel( i18n("Encryption preference:"), view ), row, 0 );
+ TQComboBox * cb = new TQComboBox( false, view );
cb->insertStringList( prefs );
glay->addWidget( cb, row, 1 );
cb->setCurrentItem( pref2cb( it->pref ) );
- connect( cb, SIGNAL(activated(int)), SLOT(slotPrefsChanged()) );
+ connect( cb, TQT_SIGNAL(activated(int)), TQT_SLOT(slotPrefsChanged()) );
d->preferences.push_back( cb );
}
@@ -189,8 +189,8 @@ Kleo::KeyApprovalDialog::KeyApprovalDialog( const std::vector<Item> & recipients
+ 2;
// don't make the dialog too large
- const QRect desk = KGlobalSettings::desktopGeometry( this );
- setInitialSize( QSize( kMin( dialogWidth, 3 * desk.width() / 4 ),
+ const TQRect desk = KGlobalSettings::desktopGeometry( this );
+ setInitialSize( TQSize( kMin( dialogWidth, 3 * desk.width() / 4 ),
kMin( dialogHeight, 7 * desk.height() / 8 ) ) );
}
@@ -208,9 +208,9 @@ std::vector<Kleo::KeyApprovalDialog::Item> Kleo::KeyApprovalDialog::items() cons
std::vector<Item> result;
result.reserve( d->requesters.size() );
- QStringList::const_iterator ait = d->addresses.begin();
+ TQStringList::const_iterator ait = d->addresses.begin();
std::vector<KeyRequester*>::const_iterator rit = d->requesters.begin();
- std::vector<QComboBox*>::const_iterator cit = d->preferences.begin();
+ std::vector<TQComboBox*>::const_iterator cit = d->preferences.begin();
while ( ait != d->addresses.end() )
result.push_back( Item( *ait++, (*rit++)->keys(), cb2pref( (*cit++)->currentItem() ) ) );
return result;