summaryrefslogtreecommitdiffstats
path: root/knights/tab_seeklist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'knights/tab_seeklist.cpp')
-rw-r--r--knights/tab_seeklist.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/knights/tab_seeklist.cpp b/knights/tab_seeklist.cpp
index d7554a3..0130bc8 100644
--- a/knights/tab_seeklist.cpp
+++ b/knights/tab_seeklist.cpp
@@ -18,9 +18,9 @@
#include "tab_seeklist.moc"
#include "resource.h"
#include <kiconloader.h>
-#include <qregexp.h>
+#include <tqregexp.h>
-tab_SeekList::tab_SeekList(QWidget *parent, const char *name, resource *Rsrc ) : KListView(parent,name)
+tab_SeekList::tab_SeekList(TQWidget *tqparent, const char *name, resource *Rsrc ) : KListView(tqparent,name)
{
myResource = Rsrc;
seek = FALSE;
@@ -37,23 +37,23 @@ tab_SeekList::tab_SeekList(QWidget *parent, const char *name, resource *Rsrc ) :
menuSeek = new KPopupMenu( this );
menuSeek->setCheckable( TRUE );
- menuSeek->insertItem( i18n("Seek Matches"), this, SLOT( menuFunct(int) ), 0, MENU_SEEK );
+ menuSeek->insertItem( i18n("Seek Matches"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_SEEK );
menuSeek->insertSeparator();
- menuSeek->insertItem( i18n("Accept This Match"), this, SLOT( menuFunct(int) ), 0, MENU_ACCEPT_MATCH );
- menuSeek->insertItem( i18n("Tell..."), this, SLOT( menuFunct(int) ), 0, MENU_TELL );
- menuSeek->insertItem( i18n("Assess..."), this, SLOT( menuFunct(int) ), 0, MENU_ASSESS );
- menuSeek->insertItem( i18n("Player Info"), this, SLOT( menuFunct(int) ), 0, MENU_FINGER );
- menuSeek->insertItem( QIconSet( myResource->LoadIcon( QString("history"), KIcon::Small ) ),
- i18n("Player History"), this, SLOT( menuFunct(int) ), 0, MENU_HISTORY );
+ menuSeek->insertItem( i18n("Accept This Match"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_ACCEPT_MATCH );
+ menuSeek->insertItem( i18n("Tell..."), this, TQT_SLOT( menuFunct(int) ), 0, MENU_TELL );
+ menuSeek->insertItem( i18n("Assess..."), this, TQT_SLOT( menuFunct(int) ), 0, MENU_ASSESS );
+ menuSeek->insertItem( i18n("Player Info"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_FINGER );
+ menuSeek->insertItem( TQIconSet( myResource->LoadIcon( TQString("history"), KIcon::Small ) ),
+ i18n("Player History"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_HISTORY );
menuSeek->insertSeparator();
- menuSeek->insertItem( i18n("Add to Friends"), this, SLOT( menuFunct(int) ), 0, MENU_NOTIFY );
- menuSeek->insertItem( i18n("Ignore This Player"), this, SLOT( menuFunct(int) ), 0, MENU_CENSOR );
+ menuSeek->insertItem( i18n("Add to Friends"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_NOTIFY );
+ menuSeek->insertItem( i18n("Ignore This Player"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_CENSOR );
menuSeek->setItemChecked( MENU_SEEK, FALSE );
- connect( this, SIGNAL( contextMenuRequested( QListViewItem*, const QPoint&, int ) ),
- this, SLOT( display_menuSeek( QListViewItem*, const QPoint&, int ) ) );
- connect( this, SIGNAL( executed( QListViewItem* ) ),
- this, SLOT( selectMatch( QListViewItem* ) ) );
+ connect( this, TQT_SIGNAL( contextMenuRequested( TQListViewItem*, const TQPoint&, int ) ),
+ this, TQT_SLOT( display_menuSeek( TQListViewItem*, const TQPoint&, int ) ) );
+ connect( this, TQT_SIGNAL( executed( TQListViewItem* ) ),
+ this, TQT_SLOT( selectMatch( TQListViewItem* ) ) );
}
tab_SeekList::~tab_SeekList()
{
@@ -116,9 +116,9 @@ void tab_SeekList::updateSoughtList( void )
// tab_SeekList::addSoughtItem
//
///////////////////////////////////////
-void tab_SeekList::addSoughtItem( const QString &src )
+void tab_SeekList::addSoughtItem( const TQString &src )
{
- QStringList fields = QStringList::split( QChar(' '), src, FALSE );
+ TQStringList fields = TQStringList::split( TQChar(' '), src, FALSE );
SF_01 << fields[2]; // Name
SF_02 << fields[1]; // Rating
SF_03 << fields[6]; // Match Type
@@ -132,13 +132,13 @@ void tab_SeekList::addSoughtItem( const QString &src )
// tab_SeekList::display_menuSeek
//
///////////////////////////////////////
-void tab_SeekList::display_menuSeek( QListViewItem *Item, const QPoint &Pos, int )
+void tab_SeekList::display_menuSeek( TQListViewItem *Item, const TQPoint &Pos, int )
{
bool enable;
if( Item != NULL )
{
setSelected( Item, TRUE );
- selectedPlayerName = Item->text(0).replace( QRegExp("\\(.+\\)"), QString("") );
+ selectedPlayerName = Item->text(0).tqreplace( TQRegExp("\\(.+\\)"), TQString("") );
selectedMatchID = Item->text(6).toInt();
enable = TRUE;
}
@@ -164,9 +164,9 @@ void tab_SeekList::display_menuSeek( QListViewItem *Item, const QPoint &Pos, int
void tab_SeekList::selectMatch( int matchID )
{
if( matchID )
- emit sendCMD( Command( 0, CMD_Start_Match, QString::number( matchID ) ) );
+ emit sendCMD( Command( 0, CMD_Start_Match, TQString::number( matchID ) ) );
}
-void tab_SeekList::selectMatch( QListViewItem *Item )
+void tab_SeekList::selectMatch( TQListViewItem *Item )
{
selectMatch( Item->text(6).toInt() );
}
@@ -186,7 +186,7 @@ void tab_SeekList::menuFunct( int funct )
emit sendCMD( Command( 0, CMD_Player_Finger, selectedPlayerName ) );
break;
case MENU_TELL:
- emit sendCMD( Command( 0, CMD_Set_Input, QString( "tell %1 " ).arg( selectedPlayerName ) ) );
+ emit sendCMD( Command( 0, CMD_Set_Input, TQString( "tell %1 " ).tqarg( selectedPlayerName ) ) );
break;
case MENU_NOTIFY:
emit sendCMD( Command( 0, CMD_Add_Friend, selectedPlayerName ) );
@@ -198,7 +198,7 @@ void tab_SeekList::menuFunct( int funct )
emit sendCMD( Command( 0, CMD_Player_History, selectedPlayerName ) );
break;
case MENU_ACCEPT_MATCH:
- emit sendCMD( Command( 0, CMD_Start_Match, QString::number( selectedMatchID ) ) );
+ emit sendCMD( Command( 0, CMD_Start_Match, TQString::number( selectedMatchID ) ) );
break;
case MENU_ASSESS:
emit sendCMD( Command( 0, CMD_Assess, selectedPlayerName ) );