summaryrefslogtreecommitdiffstats
path: root/ksame/KSameWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksame/KSameWidget.cpp')
-rw-r--r--ksame/KSameWidget.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/ksame/KSameWidget.cpp b/ksame/KSameWidget.cpp
index e9f2d730..a0e0142e 100644
--- a/ksame/KSameWidget.cpp
+++ b/ksame/KSameWidget.cpp
@@ -21,8 +21,8 @@
#include "KSameWidget.h"
-#include <qwidget.h>
-#include <qvbox.h>
+#include <tqwidget.h>
+#include <tqvbox.h>
#include <kapplication.h>
#include <kiconloader.h>
@@ -46,20 +46,20 @@ static int default_colors=3;
#define Board KScoreDialog::Custom1
-KSameWidget::KSameWidget(QWidget *parent, const char* name, WFlags fl) :
+KSameWidget::KSameWidget(TQWidget *parent, const char* name, WFlags fl) :
KMainWindow(parent,name,fl)
{
- KStdGameAction::gameNew(this, SLOT(m_new()), actionCollection(), "game_new");
+ KStdGameAction::gameNew(this, TQT_SLOT(m_new()), actionCollection(), "game_new");
restart = new KAction(i18n("&Restart This Board"), CTRL+Key_R, this,
- SLOT(m_restart()), actionCollection(), "game_restart");
- KStdGameAction::highscores(this, SLOT(m_showhs()), actionCollection(), "game_highscores");
- KStdGameAction::quit(this, SLOT(close()), actionCollection(), "game_quit");
- undo = KStdGameAction::undo(this, SLOT(m_undo()), actionCollection(), "edit_undo");
+ TQT_SLOT(m_restart()), actionCollection(), "game_restart");
+ KStdGameAction::highscores(this, TQT_SLOT(m_showhs()), actionCollection(), "game_highscores");
+ KStdGameAction::quit(this, TQT_SLOT(close()), actionCollection(), "game_quit");
+ undo = KStdGameAction::undo(this, TQT_SLOT(m_undo()), actionCollection(), "edit_undo");
random = new KToggleAction(i18n("&Random Board"), 0, 0, 0, actionCollection(), "random_board");
- showNumberRemaining = new KToggleAction(i18n("&Show Number Remaining"), 0, this, SLOT(showNumberRemainingToggled()), actionCollection(), "showNumberRemaining");
+ showNumberRemaining = new KToggleAction(i18n("&Show Number Remaining"), 0, this, TQT_SLOT(showNumberRemainingToggled()), actionCollection(), "showNumberRemaining");
- KStdAction::configureNotifications(this, SLOT(configureNotifications()),
+ KStdAction::configureNotifications(this, TQT_SLOT(configureNotifications()),
actionCollection());
status=statusBar();
@@ -70,14 +70,14 @@ KSameWidget::KSameWidget(QWidget *parent, const char* name, WFlags fl) :
stone = new StoneWidget(this,15,10);
- connect( stone, SIGNAL(s_gameover()), this, SLOT(gameover()));
- connect( stone, SIGNAL(s_colors(int)), this, SLOT(setColors(int)));
- connect( stone, SIGNAL(s_board(int)), this, SLOT(setBoard(int)));
- connect( stone, SIGNAL(s_marked(int)), this, SLOT(setMarked(int)));
- connect( stone, SIGNAL(s_score(int)), this, SLOT(setScore(int)));
- connect( stone, SIGNAL(s_remove(int,int)), this, SLOT(stonesRemoved(int,int)));
+ connect( stone, TQT_SIGNAL(s_gameover()), this, TQT_SLOT(gameover()));
+ connect( stone, TQT_SIGNAL(s_colors(int)), this, TQT_SLOT(setColors(int)));
+ connect( stone, TQT_SIGNAL(s_board(int)), this, TQT_SLOT(setBoard(int)));
+ connect( stone, TQT_SIGNAL(s_marked(int)), this, TQT_SLOT(setMarked(int)));
+ connect( stone, TQT_SIGNAL(s_score(int)), this, TQT_SLOT(setScore(int)));
+ connect( stone, TQT_SIGNAL(s_remove(int,int)), this, TQT_SLOT(stonesRemoved(int,int)));
- connect(stone, SIGNAL(s_sizechanged()), this, SLOT(sizeChanged()));
+ connect(stone, TQT_SIGNAL(s_sizechanged()), this, TQT_SLOT(sizeChanged()));
sizeChanged();
setCentralWidget(stone);
@@ -119,10 +119,10 @@ void KSameWidget::sizeChanged() {
void KSameWidget::showNumberRemainingToggled()
{
if(showNumberRemaining->isChecked()){
- QStringList list;
+ TQStringList list;
for(int i=1;i<=stone->colors();i++)
- list.append(QString("%1").arg(stone->count(i)));
- QString count = QString(" (%1)").arg(list.join(","));
+ list.append(TQString("%1").arg(stone->count(i)));
+ TQString count = TQString(" (%1)").arg(list.join(","));
status->changeItem(i18n("%1 Colors%2").arg(stone->colors()).arg(count),1);
}
else status->changeItem(i18n("%1 Colors").arg(stone->colors()),1);
@@ -156,7 +156,7 @@ void KSameWidget::m_new() {
KDialogBase::Ok | KDialogBase::Cancel,
KDialogBase::Ok);
- QVBox *page = dlg.makeVBoxMainWidget();
+ TQVBox *page = dlg.makeVBoxMainWidget();
KIntNumInput bno(0, page);
bno.setRange(0, 1000000, 1);
@@ -207,10 +207,10 @@ void KSameWidget::stonesRemoved(int,int) {
void KSameWidget::setScore(int score) {
if(showNumberRemaining->isChecked()){
- QStringList list;
+ TQStringList list;
for(int i=1;i<=stone->colors();i++)
- list.append(QString("%1").arg(stone->count(i)));
- QString count = QString(" (%1)").arg(list.join(","));
+ list.append(TQString("%1").arg(stone->count(i)));
+ TQString count = TQString(" (%1)").arg(list.join(","));
status->changeItem(i18n("%1 Colors%2").arg(stone->colors()).arg(count),1);
}
status->changeItem(i18n("Score: %1").arg(score, 6),4);