summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/ui/userinfodialog.cpp
diff options
context:
space:
mode:
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*/ )
{
}