summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-04 22:04:28 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-05 20:52:45 +0900
commit248df7d99144ea50ac8449568b317c1ff465636a (patch)
tree36e307be021324458a68979601c9600101d126cf
parentfd043239e6e0eed0de9924e7c5b5e64e90500e12 (diff)
downloadknights-248df7d99144ea50ac8449568b317c1ff465636a.tar.gz
knights-248df7d99144ea50ac8449568b317c1ff465636a.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 1d296b0a23c218ab44e3e8be2459a4f3fd8a3353)
-rw-r--r--knights/board_2d.cpp10
-rw-r--r--knights/challenge_graph_view.cpp6
-rw-r--r--knights/core.cpp2
-rw-r--r--knights/dlg_challenge.cpp4
-rw-r--r--knights/dlg_engine.cpp10
-rw-r--r--knights/dlg_login.cpp4
-rw-r--r--knights/dlg_newmatch.cpp12
-rw-r--r--knights/dlg_selectengine.cpp8
-rw-r--r--knights/dlg_server.cpp16
-rw-r--r--knights/knightstextview.cpp2
-rw-r--r--knights/setpageaudio.cpp6
-rw-r--r--knights/setpagedisplay.cpp12
-rw-r--r--knights/setpageengines.cpp8
-rw-r--r--knights/setpagegeneral.cpp8
-rw-r--r--knights/setpageservers.cpp8
-rw-r--r--knights/tabgrip.cpp4
-rw-r--r--knights/thinbuttons.cpp2
-rw-r--r--knights/wiz_setup.cpp8
18 files changed, 65 insertions, 65 deletions
diff --git a/knights/board_2d.cpp b/knights/board_2d.cpp
index a0170a5..cf3afdc 100644
--- a/knights/board_2d.cpp
+++ b/knights/board_2d.cpp
@@ -237,7 +237,7 @@ void board_2d::redrawAll( void )
if( init )
return;
- /* Set Qt::Orientation */
+ /* Set Orientation */
orientation = myResource->OPTION_Board_Orientation;
if( localArmy != WHITE )
orientation = !orientation;
@@ -507,11 +507,11 @@ void board_2d::mouseReleaseEvent( TQMouseEvent *event )
lastMoveWasDrag = TRUE;
}
- if(event->button() == Qt::LeftButton)
+ if(event->button() == TQt::LeftButton)
{
emit leftClick( position( event->pos() ) );
}
- if(event->button() == Qt::RightButton)
+ if(event->button() == TQt::RightButton)
{
emit rightClick( position( event->pos() ) );
}
@@ -536,7 +536,7 @@ void board_2d::mouseMoveEvent( TQMouseEvent *event )
event->accept();
if( DragSprite == NULL )
{
- if( event->state() & Qt::LeftButton )
+ if( event->state() & TQt::LeftButton )
{
if( abs( pressPoint.x() - event->pos().x() ) + abs( pressPoint.y() - event->pos().y() ) > 6 )
{
@@ -565,7 +565,7 @@ void board_2d::mouseMoveEvent( TQMouseEvent *event )
else
/* Not enough dragging */
return;
- } // End ( event->state() & Qt::LeftButton )
+ } // End ( event->state() & TQt::LeftButton )
else
return; /* No dragging. Most events should end up here */
}
diff --git a/knights/challenge_graph_view.cpp b/knights/challenge_graph_view.cpp
index 6c59b08..b28b3f3 100644
--- a/knights/challenge_graph_view.cpp
+++ b/knights/challenge_graph_view.cpp
@@ -60,13 +60,13 @@ void Challenge_Graph_View::contentsMousePressEvent(TQMouseEvent* e)
{
Challenge_Rectangle *cr = dynamic_cast<Challenge_Rectangle *>(*it);
Challenge_Game *g = cr->getGame();
- if( e->button() == Qt::LeftButton )
+ if( e->button() == TQt::LeftButton )
emit leftClick( g->id() );
- if( e->button() == Qt::RightButton )
+ if( e->button() == TQt::RightButton )
emit rightClick( g, e->globalPos() );
return;
}
- if( e->button() == Qt::RightButton )
+ if( e->button() == TQt::RightButton )
emit rightClick( NULL, e->globalPos() ); // We need to catch all right clicks
}
///////////////////////////////////////
diff --git a/knights/core.cpp b/knights/core.cpp
index 666547f..2b72490 100644
--- a/knights/core.cpp
+++ b/knights/core.cpp
@@ -756,7 +756,7 @@ void core::matchMenu( int opt )
case MENU_HINT:
currentMatch->requestHint();
break;
- /* Qt::Orientation */
+ /* Orientation */
case MENU_ORIENTATION:
currentMatch->flip();
break;
diff --git a/knights/dlg_challenge.cpp b/knights/dlg_challenge.cpp
index 2df0b43..f90ce50 100644
--- a/knights/dlg_challenge.cpp
+++ b/knights/dlg_challenge.cpp
@@ -36,12 +36,12 @@ dlg_challenge::dlg_challenge(TQWidget *parent, const char *name, resource *Rsrc
LABEL_Headline = new TQLabel( BOX_Parent );
COMBO_Rated = new KComboBox( BOX_Parent );
BOX_Time = new TQHBox( BOX_Parent );
- BOX_White = new TQGroupBox( 2, Qt::Horizontal, "-", BOX_Time );
+ BOX_White = new TQGroupBox( 2, TQt::Horizontal, "-", BOX_Time );
BOX_WhiteBase = new TQSpinBox( BOX_White );
LABEL_WhiteBase = new TQLabel( BOX_White );
BOX_WhiteInc = new TQSpinBox( BOX_White );
LABEL_WhiteInc = new TQLabel( BOX_White );
- BOX_Black = new TQGroupBox( 2, Qt::Horizontal, "-", BOX_Time );
+ BOX_Black = new TQGroupBox( 2, TQt::Horizontal, "-", BOX_Time );
BOX_BlackBase = new TQSpinBox( BOX_Black );
LABEL_BlackBase = new TQLabel( BOX_Black );
BOX_BlackInc = new TQSpinBox( BOX_Black );
diff --git a/knights/dlg_engine.cpp b/knights/dlg_engine.cpp
index 800cd50..34a941e 100644
--- a/knights/dlg_engine.cpp
+++ b/knights/dlg_engine.cpp
@@ -34,28 +34,28 @@ dlg_engine::dlg_engine(TQWidget *parent, const char *name, resource *Rsrc, TQStr
BOX_Parent = makeVBoxMainWidget();
BOX_NameProto = new TQHBox( BOX_Parent );
BOX_Name = new TQGroupBox( 1,
- Qt::Horizontal,
+ TQt::Horizontal,
i18n( "Engine Name" ),
BOX_NameProto );
EDIT_Name = new KLineEdit( BOX_Name );
BOX_Protocol = new TQGroupBox( 1,
- Qt::Horizontal,
+ TQt::Horizontal,
i18n( "Protocol" ),
BOX_NameProto );
EDIT_Protocol = new KComboBox( BOX_Protocol );
BOX_Filename = new TQGroupBox( 2,
- Qt::Horizontal,
+ TQt::Horizontal,
i18n( "Engine Filename" ),
BOX_Parent );
EDIT_Filename = new KLineEdit( BOX_Filename );
BUTTON_Filename = new TQPushButton( BOX_Filename );
BOX_Arguments = new TQGroupBox( 1,
- Qt::Horizontal,
+ TQt::Horizontal,
i18n( "Command Line Arguments" ),
BOX_Parent );
EDIT_Arguments = new KLineEdit( BOX_Arguments );
BOX_LogFile = new TQGroupBox( 2,
- Qt::Horizontal,
+ TQt::Horizontal,
i18n( "Log File" ),
BOX_Parent );
EDIT_LogFile = new KLineEdit( BOX_LogFile );
diff --git a/knights/dlg_login.cpp b/knights/dlg_login.cpp
index 7cd5c49..415c769 100644
--- a/knights/dlg_login.cpp
+++ b/knights/dlg_login.cpp
@@ -29,7 +29,7 @@ dlg_login::dlg_login(TQWidget *parent, const char *name, resource *rsrc) :
BOX_Parent = makeVBoxMainWidget();
/* Select which server to connect to */
- GROUP_Select_Server = new TQGroupBox( 1, Qt::Vertical, i18n( "Select Server" ), BOX_Parent );
+ GROUP_Select_Server = new TQGroupBox( 1, TQt::Vertical, i18n( "Select Server" ), BOX_Parent );
COMBO_Select_Server = new KComboBox ( GROUP_Select_Server );
COMBO_Select_Server->setEditable( FALSE );
@@ -48,7 +48,7 @@ dlg_login::dlg_login(TQWidget *parent, const char *name, resource *rsrc) :
/* connect to right signal to the combobox */
connect( COMBO_Select_Server, TQT_SIGNAL( activated(const TQString &) ), this, TQT_SLOT( slotUpdateUser(const TQString &) ) );
- GROUP_Username = new TQGroupBox( 1, Qt::Horizontal, i18n("User info"), BOX_Parent);
+ GROUP_Username = new TQGroupBox( 1, TQt::Horizontal, i18n("User info"), BOX_Parent);
BOX_ALIGN = new TQHBox( GROUP_Username );
BOX_TEXT = new TQVBox( BOX_ALIGN );
TEXT_Login = new TQLabel( BOX_TEXT );
diff --git a/knights/dlg_newmatch.cpp b/knights/dlg_newmatch.cpp
index 55aba04..7d7b6af 100644
--- a/knights/dlg_newmatch.cpp
+++ b/knights/dlg_newmatch.cpp
@@ -42,8 +42,8 @@ KDialogBase(parent, name, TRUE, i18n("Start a New Match"), Cancel|Ok|Help, Ok, T
BOX_Parent = makeHBoxMainWidget();
BOX_Players = new TQVBox( BOX_Parent );
- BOX_White = new TQGroupBox(3, Qt::Horizontal, i18n("White"), BOX_Players );
- BOX_Black = new TQGroupBox(3, Qt::Horizontal, i18n("Black"), BOX_Players );
+ BOX_White = new TQGroupBox(3, TQt::Horizontal, i18n("White"), BOX_Players );
+ BOX_Black = new TQGroupBox(3, TQt::Horizontal, i18n("Black"), BOX_Players );
IMAGE_White = new TQLabel( BOX_White );
IMAGE_Black = new TQLabel( BOX_Black );
@@ -54,14 +54,14 @@ KDialogBase(parent, name, TRUE, i18n("Start a New Match"), Cancel|Ok|Help, Ok, T
LABEL_White_Name = new TQLabel( BOX_White_Detail );
LABEL_Black_Name = new TQLabel( BOX_Black_Detail );
- GROUP_White_Type = new TQButtonGroup( 3, Qt::Vertical, BOX_White_Detail );
+ GROUP_White_Type = new TQButtonGroup( 3, TQt::Vertical, BOX_White_Detail );
GROUP_White_Type->setExclusive( TRUE );
RADIO_White_Human = new TQRadioButton( i18n("Human"), GROUP_White_Type );
RADIO_White_PC = new TQRadioButton( i18n("Computer"), GROUP_White_Type );
RADIO_White_Email = new TQRadioButton( i18n("Email"), GROUP_White_Type );
connect( GROUP_White_Type, TQT_SIGNAL( clicked(int)), this, TQT_SLOT( slotWhiteType(int)));
- GROUP_Black_Type = new TQButtonGroup( 3, Qt::Vertical, BOX_Black_Detail );
+ GROUP_Black_Type = new TQButtonGroup( 3, TQt::Vertical, BOX_Black_Detail );
GROUP_Black_Type->setExclusive( TRUE );
RADIO_Black_Human = new TQRadioButton( i18n("Human"), GROUP_Black_Type );
RADIO_Black_PC = new TQRadioButton( i18n("Computer"), GROUP_Black_Type );
@@ -81,7 +81,7 @@ KDialogBase(parent, name, TRUE, i18n("Start a New Match"), Cancel|Ok|Help, Ok, T
}
/* Time for White */
- GRID_White_Time = new TQGrid( 2, Qt::Horizontal, BOX_White );
+ GRID_White_Time = new TQGrid( 2, TQt::Horizontal, BOX_White );
LABEL_White_Base = new TQLabel( i18n("Base Time:"), GRID_White_Time );
SPIN_White_Base = new TQSpinBox( 0, 120, 1, GRID_White_Time );
SPIN_White_Base->setSuffix( i18n(" min.") );
@@ -98,7 +98,7 @@ KDialogBase(parent, name, TRUE, i18n("Start a New Match"), Cancel|Ok|Help, Ok, T
connect( SPIN_White_Inc, TQT_SIGNAL( valueChanged(int)), this, TQT_SLOT( slotWhiteInc(int)));
/* Time for Black */
- GRID_Black_Time = new TQGrid( 2, Qt::Horizontal, BOX_Black );
+ GRID_Black_Time = new TQGrid( 2, TQt::Horizontal, BOX_Black );
LABEL_Black_Base = new TQLabel( i18n("Base Time:"), GRID_Black_Time );
SPIN_Black_Base = new TQSpinBox( 0, 120, 1, GRID_Black_Time );
SPIN_Black_Base->setSuffix( i18n(" min.") );
diff --git a/knights/dlg_selectengine.cpp b/knights/dlg_selectengine.cpp
index 253ef72..8a12533 100644
--- a/knights/dlg_selectengine.cpp
+++ b/knights/dlg_selectengine.cpp
@@ -37,14 +37,14 @@ dlg_selectengine::dlg_selectengine(TQWidget *parent, resource *Rsrc, bool army )
BOX_Parent = makeVBoxMainWidget();
BOX_Engine = new TQGroupBox( 1,
- Qt::Horizontal,
+ TQt::Horizontal,
i18n( "Computer Players" ),
BOX_Parent );
COMBO_Engine = new KComboBox( BOX_Engine );
COMBO_Engine->setEditable( FALSE );
// BOX_EngineHelper = new TQGroupBox( 1,
-// Qt::Horizontal,
+// TQt::Horizontal,
// i18n( "Computer Players' Helper" ),
// BOX_Parent );
// COMBO_EngineHelper = new KComboBox( BOX_Engine );
@@ -57,7 +57,7 @@ dlg_selectengine::dlg_selectengine(TQWidget *parent, resource *Rsrc, bool army )
GROUP_Strength = new TQGroupBox( 3,
- Qt::Horizontal,
+ TQt::Horizontal,
i18n( "Player Strength" ),
BOX_Parent );
LABEL_Str_Min = new TQLabel( i18n( "Weak" ), GROUP_Strength );
@@ -65,7 +65,7 @@ dlg_selectengine::dlg_selectengine(TQWidget *parent, resource *Rsrc, bool army )
7,
1,
Resource->Strength[ 1 * ( Army == BLACK ) ],
- Qt::Horizontal,
+ TQt::Horizontal,
GROUP_Strength );
LABEL_Str_Max = new TQLabel( i18n( "Strong" ), GROUP_Strength );
SLIDER_Strength->setTickmarks( TQSlider::Below );
diff --git a/knights/dlg_server.cpp b/knights/dlg_server.cpp
index decefe5..4c8e4f9 100644
--- a/knights/dlg_server.cpp
+++ b/knights/dlg_server.cpp
@@ -33,26 +33,26 @@ dlg_server::dlg_server(TQWidget *parent, const char *name, resource *Rsrc, TQStr
BOX_Parent = makeVBoxMainWidget();
BOX_Name = new TQGroupBox( 1,
- Qt::Horizontal,
+ TQt::Horizontal,
i18n( "Server Name" ),
BOX_Parent );
EDIT_Name = new KLineEdit( BOX_Name );
BOX_URLPort = new TQHBox( BOX_Parent );
BOX_URL = new TQGroupBox( 1,
- Qt::Horizontal,
+ TQt::Horizontal,
i18n( "Server URL" ),
BOX_URLPort );
EDIT_URL = new KLineEdit( BOX_URL );
BOX_Port = new TQGroupBox( 1,
- Qt::Horizontal,
+ TQt::Horizontal,
i18n( "Server Port" ),
BOX_URLPort );
EDIT_Port = new KLineEdit( BOX_Port );
BOX_UNameStore = new TQHBox( BOX_Parent );
BOX_UserName = new TQGroupBox( 1,
- Qt::Horizontal,
+ TQt::Horizontal,
i18n( "Username" ),
BOX_UNameStore );
EDIT_UserName = new KLineEdit( BOX_UserName );
@@ -60,14 +60,14 @@ dlg_server::dlg_server(TQWidget *parent, const char *name, resource *Rsrc, TQStr
BOX_Pass = new TQHBox( BOX_Parent );
BOX_Password = new TQGroupBox( 1,
- Qt::Vertical,
+ TQt::Vertical,
i18n( "Password" ),
BOX_Pass );
EDIT_Password = new KLineEdit( BOX_Password );
EDIT_Password->setEchoMode( TQLineEdit::Password );
BOX_PasswordRetype = new TQGroupBox( 1,
- Qt::Vertical,
+ TQt::Vertical,
i18n( "Confirm Password" ),
BOX_Pass );
EDIT_PasswordRetype = new KLineEdit( BOX_PasswordRetype );
@@ -75,7 +75,7 @@ dlg_server::dlg_server(TQWidget *parent, const char *name, resource *Rsrc, TQStr
/* Use Timeseal? */
GROUP_Timeseal = new TQGroupBox( 2,
- Qt::Horizontal,
+ TQt::Horizontal,
i18n( "Timeseal" ),
BOX_Parent );
EDIT_Timeseal = new KLineEdit( GROUP_Timeseal );
@@ -84,7 +84,7 @@ dlg_server::dlg_server(TQWidget *parent, const char *name, resource *Rsrc, TQStr
connect( BUTTON_Timeseal, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slot_Timeseal() ) );
BOX_LogFile = new TQGroupBox( 2,
- Qt::Horizontal,
+ TQt::Horizontal,
i18n( "Log File" ),
BOX_Parent );
EDIT_LogFile = new KLineEdit( BOX_LogFile );
diff --git a/knights/knightstextview.cpp b/knights/knightstextview.cpp
index 2808f73..e0ed4b2 100644
--- a/knights/knightstextview.cpp
+++ b/knights/knightstextview.cpp
@@ -77,7 +77,7 @@ KnightsTextView::~KnightsTextView()
///////////////////////////////////////
void KnightsTextView::viewportMousePressEvent( TQMouseEvent *e )
{
- if( e->button() == Qt::RightButton )
+ if( e->button() == TQt::RightButton )
{
emit rightButtonClicked( e->globalPos() );
display_menuView( e->globalPos() );
diff --git a/knights/setpageaudio.cpp b/knights/setpageaudio.cpp
index 7016ecf..8812d3d 100644
--- a/knights/setpageaudio.cpp
+++ b/knights/setpageaudio.cpp
@@ -32,7 +32,7 @@ setPageAudio::setPageAudio(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout(par
this, TQT_SLOT( slot_enableAudio(bool) ) );
GROUP_Theme = new TQGroupBox( 1,
- Qt::Vertical,
+ TQt::Vertical,
i18n( "Audio Themes" ),
parent );
addWidget( GROUP_Theme );
@@ -44,9 +44,9 @@ setPageAudio::setPageAudio(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout(par
BOX_Main = new TQHBox( parent );
addWidget( BOX_Main );
- GROUP_Volume = new TQGroupBox( 3, Qt::Vertical, i18n( "Volume" ), BOX_Main );
+ GROUP_Volume = new TQGroupBox( 3, TQt::Vertical, i18n( "Volume" ), BOX_Main );
Vol_Max = new TQLabel( i18n( "Maximum" ), GROUP_Volume );
- Current_Volume = new TQSlider ( 0, 100, 10, Resource->Audio_Volume, Qt::Vertical, GROUP_Volume );
+ Current_Volume = new TQSlider ( 0, 100, 10, Resource->Audio_Volume, TQt::Vertical, GROUP_Volume );
connect( Current_Volume, TQT_SIGNAL( valueChanged(int) ), this, TQT_SLOT( slot_currentVolume(int) ) );
Current_Volume->setTickmarks( TQSlider::Right );
Vol_Min = new TQLabel( i18n( "Minimum" ), GROUP_Volume );
diff --git a/knights/setpagedisplay.cpp b/knights/setpagedisplay.cpp
index a2d3d11..38ae1c0 100644
--- a/knights/setpagedisplay.cpp
+++ b/knights/setpagedisplay.cpp
@@ -70,18 +70,18 @@ void setPageDisplay::initTab1( void )
Tab1->setMargin( margin );
BOX_Themes = new TQHBox( Tab1 );
GROUP_Boards = new TQGroupBox( 1,
- Qt::Vertical,
+ TQt::Vertical,
i18n( "Board Themes" ),
BOX_Themes );
Current_Boards = new KComboBox ( GROUP_Boards );
GROUP_Chessmen = new TQGroupBox( 1,
- Qt::Vertical,
+ TQt::Vertical,
i18n( "Chessman Themes" ),
BOX_Themes );
Current_Chessmen = new KComboBox ( GROUP_Chessmen );
GROUP_Theme_Size = new TQGroupBox( 3,
- Qt::Horizontal,
+ TQt::Horizontal,
i18n( "Theme Size" ),
Tab1 );
@@ -90,11 +90,11 @@ void setPageDisplay::initTab1( void )
14,
2,
( Resource->ThemeSize - IMAGE_MIN ) / 8 ,
- Qt::Horizontal,
+ TQt::Horizontal,
GROUP_Theme_Size );
Size_Max = new TQLabel( i18n( "Large" ), GROUP_Theme_Size );
- GROUP_SCID_Images = new TQGroupBox( 2, Qt::Horizontal, i18n("Player Images File:"), Tab1 );
+ GROUP_SCID_Images = new TQGroupBox( 2, TQt::Horizontal, i18n("Player Images File:"), Tab1 );
EDIT_SCID_Images = new KLineEdit( GROUP_SCID_Images );
EDIT_SCID_Images->setText( Resource->SCID_Image_Path );
connect( EDIT_SCID_Images, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( slot_SCID_Images(const TQString&) ) );
@@ -103,7 +103,7 @@ void setPageDisplay::initTab1( void )
connect( BUTTON_SCID_Images, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slot_SCID_Images_Button() ) );
GROUP_General_Graphics = new TQGroupBox( 4,
- Qt::Vertical,
+ TQt::Vertical,
i18n( "Other Display Options" ),
Tab1 );
diff --git a/knights/setpageengines.cpp b/knights/setpageengines.cpp
index a7c8b99..fafe75e 100644
--- a/knights/setpageengines.cpp
+++ b/knights/setpageengines.cpp
@@ -29,7 +29,7 @@ setPageEngines::setPageEngines(TQWidget *parent, resource *Rsrc ) : TQVBoxLayou
/* Engines to play White */
GROUP_White_Current = new TQGroupBox( 3,
- Qt::Vertical,
+ TQt::Vertical,
i18n( "Engines to Play White" ),
BOX_Current );
@@ -41,7 +41,7 @@ setPageEngines::setPageEngines(TQWidget *parent, resource *Rsrc ) : TQVBoxLayou
/* Engines to play Black */
GROUP_Black_Current = new TQGroupBox( 3,
- Qt::Vertical,
+ TQt::Vertical,
i18n( "Engines to Play Black" ),
BOX_Current );
@@ -53,7 +53,7 @@ setPageEngines::setPageEngines(TQWidget *parent, resource *Rsrc ) : TQVBoxLayou
/* Chess Engines ListView */
GROUP_Engines = new TQGroupBox( 2,
- Qt::Horizontal,
+ TQt::Horizontal,
i18n( "Chess Engines" ),
parent );
addWidget( GROUP_Engines );
@@ -69,7 +69,7 @@ setPageEngines::setPageEngines(TQWidget *parent, resource *Rsrc ) : TQVBoxLayou
Engines_ListView->setShowSortIndicator( TRUE );
Engines_ListView->restoreLayout( kapp->config(), "Engines_ListView" );
- Engines_ButtonBox = new KButtonBox( GROUP_Engines,Qt::Vertical );
+ Engines_ButtonBox = new KButtonBox( GROUP_Engines,TQt::Vertical );
Engines_Button_Add = Engines_ButtonBox->addButton( i18n( "&Add..." ) );
Engines_Button_Change = Engines_ButtonBox->addButton( i18n( "&Modify..." ) );
Engines_Button_Delete = Engines_ButtonBox->addButton( i18n( "&Delete..." ) );
diff --git a/knights/setpagegeneral.cpp b/knights/setpagegeneral.cpp
index d3731b9..34d7c46 100644
--- a/knights/setpagegeneral.cpp
+++ b/knights/setpagegeneral.cpp
@@ -26,7 +26,7 @@ setPageGeneral::setPageGeneral(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout
Resource = Rsrc;
GROUP_UserName = new TQGroupBox( 1,
- Qt::Horizontal,
+ TQt::Horizontal,
i18n( "Your Name:" ),
parent );
addWidget( GROUP_UserName );
@@ -37,7 +37,7 @@ setPageGeneral::setPageGeneral(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout
BOX_SaveInit = new TQHBox( parent );
addWidget( BOX_SaveInit );
- GROUP_OnInit = new TQButtonGroup( 3, Qt::Vertical, i18n("When Knights Begins It Should:"), BOX_SaveInit );
+ GROUP_OnInit = new TQButtonGroup( 3, TQt::Vertical, i18n("When Knights Begins It Should:"), BOX_SaveInit );
BUTTON_Init_Nothing = new TQRadioButton( i18n( "Do Nothing" ), GROUP_OnInit );
BUTTON_Init_VsPC = new TQRadioButton( i18n( "Start a Match vs. PC" ), GROUP_OnInit );
BUTTON_Init_Connect = new TQRadioButton( i18n( "Connect to ICS" ), GROUP_OnInit );
@@ -48,7 +48,7 @@ setPageGeneral::setPageGeneral(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout
connect( GROUP_OnInit, TQT_SIGNAL( clicked(int) ),
this, TQT_SLOT( slot_Init(int) ) );
- GROUP_AutoSave = new TQButtonGroup( 3, Qt::Vertical, i18n("Save Match on Close?"), BOX_SaveInit );
+ GROUP_AutoSave = new TQButtonGroup( 3, TQt::Vertical, i18n("Save Match on Close?"), BOX_SaveInit );
BUTTON_AutoSave_Yes = new TQRadioButton( i18n( "Yes" ), GROUP_AutoSave );
BUTTON_AutoSave_No = new TQRadioButton( i18n( "No" ), GROUP_AutoSave );
BUTTON_AutoSave_Ask = new TQRadioButton( i18n( "Ask" ), GROUP_AutoSave );
@@ -60,7 +60,7 @@ setPageGeneral::setPageGeneral(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout
this, TQT_SLOT( slot_AutoSave(int) ) );
GROUP_Reuse_PGN = new TQGroupBox( 2,
- Qt::Vertical,
+ TQt::Vertical,
i18n( "Append to Save File:" ),
parent );
addWidget( GROUP_Reuse_PGN );
diff --git a/knights/setpageservers.cpp b/knights/setpageservers.cpp
index e639684..57ebae9 100644
--- a/knights/setpageservers.cpp
+++ b/knights/setpageservers.cpp
@@ -52,7 +52,7 @@ void setPageServers::initTab1( void )
/* Current Server */
GROUP_Current = new TQGroupBox( 1,
- Qt::Vertical,
+ TQt::Vertical,
i18n( "Current Server" ),
Tab1 );
@@ -61,7 +61,7 @@ void setPageServers::initTab1( void )
/* Chess Servers ListView */
GROUP_Servers = new TQGroupBox( 2,
- Qt::Horizontal,
+ TQt::Horizontal,
i18n( "Chess Servers" ),
Tab1 );
@@ -73,7 +73,7 @@ void setPageServers::initTab1( void )
Servers_ListView->setShowSortIndicator( TRUE );
Servers_ListView->restoreLayout( kapp->config(), "Servers_ListView" );
- Servers_ButtonBox = new KButtonBox( GROUP_Servers,Qt::Vertical );
+ Servers_ButtonBox = new KButtonBox( GROUP_Servers,TQt::Vertical );
Servers_Button_Add = Servers_ButtonBox->addButton( i18n( "&Add..." ) );
Servers_Button_Change = Servers_ButtonBox->addButton( i18n( "&Modify..." ) );
Servers_Button_Delete = Servers_ButtonBox->addButton( i18n( "&Delete..." ) );
@@ -102,7 +102,7 @@ void setPageServers::initTab2( void )
/* Current Profanity Filter */
BOX_Profanity = new TQGroupBox( 1,
- Qt::Vertical,
+ TQt::Vertical,
i18n( "Profanity Filter" ),
Tab2 );
COMBO_Profanity = new KComboBox ( BOX_Profanity );
diff --git a/knights/tabgrip.cpp b/knights/tabgrip.cpp
index 1fc0813..8ec432e 100644
--- a/knights/tabgrip.cpp
+++ b/knights/tabgrip.cpp
@@ -60,7 +60,7 @@ void TabGrip::paintEvent( TQPaintEvent* )
void TabGrip::mousePressEvent( TQMouseEvent *event )
{
event->accept();
- if(event->button() == Qt::LeftButton)
+ if(event->button() == TQt::LeftButton)
{
couldDrag = TRUE;
offset = mapToGlobal( event->pos() );
@@ -96,7 +96,7 @@ void TabGrip::mouseMoveEvent( TQMouseEvent *event )
void TabGrip::mouseReleaseEvent( TQMouseEvent *event )
{
event->accept();
- if(event->button() == Qt::LeftButton)
+ if(event->button() == TQt::LeftButton)
{
couldDrag = FALSE;
if( isDragging )
diff --git a/knights/thinbuttons.cpp b/knights/thinbuttons.cpp
index 4a38dbe..c2d475a 100644
--- a/knights/thinbuttons.cpp
+++ b/knights/thinbuttons.cpp
@@ -219,7 +219,7 @@ void thinbuttons::mousePressEvent( TQMouseEvent *event )
int margin, xpos(0), index(0);
/* We only want RightClick */
- if(event->button() != Qt::RightButton)
+ if(event->button() != TQt::RightButton)
{
return;
}
diff --git a/knights/wiz_setup.cpp b/knights/wiz_setup.cpp
index 0bdaa7a..593d09b 100644
--- a/knights/wiz_setup.cpp
+++ b/knights/wiz_setup.cpp
@@ -97,7 +97,7 @@ void wiz_setup::initPage2( void )
pgnExplain->setText( i18n( "When Knights saves a match to disk, it uses Portable Game Notation (PGN) to store the match. Several other computer chess games use PGN too. If you like, Knights can be the default PGN viewer on this system." ) );
P2B1->addWidget( pgnExplain, 1, 3 );
- pgnButtons = new TQButtonGroup( 2, Qt::Vertical, i18n( "Let Knights handle PGN files?" ), Page2 );
+ pgnButtons = new TQButtonGroup( 2, TQt::Vertical, i18n( "Let Knights handle PGN files?" ), Page2 );
pgnYes = new TQRadioButton( i18n( "Yes" ), pgnButtons );
pgnNo = new TQRadioButton( i18n( "No" ), pgnButtons );
pgnButtons->setButton( 0 );
@@ -125,7 +125,7 @@ void wiz_setup::initPage3( void )
engineExplain->setText( i18n( "Knights can not play a chess match against you without help. Known as Chess Engines, these helpers can be found on the Internet and are often included with your distribution. Knights can look for Chess Engines that you may already have. If found, Knights will configure itself to use them." ) );
P3B1->addWidget( engineExplain, 1, 3 );
- engineButtons = new TQButtonGroup( 2, Qt::Vertical, i18n( "Let Knights search for chess engines?" ), Page3 );
+ engineButtons = new TQButtonGroup( 2, TQt::Vertical, i18n( "Let Knights search for chess engines?" ), Page3 );
engineYes = new TQRadioButton( i18n( "Yes" ), engineButtons );
engineNo = new TQRadioButton( i18n( "No" ), engineButtons );
engineButtons->setButton( 0 );
@@ -153,7 +153,7 @@ void wiz_setup::initPage4( void )
serverExplain->setText( i18n( "In order for you to play chess online, Knights will have to connect to a chess server. Knights has a list of several of these servers. If you like, this list can be used to automatically configure Knights." ) );
P4B1->addWidget( serverExplain, 1, 3 );
- serverButtons = new TQButtonGroup( 2, Qt::Vertical, i18n( "Let Knights configure chess servers?" ), Page4 );
+ serverButtons = new TQButtonGroup( 2, TQt::Vertical, i18n( "Let Knights configure chess servers?" ), Page4 );
serverYes = new TQRadioButton( i18n( "Yes" ), serverButtons );
serverNo = new TQRadioButton( i18n( "No" ), serverButtons );
serverButtons->setButton( 0 );
@@ -210,7 +210,7 @@ void wiz_setup::initPage6( void )
licenseText.append( "</K_STD>" );
licenseView->setText( licenseText );
- licenseButtons = new TQButtonGroup( 2, Qt::Horizontal, i18n( "Do you accept the terms of our license?" ), Page6 );
+ licenseButtons = new TQButtonGroup( 2, TQt::Horizontal, i18n( "Do you accept the terms of our license?" ), Page6 );
licenseYes = new TQRadioButton( i18n( "Yes" ), licenseButtons );
licenseNo = new TQRadioButton( i18n( "No" ), licenseButtons );
licenseButtons->setButton( 1 );