summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/ui/userinfodialog.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/userinfodialog.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/userinfodialog.cpp')
-rw-r--r--kopete/libkopete/ui/userinfodialog.cpp82
1 files changed, 41 insertions, 41 deletions
diff --git a/kopete/libkopete/ui/userinfodialog.cpp b/kopete/libkopete/ui/userinfodialog.cpp
index a25454a9..0ad7d9c2 100644
--- a/kopete/libkopete/ui/userinfodialog.cpp
+++ b/kopete/libkopete/ui/userinfodialog.cpp
@@ -25,25 +25,25 @@
#include <klocale.h>
#include <kdebug.h>
-#include <qlabel.h>
-#include <qvbox.h>
-#include <qlayout.h>
+#include <tqlabel.h>
+#include <tqvbox.h>
+#include <tqlayout.h>
namespace Kopete {
struct UserInfoDialog::UserInfoDialogPrivate {
- QString name;
- QString id;
- QString awayMessage;
- QString status;
- QString warningLevel;
- QString onlineSince;
- QString info;
- QString address;
- QString phone;
- QMap<QString,QString> customFields;
- QVBoxLayout *topLayout;
- QWidget *page;
+ TQString name;
+ TQString id;
+ TQString awayMessage;
+ TQString status;
+ TQString warningLevel;
+ TQString onlineSince;
+ TQString info;
+ TQString address;
+ TQString phone;
+ TQMap<TQString,TQString> customFields;
+ TQVBoxLayout *topLayout;
+ TQWidget *page;
DialogStyle style;
KHTMLPart *htmlPart;
@@ -58,13 +58,13 @@ struct UserInfoDialog::UserInfoDialogPrivate {
KTextBrowser *infoBrowser;
};
-UserInfoDialog::UserInfoDialog( const QString& descr )
+UserInfoDialog::UserInfoDialog( const TQString& descr )
: KDialogBase( Kopete::UI::Global::mainWidget(), "userinfodialog", true, i18n( "User Info for %1" ).arg( descr ), KDialogBase::Ok )
{
d = new UserInfoDialogPrivate;
- d->page = new QWidget( this );
+ d->page = new TQWidget( this );
setMainWidget( d->page );
- d->topLayout = new QVBoxLayout( d->page, 0, spacingHint() );
+ d->topLayout = new TQVBoxLayout( d->page, 0, spacingHint() );
d->style = Widget;
}
@@ -78,65 +78,65 @@ void UserInfoDialog::setStyle( DialogStyle style )
d->style = style;
}
-void UserInfoDialog::setName( const QString& name )
+void UserInfoDialog::setName( const TQString& name )
{
d->name = name;
}
-void UserInfoDialog::setId( const QString& id )
+void UserInfoDialog::setId( const TQString& id )
{
d->id = id;
}
-void UserInfoDialog::setAwayMessage( const QString& msg )
+void UserInfoDialog::setAwayMessage( const TQString& msg )
{
d->awayMessage = msg;
}
-void UserInfoDialog::setStatus( const QString& status )
+void UserInfoDialog::setStatus( const TQString& status )
{
d->status = status;
}
-void UserInfoDialog::setWarningLevel(const QString& level )
+void UserInfoDialog::setWarningLevel(const TQString& level )
{
d->warningLevel = level;
}
-void UserInfoDialog::setOnlineSince( const QString& since )
+void UserInfoDialog::setOnlineSince( const TQString& since )
{
d->onlineSince = since;
}
-void UserInfoDialog::setInfo( const QString& info )
+void UserInfoDialog::setInfo( const TQString& info )
{
d->info = info;
}
-void UserInfoDialog::setAddress( const QString& addr )
+void UserInfoDialog::setAddress( const TQString& addr )
{
d->address = addr;
}
-void UserInfoDialog::setPhone( const QString& phone )
+void UserInfoDialog::setPhone( const TQString& phone )
{
d->phone = phone;
}
-void UserInfoDialog::addCustomField( const QString& /*name*/, const QString& /*txt*/ )
+void UserInfoDialog::addCustomField( const TQString& /*name*/, const TQString& /*txt*/ )
{
}
-void UserInfoDialog::addHTMLText( const QString& /*str*/ )
+void UserInfoDialog::addHTMLText( const TQString& /*str*/ )
{
}
-QHBox* UserInfoDialog::addLabelEdit( const QString& label, const QString& text, KLineEdit*& edit )
+TQHBox* UserInfoDialog::addLabelEdit( const TQString& label, const TQString& text, KLineEdit*& edit )
{
- QHBox *box = new QHBox( d->page );
- new QLabel( label, box );
+ TQHBox *box = new TQHBox( d->page );
+ new TQLabel( label, box );
edit = new KLineEdit( box );
edit->setAlignment( Qt::AlignHCenter );
edit->setText( text );
@@ -148,12 +148,12 @@ void UserInfoDialog::fillHTML()
{
d->htmlPart = new KHTMLPart( this );
- QString text;
+ TQString text;
/*
if ( d->name.isEmpty() ) {
- text.append( QString("<div id=\"name\"><b>") + i18n("Name : ") +
- QString("</b>") );
- text.append( d->name + QString("</div><br>") );
+ text.append( TQString("<div id=\"name\"><b>") + i18n("Name : ") +
+ TQString("</b>") );
+ text.append( d->name + TQString("</div><br>") );
}
if ( d->id.isEmpty() ) {
@@ -234,23 +234,23 @@ void UserInfoDialog::fillWidgets()
}
if ( !d->awayMessage.isEmpty() ) {
- QVBox *awayBox = new QVBox( d->page );
- new QLabel( i18n("Away message:"), awayBox );
+ TQVBox *awayBox = new TQVBox( d->page );
+ new TQLabel( i18n("Away message:"), awayBox );
d->awayBrowser = new KTextBrowser( awayBox );
d->awayBrowser->setText( d->awayMessage );
d->topLayout->addWidget( awayBox );
}
if ( !d->info.isEmpty() ) {
- QVBox *infoBox = new QVBox( d->page );
- new QLabel( i18n("User info:"), infoBox );
+ TQVBox *infoBox = new TQVBox( d->page );
+ new TQLabel( i18n("User info:"), infoBox );
d->infoBrowser = new KTextBrowser( infoBox );
d->infoBrowser->setText( d->info );
d->topLayout->addWidget( infoBox );
}
}
-void UserInfoDialog::setStyleSheet( const QString& /*css*/ )
+void UserInfoDialog::setStyleSheet( const TQString& /*css*/ )
{
}