summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/ui/contactaddednotifydialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kopete/libkopete/ui/contactaddednotifydialog.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/libkopete/ui/contactaddednotifydialog.cpp')
-rw-r--r--kopete/libkopete/ui/contactaddednotifydialog.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kopete/libkopete/ui/contactaddednotifydialog.cpp b/kopete/libkopete/ui/contactaddednotifydialog.cpp
index abcd4c7e..9084bd39 100644
--- a/kopete/libkopete/ui/contactaddednotifydialog.cpp
+++ b/kopete/libkopete/ui/contactaddednotifydialog.cpp
@@ -16,12 +16,12 @@
#include "contactaddednotifydialog.h"
-#include <qvbox.h>
-#include <qlabel.h>
-#include <qcheckbox.h>
-#include <qgroupbox.h>
-#include <qstylesheet.h>
-#include <qapplication.h>
+#include <tqvbox.h>
+#include <tqlabel.h>
+#include <tqcheckbox.h>
+#include <tqgroupbox.h>
+#include <tqstylesheet.h>
+#include <tqapplication.h>
#include <klocale.h>
#include <kcombobox.h>
@@ -51,13 +51,13 @@ struct ContactAddedNotifyDialog::Private
{
ContactAddedNotifyWidget *widget;
Account *account;
- QString contactId;
- QString addressbookId;
+ TQString contactId;
+ TQString addressbookId;
};
-ContactAddedNotifyDialog::ContactAddedNotifyDialog(const QString& contactId,
- const QString& contactNick, Kopete::Account *account, uint hide)
+ContactAddedNotifyDialog::ContactAddedNotifyDialog(const TQString& contactId,
+ const TQString& contactNick, Kopete::Account *account, uint hide)
: KDialogBase( Global::mainWidget(), "ContactAddedNotify", /*modal=*/false,
i18n("Someone Has Added You"), Ok|Cancel )
{
@@ -71,9 +71,9 @@ ContactAddedNotifyDialog::ContactAddedNotifyDialog(const QString& contactId,
d->account=account;
d->contactId=contactId;
d->widget->m_label->setText(i18n("<qt><img src=\"kopete-account-icon:%1\" /> The contact <b>%2</b> has added you to his/her contactlist. (Account %3)</qt>")
- .arg( KURL::encode_string( account->protocol()->pluginId() ) + QString::fromLatin1(":")
+ .arg( KURL::encode_string( account->protocol()->pluginId() ) + TQString::fromLatin1(":")
+ KURL::encode_string( account->accountId() ) ,
- contactNick.isEmpty() ? contactId : contactNick + QString::fromLatin1(" < ") + contactId + QString::fromLatin1(" >") ,
+ contactNick.isEmpty() ? contactId : contactNick + TQString::fromLatin1(" < ") + contactId + TQString::fromLatin1(" >") ,
account->accountLabel() ) );
if( hide & InfoButton)
d->widget->m_infoButton->hide() ;
@@ -94,18 +94,18 @@ ContactAddedNotifyDialog::ContactAddedNotifyDialog(const QString& contactId,
Kopete::GroupList groups=Kopete::ContactList::self()->groups();
for( Kopete::Group *it = groups.first(); it; it = groups.next() )
{
- QString groupname = it->displayName();
+ TQString groupname = it->displayName();
if ( it->type() == Group::Normal && !groupname.isEmpty() )
{
d->widget->m_groupList->insertItem(groupname);
}
}
- d->widget->m_groupList->setCurrentText(QString::null); //default to top-level
+ d->widget->m_groupList->setCurrentText(TQString::null); //default to top-level
- connect( d->widget->widAddresseeLink, SIGNAL( addresseeChanged( const KABC::Addressee& ) ), this, SLOT( slotAddresseeSelected( const KABC::Addressee& ) ) );
- connect( d->widget->m_infoButton, SIGNAL( clicked() ), this, SLOT( slotInfoClicked() ) );
+ connect( d->widget->widAddresseeLink, TQT_SIGNAL( addresseeChanged( const KABC::Addressee& ) ), this, TQT_SLOT( slotAddresseeSelected( const KABC::Addressee& ) ) );
+ connect( d->widget->m_infoButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotInfoClicked() ) );
- connect( this, SIGNAL(okClicked()) , this , SLOT(slotFinished()));
+ connect( this, TQT_SIGNAL(okClicked()) , this , TQT_SLOT(slotFinished()));
}
@@ -125,14 +125,14 @@ bool ContactAddedNotifyDialog::authorized() const
return d->widget->m_authorizeCb->isChecked();
}
-QString ContactAddedNotifyDialog::displayName() const
+TQString ContactAddedNotifyDialog::displayName() const
{
return d->widget->m_displayNameEdit->text();
}
Group *ContactAddedNotifyDialog::group() const
{
- QString grpName=d->widget->m_groupList->currentText();
+ TQString grpName=d->widget->m_groupList->currentText();
if(grpName.isEmpty())
return Group::topLevel();