summaryrefslogtreecommitdiffstats
path: root/src/otrpreferences.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/otrpreferences.cpp')
-rw-r--r--src/otrpreferences.cpp64
1 files changed, 32 insertions, 32 deletions
diff --git a/src/otrpreferences.cpp b/src/otrpreferences.cpp
index b056d58..c904475 100644
--- a/src/otrpreferences.cpp
+++ b/src/otrpreferences.cpp
@@ -18,17 +18,17 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qmap.h>
-#include <qptrlist.h>
-#include <qcombobox.h>
-#include <qstringlist.h>
-#include <qtable.h>
-#include <qpaintdevicemetrics.h>
-#include <qvbox.h>
-#include <qradiobutton.h>
-#include <qtabwidget.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqmap.h>
+#include <tqptrlist.h>
+#include <tqcombobox.h>
+#include <tqstringlist.h>
+#include <tqtable.h>
+#include <tqpaintdevicemetrics.h>
+#include <tqvbox.h>
+#include <tqradiobutton.h>
+#include <tqtabwidget.h>
#include <kgenericfactory.h>
#include <kurlrequester.h>
@@ -57,10 +57,10 @@
typedef KGenericFactory<OTRPreferences> OTRPreferencesFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_kopete_otr, OTRPreferencesFactory("kcm_kopete_otr"))
-OTRPreferences::OTRPreferences(QWidget *parent, const char* /*name*/, const QStringList &args)
- : KCModule(OTRPreferencesFactory::instance(), parent, args)
+OTRPreferences::OTRPreferences(TQWidget *tqparent, const char* /*name*/, const TQStringList &args)
+ : KCModule(OTRPreferencesFactory::instance(), tqparent, args)
{
- ( new QVBoxLayout( this ) )->setAutoAdd( true );
+ ( new TQVBoxLayout( this ) )->setAutoAdd( true );
preferencesDialog = new OTRPrefsUI(this);
@@ -72,18 +72,18 @@ OTRPreferences::OTRPreferences(QWidget *parent, const char* /*name*/, const QStr
otrlConfInterface = new OtrlConfInterface( preferencesDialog );
- connect( preferencesDialog->btGenFingerprint, SIGNAL(clicked()), SLOT(generateFingerprint()));
- connect( preferencesDialog->cbKeys, SIGNAL(activated(int)), SLOT(showPrivFingerprint(int)));
- connect( preferencesDialog->btVerify, SIGNAL(clicked()), SLOT(verifyFingerprint()));
- connect( preferencesDialog->twSettings, SIGNAL(currentChanged(QWidget *)), SLOT(fillFingerprints()));
- connect( preferencesDialog->tbFingerprints, SIGNAL(currentChanged(int, int)), SLOT(updateButtons(int, int)));
- connect( preferencesDialog->btForget, SIGNAL( clicked() ), SLOT( forgetFingerprint() ) );
+ connect( preferencesDialog->btGenFingerprint, TQT_SIGNAL(clicked()), TQT_SLOT(generateFingerprint()));
+ connect( preferencesDialog->cbKeys, TQT_SIGNAL(activated(int)), TQT_SLOT(showPrivFingerprint(int)));
+ connect( preferencesDialog->btVerify, TQT_SIGNAL(clicked()), TQT_SLOT(verifyFingerprint()));
+ connect( preferencesDialog->twSettings, TQT_SIGNAL(currentChanged(TQWidget *)), TQT_SLOT(fillFingerprints()));
+ connect( preferencesDialog->tbFingerprints, TQT_SIGNAL(currentChanged(int, int)), TQT_SLOT(updateButtons(int, int)));
+ connect( preferencesDialog->btForget, TQT_SIGNAL( clicked() ), TQT_SLOT( forgetFingerprint() ) );
int index = 0;
int accountnr = 0;
- QPtrList<Kopete::Account> accounts = Kopete::AccountManager::self()->accounts();
+ TQPtrList<Kopete::Account> accounts = Kopete::AccountManager::self()->accounts();
if( !accounts.isEmpty() ){
- for ( QPtrListIterator<Kopete::Account> it( accounts );
+ for ( TQPtrListIterator<Kopete::Account> it( accounts );
Kopete::Account *account = it.current();
++it ){
if ( account->protocol()->pluginId() != "IRCProtocol" ){
@@ -108,7 +108,7 @@ OTRPreferences::~OTRPreferences(){
void OTRPreferences::generateFingerprint()
{
- QPtrList<Kopete::Account> accounts = Kopete::AccountManager::self()->accounts();
+ TQPtrList<Kopete::Account> accounts = Kopete::AccountManager::self()->accounts();
if( (accounts.isEmpty())){
return;
@@ -125,7 +125,7 @@ void OTRPreferences::generateFingerprint()
void OTRPreferences::showPrivFingerprint( int accountnr )
{
- QPtrList<Kopete::Account> accounts = Kopete::AccountManager::self()->accounts();
+ TQPtrList<Kopete::Account> accounts = Kopete::AccountManager::self()->accounts();
if( !accounts.isEmpty() ){
Kopete::Account *account = accounts.at(privKeys[accountnr]);
preferencesDialog->tlFingerprint->setText( otrlConfInterface->getPrivFingerprint( account->accountId(), account->protocol()->displayName() ) );
@@ -133,17 +133,17 @@ void OTRPreferences::showPrivFingerprint( int accountnr )
}
void OTRPreferences::fillFingerprints(){
- QTable *fingerprintsTable = preferencesDialog->tbFingerprints;
+ TQTable *fingerprintsTable = preferencesDialog->tbFingerprints;
preferencesDialog->tbFingerprints->setNumRows(0);
- QValueList<QString[5]> list = otrlConfInterface->readAllFingerprints();
- QValueList<QString[5]>::iterator it;
+ TQValueList<TQString[5]> list = otrlConfInterface->readAllFingerprints();
+ TQValueList<TQString[5]>::iterator it;
int j = 0;
for( it = list.begin(); it != list.end(); ++it ){
preferencesDialog->tbFingerprints->setNumRows( preferencesDialog->tbFingerprints->numRows() +1 );
(*it)[0] = OtrlChatInterface::self()->formatContact((*it)[0]);
for( int i = 0; i < 5; i++ ){
//preferencesDialog->tbFingerprints->setText(j, i, (*it)[i] );
- fingerprintsTable->setItem(j,i, new QAlignTableItem(fingerprintsTable, QTableItem::Never,(*it)[i],Qt::AlignLeft));
+ fingerprintsTable->setItem(j,i, new TQAlignTableItem(fingerprintsTable, TQTableItem::Never,(*it)[i],TQt::AlignLeft));
}
j++;
}
@@ -154,7 +154,7 @@ void OTRPreferences::verifyFingerprint(){
int doVerify = KMessageBox::questionYesNo(
this,
- i18n("Please contact %1 via another secure way and verify that the following Fingerprint is correct:").arg(preferencesDialog->tbFingerprints->text( preferencesDialog->tbFingerprints->currentRow(), 0 )) + "\n\n" + preferencesDialog->tbFingerprints->text( preferencesDialog->tbFingerprints->currentRow(), 3 ) + "\n\n" + i18n("Are you sure you want to trust this fingerprint?"), i18n("Verify fingerprint") );
+ i18n("Please contact %1 via another secure way and verify that the following Fingerprint is correct:").tqarg(preferencesDialog->tbFingerprints->text( preferencesDialog->tbFingerprints->currentRow(), 0 )) + "\n\n" + preferencesDialog->tbFingerprints->text( preferencesDialog->tbFingerprints->currentRow(), 3 ) + "\n\n" + i18n("Are you sure you want to trust this fingerprint?"), i18n("Verify fingerprint") );
if( doVerify == KMessageBox::Yes ){
@@ -188,9 +188,9 @@ void OTRPreferences::forgetFingerprint(){
}
}
-QAlignTableItem :: QAlignTableItem( QTable *table, EditType editType, const QString& text, int alignment )
- : QTableItem( table, editType, text ) {
- align = alignment;
+TQAlignTableItem :: TQAlignTableItem( TQTable *table, EditType editType, const TQString& text, int tqalignment )
+ : TQTableItem( table, editType, text ) {
+ align = tqalignment;
}