summaryrefslogtreecommitdiffstats
path: root/kspaceduel
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-16 09:58:53 -0600
committerTimothy Pearson <[email protected]>2011-12-16 09:58:53 -0600
commit84ace1135cac57993b72fee7105b92def1638d32 (patch)
treeb8871eb76e3db4a062731b0ce7c99c24fac119e8 /kspaceduel
parent97d1732e257f8700488d7ca1660ae7eba8fc6065 (diff)
downloadtdegames-84ace1135cac57993b72fee7105b92def1638d32.tar.gz
tdegames-84ace1135cac57993b72fee7105b92def1638d32.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 97d1732e257f8700488d7ca1660ae7eba8fc6065.
Diffstat (limited to 'kspaceduel')
-rw-r--r--kspaceduel/dialogs.cpp10
-rw-r--r--kspaceduel/general.ui2
-rw-r--r--kspaceduel/mainview.cpp6
-rw-r--r--kspaceduel/playerinfo.cpp6
-rw-r--r--kspaceduel/topwidget.cpp12
5 files changed, 18 insertions, 18 deletions
diff --git a/kspaceduel/dialogs.cpp b/kspaceduel/dialogs.cpp
index 8d4faf26..34194ad0 100644
--- a/kspaceduel/dialogs.cpp
+++ b/kspaceduel/dialogs.cpp
@@ -3,7 +3,7 @@
#include <tqtabwidget.h>
#include <tqslider.h>
#include <tqlcdnumber.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <klocale.h>
@@ -130,7 +130,7 @@ ConfigSetup::ConfigSetup(SConfig *custom,TQWidget *parent,const char *name)
//box=new TQGroupBox(i18n("Config"),this);
//setMainWidget( box );
- TQVBoxLayout *boxlayout = new TQVBoxLayout( this, 6 );
+ TQVBoxLayout *boxtqlayout = new TQVBoxLayout( this, 6 );
tabs=new TQTabWidget(this);
for(i=0;i<TabNum;i++)
@@ -157,9 +157,9 @@ ConfigSetup::ConfigSetup(SConfig *custom,TQWidget *parent,const char *name)
configCombo->insertItem(i18n(predefinedConfigName[i]));
configCombo->insertItem(i18n("Custom"));
- boxlayout->addSpacing( 2 * 6 );
- boxlayout->addWidget(configCombo);
- boxlayout->addWidget(tabs);
+ boxtqlayout->addSpacing( 2 * 6 );
+ boxtqlayout->addWidget(configCombo);
+ boxtqlayout->addWidget(tabs);
for(i=0;i<EditNum;i++)
{
diff --git a/kspaceduel/general.ui b/kspaceduel/general.ui
index db120dd0..05d5ba83 100644
--- a/kspaceduel/general.ui
+++ b/kspaceduel/general.ui
@@ -154,7 +154,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>91</height>
diff --git a/kspaceduel/mainview.cpp b/kspaceduel/mainview.cpp
index 5b02fc75..3f17605a 100644
--- a/kspaceduel/mainview.cpp
+++ b/kspaceduel/mainview.cpp
@@ -27,7 +27,7 @@ MyMainView::MyMainView(TQWidget *parent)
setMinimumSize(600,400);
random.setSeed(0);
TQPixmap backgr(locate("appdata", MV_BACKGROUND));
- field.setBackgroundPixmap(backgr);
+ field.tqsetBackgroundPixmap(backgr);
view.setResizePolicy(TQScrollView::AutoOne);
view.setHScrollBarMode(TQScrollView::AlwaysOff);
@@ -492,7 +492,7 @@ void MyMainView::newRound()
field.update();
TQString str = i18n("Press %1 to start")
- .arg(KShortcut(GAME_START_SHORTCUT).toString());
+ .tqarg(KShortcut(GAME_START_SHORTCUT).toString());
emit(setStatusText(str,IDS_MAIN));
emit( setStatusText( "", IDS_PAUSE ) );
stop( );
@@ -557,7 +557,7 @@ void MyMainView::timerEvent(TQTimerEvent *event)
emit(wins(0,w));
}
TQString str = i18n("Press %1 for new round")
- .arg(KShortcut(GAME_START_SHORTCUT).toString());
+ .tqarg(KShortcut(GAME_START_SHORTCUT).toString());
emit(setStatusText(str,IDS_MAIN));
stop( );
}
diff --git a/kspaceduel/playerinfo.cpp b/kspaceduel/playerinfo.cpp
index 2e1ef91d..dbb5728d 100644
--- a/kspaceduel/playerinfo.cpp
+++ b/kspaceduel/playerinfo.cpp
@@ -34,9 +34,9 @@ PlayerInfo::PlayerInfo(int pnr,TQWidget *parent,const char *name)
for(i=0;i<4;i++)
{
- str = TQString::fromLatin1("sprites/playerinfo/ship%1%2.pnm")
- .arg(pnr+1)
- .arg(i);
+ str = TQString::tqfromLatin1("sprites/playerinfo/ship%1%2.pnm")
+ .tqarg(pnr+1)
+ .tqarg(i);
pix[i]=new TQPixmap(locate("appdata", str));
}
diff --git a/kspaceduel/topwidget.cpp b/kspaceduel/topwidget.cpp
index fff04d1f..999f546b 100644
--- a/kspaceduel/topwidget.cpp
+++ b/kspaceduel/topwidget.cpp
@@ -3,7 +3,7 @@
#include <kkeydialog.h>
#include <kaction.h>
#include <kstdgameaction.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <kstatusbar.h>
#include "topwidget.h"
@@ -25,11 +25,11 @@ void MyTopLevelWidget::initGameWidgets( ){
playerinfo[1]=new PlayerInfo(1,w);
playfield=new MyMainView(w);
- TQBoxLayout *toplayout=new TQHBoxLayout(w);
- toplayout->addWidget(playerinfo[0]);
- toplayout->addWidget(playfield);
- toplayout->addWidget(playerinfo[1]);
- toplayout->activate();
+ TQBoxLayout *toptqlayout=new TQHBoxLayout(w);
+ toptqlayout->addWidget(playerinfo[0]);
+ toptqlayout->addWidget(playfield);
+ toptqlayout->addWidget(playerinfo[1]);
+ toptqlayout->activate();
playfield->setFocusPolicy(TQ_StrongFocus);
playfield->setFocus();