summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/gadu/gadupubdir.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/protocols/gadu/gadupubdir.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/protocols/gadu/gadupubdir.cpp')
-rw-r--r--kopete/protocols/gadu/gadupubdir.cpp78
1 files changed, 39 insertions, 39 deletions
diff --git a/kopete/protocols/gadu/gadupubdir.cpp b/kopete/protocols/gadu/gadupubdir.cpp
index 2b61d3ff..1c329cf0 100644
--- a/kopete/protocols/gadu/gadupubdir.cpp
+++ b/kopete/protocols/gadu/gadupubdir.cpp
@@ -27,12 +27,12 @@
#include "gaduaccount.h"
#include "gaduprotocol.h"
-#include <qwidgetstack.h>
-#include <qlistview.h>
-#include <qptrlist.h>
-#include <qradiobutton.h>
-#include <qspinbox.h>
-#include <qcheckbox.h>
+#include <tqwidgetstack.h>
+#include <tqlistview.h>
+#include <tqptrlist.h>
+#include <tqradiobutton.h>
+#include <tqspinbox.h>
+#include <tqcheckbox.h>
#include <kcombobox.h>
#include <krestrictedline.h>
@@ -40,8 +40,8 @@
#include <klistview.h>
#include <klocale.h>
-GaduPublicDir::GaduPublicDir( GaduAccount* account, QWidget* parent, const char* name )
-: KDialogBase( parent, name, false, QString::null, User1|User2|User3|Cancel, User2 )
+GaduPublicDir::GaduPublicDir( GaduAccount* account, TQWidget* parent, const char* name )
+: KDialogBase( parent, name, false, TQString::null, User1|User2|User3|Cancel, User2 )
{
mAccount = account;
createWidget();
@@ -50,8 +50,8 @@ GaduPublicDir::GaduPublicDir( GaduAccount* account, QWidget* parent, const char*
show();
}
-GaduPublicDir::GaduPublicDir( GaduAccount* account, int searchFor, QWidget* parent, const char* name )
-: KDialogBase( parent, name, false, QString::null, User1|User2|User3|Cancel, User2 )
+GaduPublicDir::GaduPublicDir( GaduAccount* account, int searchFor, TQWidget* parent, const char* name )
+: KDialogBase( parent, name, false, TQString::null, User1|User2|User3|Cancel, User2 )
{
ResLine rs;
@@ -80,7 +80,7 @@ GaduPublicDir::GaduPublicDir( GaduAccount* account, int searchFor, QWidget* pare
// now it is time to switch to Right Page(tm)
rs.uin = searchFor;
- fName = fSurname = fNick = fCity = QString::null;
+ fName = fSurname = fNick = fCity = TQString::null;
fUin = searchFor;
fGender = fAgeFrom = fAgeTo = 0;
fOnlyOnline = false;
@@ -118,7 +118,7 @@ void
GaduPublicDir::slotAddContact()
{
GaduContactsList::ContactLine* cl = new GaduContactsList::ContactLine;
- QListViewItem* item = mMainWidget->listFound->currentItem();
+ TQListViewItem* item = mMainWidget->listFound->currentItem();
cl->ignored = false;
cl->firstname = item->text( 1 );
@@ -134,7 +134,7 @@ GaduPublicDir::slotAddContact()
void
GaduPublicDir::slotListSelected( )
{
- QListViewItem* item = mMainWidget->listFound->currentItem();
+ TQListViewItem* item = mMainWidget->listFound->currentItem();
if ( item ) {
enableButton( User3, true );
}
@@ -146,35 +146,35 @@ GaduPublicDir::slotListSelected( )
void
GaduPublicDir::initConnections()
{
- connect( this, SIGNAL( user2Clicked() ), SLOT( slotSearch() ) );
- connect( this, SIGNAL( user1Clicked() ), SLOT( slotNewSearch() ) );
- connect( this, SIGNAL( user3Clicked() ), SLOT( slotAddContact() ) );
+ connect( this, TQT_SIGNAL( user2Clicked() ), TQT_SLOT( slotSearch() ) );
+ connect( this, TQT_SIGNAL( user1Clicked() ), TQT_SLOT( slotNewSearch() ) );
+ connect( this, TQT_SIGNAL( user3Clicked() ), TQT_SLOT( slotAddContact() ) );
- connect( mAccount, SIGNAL( pubDirSearchResult( const SearchResult&, unsigned int ) ),
- SLOT( slotSearchResult( const SearchResult&, unsigned int ) ) );
+ connect( mAccount, TQT_SIGNAL( pubDirSearchResult( const SearchResult&, unsigned int ) ),
+ TQT_SLOT( slotSearchResult( const SearchResult&, unsigned int ) ) );
- connect( mMainWidget->nameS, SIGNAL( textChanged( const QString &) ), SLOT( inputChanged( const QString & ) ) );
- connect( mMainWidget->surname, SIGNAL( textChanged( const QString &) ), SLOT( inputChanged( const QString & ) ) );
- connect( mMainWidget->nick, SIGNAL( textChanged( const QString &) ), SLOT( inputChanged( const QString & ) ) );
- connect( mMainWidget->UIN, SIGNAL( textChanged( const QString &) ), SLOT( inputChanged( const QString & ) ) );
- connect( mMainWidget->cityS, SIGNAL( textChanged( const QString &) ), SLOT( inputChanged( const QString & ) ) );
- connect( mMainWidget->gender, SIGNAL( activated( const QString &) ), SLOT( inputChanged( const QString & ) ) );
- connect( mMainWidget->ageFrom, SIGNAL( valueChanged( const QString &) ), SLOT( inputChanged( const QString & ) ) );
- connect( mMainWidget->ageTo, SIGNAL( valueChanged( const QString &) ), SLOT( inputChanged( const QString & ) ) );
- connect( mMainWidget->radioByData, SIGNAL( toggled( bool ) ), SLOT( inputChanged( bool ) ) );
+ connect( mMainWidget->nameS, TQT_SIGNAL( textChanged( const TQString &) ), TQT_SLOT( inputChanged( const TQString & ) ) );
+ connect( mMainWidget->surname, TQT_SIGNAL( textChanged( const TQString &) ), TQT_SLOT( inputChanged( const TQString & ) ) );
+ connect( mMainWidget->nick, TQT_SIGNAL( textChanged( const TQString &) ), TQT_SLOT( inputChanged( const TQString & ) ) );
+ connect( mMainWidget->UIN, TQT_SIGNAL( textChanged( const TQString &) ), TQT_SLOT( inputChanged( const TQString & ) ) );
+ connect( mMainWidget->cityS, TQT_SIGNAL( textChanged( const TQString &) ), TQT_SLOT( inputChanged( const TQString & ) ) );
+ connect( mMainWidget->gender, TQT_SIGNAL( activated( const TQString &) ), TQT_SLOT( inputChanged( const TQString & ) ) );
+ connect( mMainWidget->ageFrom, TQT_SIGNAL( valueChanged( const TQString &) ), TQT_SLOT( inputChanged( const TQString & ) ) );
+ connect( mMainWidget->ageTo, TQT_SIGNAL( valueChanged( const TQString &) ), TQT_SLOT( inputChanged( const TQString & ) ) );
+ connect( mMainWidget->radioByData, TQT_SIGNAL( toggled( bool ) ), TQT_SLOT( inputChanged( bool ) ) );
- connect( mMainWidget->listFound, SIGNAL( selectionChanged () ), SLOT( slotListSelected() ) );
+ connect( mMainWidget->listFound, TQT_SIGNAL( selectionChanged () ), TQT_SLOT( slotListSelected() ) );
}
void
GaduPublicDir::inputChanged( bool )
{
- inputChanged( QString::null );
+ inputChanged( TQString::null );
}
void
-GaduPublicDir::inputChanged( const QString& )
+GaduPublicDir::inputChanged( const TQString& )
{
if ( validateData() == false ) {
enableButton( User2, false );
@@ -217,7 +217,7 @@ GaduPublicDir::validateData()
CHECK_INT( fAgeTo );
}
else {
- fSurname = QString::null;
+ fSurname = TQString::null;
CHECK_INT( fUin );
}
return false;
@@ -227,7 +227,7 @@ GaduPublicDir::validateData()
QPixmap
GaduPublicDir::iconForStatus( uint status )
{
- QPixmap n;
+ TQPixmap n;
if ( GaduProtocol::protocol() ) {
return GaduProtocol::protocol()->convertStatus( status ).protocolIcon();
@@ -238,23 +238,23 @@ GaduPublicDir::iconForStatus( uint status )
void
GaduPublicDir::slotSearchResult( const SearchResult& result, unsigned int )
{
- QListView* list = mMainWidget->listFound;
+ TQListView* list = mMainWidget->listFound;
kdDebug(14100) << "searchResults(" << result.count() <<")" << endl;
- QListViewItem* sl;
+ TQListViewItem* sl;
SearchResult::const_iterator r;
for ( r = result.begin(); r != result.end() ; ++r ){
kdDebug(14100) << "adding" << (*r).uin << endl;
- sl= new QListViewItem(
- list, QString::fromAscii(""),
+ sl= new TQListViewItem(
+ list, TQString::fromAscii(""),
(*r).firstname,
(*r).nickname,
(*r).age,
(*r).city,
- QString::number( (*r).uin ).ascii()
+ TQString::number( (*r).uin ).ascii()
);
sl->setPixmap( 0, iconForStatus( (*r).status ) );
}
@@ -282,7 +282,7 @@ GaduPublicDir::slotNewSearch()
showButton( User1, false );
showButton( User3, false );
enableButton( User2, false );
- inputChanged( QString::null );
+ inputChanged( TQString::null );
mAccount->pubDirSearchClose();
}
@@ -291,7 +291,7 @@ GaduPublicDir::slotSearch()
{
mMainWidget->listFound->clear();
- QString empty;
+ TQString empty;
// search more, or search ?
if ( mMainWidget->pubsearch->id( mMainWidget->pubsearch->visibleWidget() ) == 0 ) {