summaryrefslogtreecommitdiffstats
path: root/kpat
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:58:53 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:58:53 -0600
commit84ace1135cac57993b72fee7105b92def1638d32 (patch)
treeb8871eb76e3db4a062731b0ce7c99c24fac119e8 /kpat
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 'kpat')
-rw-r--r--kpat/CHANGES2
-rw-r--r--kpat/card.cpp2
-rw-r--r--kpat/dealer.cpp48
-rw-r--r--kpat/freecell-solver/caas.c2
-rw-r--r--kpat/freecell-solver/pqueue.c2
-rw-r--r--kpat/freecell-solver/pqueue.h2
-rw-r--r--kpat/freecell-solver/state.h8
-rw-r--r--kpat/freecell-solver/test_arr.h6
-rw-r--r--kpat/freecell-solver/tests.h8
-rw-r--r--kpat/freecell.cpp12
-rw-r--r--kpat/gamestats.ui20
-rw-r--r--kpat/gamestatsimpl.cpp16
-rw-r--r--kpat/pile.cpp6
-rw-r--r--kpat/pwidget.cpp8
14 files changed, 71 insertions, 71 deletions
diff --git a/kpat/CHANGES b/kpat/CHANGES
index 2480f12e..d6016123 100644
--- a/kpat/CHANGES
+++ b/kpat/CHANGES
@@ -132,7 +132,7 @@ since kpat-0.2
since kpat-0.1
- - changed shading colorGroup (Paul)
+ - changed shading tqcolorGroup (Paul)
- fixed drawing of suit symbols (Paul)
- renamed "very easy" to "cheating" :) (Paul)
- fixed spurious core dump(Paul)
diff --git a/kpat/card.cpp b/kpat/card.cpp
index d3dba426..30f5d81d 100644
--- a/kpat/card.cpp
+++ b/kpat/card.cpp
@@ -45,7 +45,7 @@ Card::Card( Rank r, Suit s, TQCanvas* _parent )
{
// Set the name of the card
// FIXME: i18n()
- m_name = TQString("%1 %2").arg(suit_names[s-1]).arg(rank_names[r-1]).utf8();
+ m_name = TQString("%1 %2").tqarg(suit_names[s-1]).tqarg(rank_names[r-1]).utf8();
// Default for the card is face up, standard size.
m_faceup = true;
diff --git a/kpat/dealer.cpp b/kpat/dealer.cpp
index dbd27787..d3cdecad 100644
--- a/kpat/dealer.cpp
+++ b/kpat/dealer.cpp
@@ -99,7 +99,7 @@ const Dealer *Dealer::instance()
void Dealer::setBackgroundPixmap(const TQPixmap &background, const TQColor &midcolor)
{
_midcolor = midcolor;
- canvas()->setBackgroundPixmap(background);
+ canvas()->tqsetBackgroundPixmap(background);
for (PileList::Iterator it = piles.begin(); it != piles.end(); ++it) {
(*it)->resetCache();
(*it)->initSizes();
@@ -114,7 +114,7 @@ void Dealer::setupActions() {
if (actions() & Dealer::Hint) {
- ahint = new KAction( i18n("&Hint"), TQString::fromLatin1("wizard"), Key_H, TQT_TQOBJECT(this),
+ ahint = new KAction( i18n("&Hint"), TQString::tqfromLatin1("wizard"), Key_H, TQT_TQOBJECT(this),
TQT_SLOT(hint()),
parent()->actionCollection(), "game_hint");
actionlist.append(ahint);
@@ -122,7 +122,7 @@ void Dealer::setupActions() {
ahint = 0;
if (actions() & Dealer::Demo) {
- ademo = new KToggleAction( i18n("&Demo"), TQString::fromLatin1("1rightarrow"), CTRL+Key_D, TQT_TQOBJECT(this),
+ ademo = new KToggleAction( i18n("&Demo"), TQString::tqfromLatin1("1rightarrow"), CTRL+Key_D, TQT_TQOBJECT(this),
TQT_SLOT(toggleDemo()),
parent()->actionCollection(), "game_demo");
actionlist.append(ademo);
@@ -130,14 +130,14 @@ void Dealer::setupActions() {
ademo = 0;
if (actions() & Dealer::Redeal) {
- aredeal = new KAction (i18n("&Redeal"), TQString::fromLatin1("queue"), 0, TQT_TQOBJECT(this),
+ aredeal = new KAction (i18n("&Redeal"), TQString::tqfromLatin1("queue"), 0, TQT_TQOBJECT(this),
TQT_SLOT(redeal()),
parent()->actionCollection(), "game_redeal");
actionlist.append(aredeal);
} else
aredeal = 0;
- parent()->guiFactory()->plugActionList( parent(), TQString::fromLatin1("game_actions"), actionlist);
+ parent()->guiFactory()->plugActionList( parent(), TQString::tqfromLatin1("game_actions"), actionlist);
}
Dealer::~Dealer()
@@ -145,7 +145,7 @@ Dealer::~Dealer()
if (!_won)
countLoss();
clearHints();
- parent()->guiFactory()->unplugActionList( parent(), TQString::fromLatin1("game_actions"));
+ parent()->guiFactory()->unplugActionList( parent(), TQString::tqfromLatin1("game_actions"));
while (!piles.isEmpty())
delete piles.first(); // removes itself
@@ -535,8 +535,8 @@ void Dealer::resizeEvent(TQResizeEvent *e)
{
int x = width();
int y = height();
- int hs = horizontalScrollBar()->sizeHint().height();
- int vs = verticalScrollBar()->sizeHint().width();
+ int hs = horizontalScrollBar()->tqsizeHint().height();
+ int vs = verticalScrollBar()->tqsizeHint().width();
int mx = minsize.width();
int my = minsize.height();
@@ -778,7 +778,7 @@ void Dealer::setState(State *st)
CardState s = *it;
bool target = c->takenDown(); // abused
s.source->add(c, s.source_index);
- c->setVisible(s.source->isVisible());
+ c->tqsetVisible(s.source->isVisible());
c->setAnimated(false);
c->setX(s.x);
c->setY(s.y);
@@ -962,7 +962,7 @@ void Dealer::openGame(TQDomDocument &doc)
(*it2)->setX(card.attribute("x").toInt());
(*it2)->setY(card.attribute("y").toInt());
(*it2)->setZ(card.attribute("z").toInt());
- (*it2)->setVisible(p->isVisible());
+ (*it2)->tqsetVisible(p->isVisible());
cards.remove(it2);
break;
}
@@ -1160,14 +1160,14 @@ void Dealer::won()
{ // wrap in own scope to make KConfigGroupSave work
KConfig *config = kapp->config();
KConfigGroupSaver kcs(config, scores_group);
- unsigned int n = config->readUnsignedNumEntry(TQString("won%1").arg(_id),0) + 1;
- config->writeEntry(TQString("won%1").arg(_id),n);
- n = config->readUnsignedNumEntry(TQString("winstreak%1").arg(_id),0) + 1;
- config->writeEntry(TQString("winstreak%1").arg(_id),n);
- unsigned int m = config->readUnsignedNumEntry(TQString("maxwinstreak%1").arg(_id),0);
+ unsigned int n = config->readUnsignedNumEntry(TQString("won%1").tqarg(_id),0) + 1;
+ config->writeEntry(TQString("won%1").tqarg(_id),n);
+ n = config->readUnsignedNumEntry(TQString("winstreak%1").tqarg(_id),0) + 1;
+ config->writeEntry(TQString("winstreak%1").tqarg(_id),n);
+ unsigned int m = config->readUnsignedNumEntry(TQString("maxwinstreak%1").tqarg(_id),0);
if (n>m)
- config->writeEntry(TQString("maxwinstreak%1").arg(_id),n);
- config->writeEntry(TQString("loosestreak%1").arg(_id),0);
+ config->writeEntry(TQString("maxwinstreak%1").tqarg(_id),n);
+ config->writeEntry(TQString("loosestreak%1").tqarg(_id),0);
}
// sort cards by increasing z
@@ -1430,9 +1430,9 @@ void Dealer::countGame()
kdDebug(11111) << "counting game as played." << endl;
KConfig *config = kapp->config();
KConfigGroupSaver kcs(config, scores_group);
- unsigned int Total = config->readUnsignedNumEntry(TQString("total%1").arg(_id),0);
+ unsigned int Total = config->readUnsignedNumEntry(TQString("total%1").tqarg(_id),0);
++Total;
- config->writeEntry(TQString("total%1").arg(_id),Total);
+ config->writeEntry(TQString("total%1").tqarg(_id),Total);
_gameRecorded = true;
}
}
@@ -1443,12 +1443,12 @@ void Dealer::countLoss()
// update score
KConfig *config = kapp->config();
KConfigGroupSaver kcs(config, scores_group);
- unsigned int n = config->readUnsignedNumEntry(TQString("loosestreak%1").arg(_id),0) + 1;
- config->writeEntry(TQString("loosestreak%1").arg(_id),n);
- unsigned int m = config->readUnsignedNumEntry(TQString("maxloosestreak%1").arg(_id),0);
+ unsigned int n = config->readUnsignedNumEntry(TQString("loosestreak%1").tqarg(_id),0) + 1;
+ config->writeEntry(TQString("loosestreak%1").tqarg(_id),n);
+ unsigned int m = config->readUnsignedNumEntry(TQString("maxloosestreak%1").tqarg(_id),0);
if (n>m)
- config->writeEntry(TQString("maxloosestreak%1").arg(_id),n);
- config->writeEntry(TQString("winstreak%1").arg(_id),0);
+ config->writeEntry(TQString("maxloosestreak%1").tqarg(_id),n);
+ config->writeEntry(TQString("winstreak%1").tqarg(_id),0);
}
}
diff --git a/kpat/freecell-solver/caas.c b/kpat/freecell-solver/caas.c
index 82492f34..8e8f5ebb 100644
--- a/kpat/freecell-solver/caas.c
+++ b/kpat/freecell-solver/caas.c
@@ -531,7 +531,7 @@ GCC_INLINE int freecell_solver_check_and_add_state(
/* The new state was not found in the cache, and it was already inserted */
if (new_state->parent)
{
- new_state->parent->num_active_children++;
+ new_state->parent->num_active_tqchildren++;
}
instance->num_states_in_collection++;
diff --git a/kpat/freecell-solver/pqueue.c b/kpat/freecell-solver/pqueue.c
index 47e6280d..90afc168 100644
--- a/kpat/freecell-solver/pqueue.c
+++ b/kpat/freecell-solver/pqueue.c
@@ -145,7 +145,7 @@ void *freecell_solver_PQueuePop( PTQUEUE *pq)
for( i=PTQ_FIRST_ENTRY; (child = PTQ_LEFT_CHILD_INDEX(i)) <= CurrentSize; i=child )
{
- /* set child to the smaller of the two children... */
+ /* set child to the smaller of the two tqchildren... */
if( (child != CurrentSize) &&
(PGetRating(Elements[child + 1]) > PGetRating(Elements[child])) )
diff --git a/kpat/freecell-solver/pqueue.h b/kpat/freecell-solver/pqueue.h
index cef1b854..875741ae 100644
--- a/kpat/freecell-solver/pqueue.h
+++ b/kpat/freecell-solver/pqueue.h
@@ -47,7 +47,7 @@ typedef struct _PTQUEUE
#define PTQ_PARENT_INDEX(i) ((i)>>1)
#define PTQ_FIRST_ENTRY (1)
-/* left and right children are index * 2 and (index * 2) +1 respectively */
+/* left and right tqchildren are index * 2 and (index * 2) +1 respectively */
#define PTQ_LEFT_CHILD_INDEX(i) ((i)<<1)
#define PTQ_RIGHT_CHILD_INDEX(i) (((i)<<1)+1)
diff --git a/kpat/freecell-solver/state.h b/kpat/freecell-solver/state.h
index e52b717c..302d6d9a 100644
--- a/kpat/freecell-solver/state.h
+++ b/kpat/freecell-solver/state.h
@@ -77,7 +77,7 @@ struct fcs_struct_state_with_locations_t
int depth;
int visited;
int visited_iter;
- int num_active_children;
+ int num_active_tqchildren;
int scan_visited[MAX_NUM_SCANS_BUCKETS];
};
@@ -237,7 +237,7 @@ struct fcs_struct_state_with_locations_t
int depth;
int visited;
int visited_iter;
- int num_active_children;
+ int num_active_tqchildren;
int scan_visited[MAX_NUM_SCANS_BUCKETS];
};
@@ -508,11 +508,11 @@ struct fcs_struct_state_with_locations_t
* */
int visited_iter;
/*
- * This is the number of direct children of this state which were not
+ * This is the number of direct tqchildren of this state which were not
* yet declared as dead ends. Once this counter reaches zero, this
* state too is declared as a dead end.
* */
- int num_active_children;
+ int num_active_tqchildren;
/*
* This is a vector of flags - one for each scan. Each indicates whether
* its scan has already visited this state
diff --git a/kpat/freecell-solver/test_arr.h b/kpat/freecell-solver/test_arr.h
index cfc5cd12..911ff511 100644
--- a/kpat/freecell-solver/test_arr.h
+++ b/kpat/freecell-solver/test_arr.h
@@ -88,8 +88,8 @@ extern freecell_solver_solve_for_state_test_t freecell_solver_sfs_tests[FCS_TEST
if (ptr_state != NULL) \
{ \
/* Decrease the refcount of the state */ \
- ptr_state->num_active_children--; \
- while((ptr_state->num_active_children == 0) && (ptr_state->visited & FCS_VISITED_ALL_TESTS_DONE)) \
+ ptr_state->num_active_tqchildren--; \
+ while((ptr_state->num_active_tqchildren == 0) && (ptr_state->visited & FCS_VISITED_ALL_TESTS_DONE)) \
{ \
/* Mark as dead end */ \
ptr_state->visited |= FCS_VISITED_DEAD_END; \
@@ -100,7 +100,7 @@ extern freecell_solver_solve_for_state_test_t freecell_solver_sfs_tests[FCS_TEST
break; \
} \
/* Decrease the refcount */ \
- ptr_state->num_active_children--; \
+ ptr_state->num_active_tqchildren--; \
} \
} \
} \
diff --git a/kpat/freecell-solver/tests.h b/kpat/freecell-solver/tests.h
index ce0b35b5..0293ed85 100644
--- a/kpat/freecell-solver/tests.h
+++ b/kpat/freecell-solver/tests.h
@@ -66,8 +66,8 @@ extern "C" {
ptr_new_state_with_locations->depth = ptr_state_with_locations->depth + 1; \
/* Mark this state as a state that was not yet visited */ \
ptr_new_state_with_locations->visited = 0; \
- /* It's a newly created state which does not have children yet. */ \
- ptr_new_state_with_locations->num_active_children = 0; \
+ /* It's a newly created state which does not have tqchildren yet. */ \
+ ptr_new_state_with_locations->num_active_tqchildren = 0; \
memset(ptr_new_state_with_locations->scan_visited, '\0', \
sizeof(ptr_new_state_with_locations->scan_visited) \
); \
@@ -119,13 +119,13 @@ fcs_move_stack_push(moves, temp_move); \
); \
if (!(existing_state->visited & FCS_VISITED_DEAD_END)) \
{ \
- if ((--existing_state->parent->num_active_children) == 0) \
+ if ((--existing_state->parent->num_active_tqchildren) == 0) \
{ \
mark_as_dead_end( \
existing_state->parent \
); \
} \
- ptr_state_with_locations->num_active_children++; \
+ ptr_state_with_locations->num_active_tqchildren++; \
} \
existing_state->parent = ptr_state_with_locations; \
existing_state->depth = ptr_state_with_locations->depth + 1; \
diff --git a/kpat/freecell.cpp b/kpat/freecell.cpp
index 4575d95b..74d00b68 100644
--- a/kpat/freecell.cpp
+++ b/kpat/freecell.cpp
@@ -280,8 +280,8 @@ void FreecellBase::resumeSolution()
return;
emit gameInfo(i18n("%1 tries - depth %2")
- .arg(freecell_solver_user_get_num_times(solver_instance))
- .arg(freecell_solver_user_get_current_depth(solver_instance)));
+ .tqarg(freecell_solver_user_get_num_times(solver_instance))
+ .tqarg(freecell_solver_user_get_current_depth(solver_instance)));
if (solver_ret == FCS_STATE_WAS_SOLVED)
{
@@ -296,7 +296,7 @@ void FreecellBase::resumeSolution()
int moves = freecell_solver_user_get_num_times(solver_instance);
freeSolution();
emit gameInfo(i18n("unsolved after %1 moves")
- .arg(moves));
+ .tqarg(moves));
stopDemo();
return;
}
@@ -379,7 +379,7 @@ TQString FreecellBase::solverFormat() const
tmp += suitToString(target[i]->top()->suit()) + "-" + rankToString(target[i]->top()->rank()) + " ";
}
if (!tmp.isEmpty())
- output += TQString::fromLatin1("Foundations: %1\n").arg(tmp);
+ output += TQString::tqfromLatin1("Foundations: %1\n").tqarg(tmp);
tmp.truncate(0);
for (uint i = 0; i < freecell.count(); i++) {
@@ -389,7 +389,7 @@ TQString FreecellBase::solverFormat() const
tmp += rankToString(freecell[i]->top()->rank()) + suitToString(freecell[i]->top()->suit()) + " ";
}
if (!tmp.isEmpty())
- output += TQString::fromLatin1("Freecells: %1\n").arg(tmp);
+ output += TQString::tqfromLatin1("Freecells: %1\n").tqarg(tmp);
for (uint i = 0; i < store.count(); i++)
{
@@ -544,7 +544,7 @@ MoveHint *FreecellBase::chooseHint()
{
if (solver_instance && freecell_solver_user_get_moves_left(solver_instance)) {
- emit gameInfo(i18n("%1 moves before finish").arg(freecell_solver_user_get_moves_left(solver_instance)));
+ emit gameInfo(i18n("%1 moves before finish").tqarg(freecell_solver_user_get_moves_left(solver_instance)));
fcs_move_t move;
if (!freecell_solver_user_get_next_move(solver_instance, &move)) {
diff --git a/kpat/gamestats.ui b/kpat/gamestats.ui
index 3efbdaa9..ac2597fd 100644
--- a/kpat/gamestats.ui
+++ b/kpat/gamestats.ui
@@ -24,7 +24,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout3</cstring>
+ <cstring>tqlayout3</cstring>
</property>
<hbox>
<property name="name">
@@ -63,7 +63,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout5</cstring>
+ <cstring>tqlayout5</cstring>
</property>
<hbox>
<property name="name">
@@ -71,7 +71,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout2</cstring>
+ <cstring>tqlayout2</cstring>
</property>
<grid>
<property name="name">
@@ -84,7 +84,7 @@
<property name="text">
<string>%1</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
@@ -119,7 +119,7 @@
<property name="text">
<string>%1</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
@@ -138,7 +138,7 @@
<property name="text">
<string>%1</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
@@ -157,7 +157,7 @@
<property name="text">
<string>%1</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
@@ -173,7 +173,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>250</width>
<height>20</height>
@@ -192,7 +192,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>71</height>
@@ -223,7 +223,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
diff --git a/kpat/gamestatsimpl.cpp b/kpat/gamestatsimpl.cpp
index 11b95fee..2850da01 100644
--- a/kpat/gamestatsimpl.cpp
+++ b/kpat/gamestatsimpl.cpp
@@ -42,16 +42,16 @@ void GameStatsImpl::setGameType(int id)
languageChange();
KConfig *config = kapp->config();
KConfigGroupSaver kcs(config, scores_group);
- unsigned int t = config->readUnsignedNumEntry(TQString("total%1").arg(id),0);
- Played->setText(Played->text().arg(t));
- unsigned int w = config->readUnsignedNumEntry(TQString("won%1").arg(id),0);
- Won->setText(Won->text().arg(w));
+ unsigned int t = config->readUnsignedNumEntry(TQString("total%1").tqarg(id),0);
+ Played->setText(Played->text().tqarg(t));
+ unsigned int w = config->readUnsignedNumEntry(TQString("won%1").tqarg(id),0);
+ Won->setText(Won->text().tqarg(w));
if (t)
- WonPerc->setText(WonPerc->text().arg(w*100/t));
+ WonPerc->setText(WonPerc->text().tqarg(w*100/t));
else
- WonPerc->setText(WonPerc->text().arg(0));
+ WonPerc->setText(WonPerc->text().tqarg(0));
WinStreak->setText(
- WinStreak->text().arg(config->readUnsignedNumEntry(TQString("maxwinstreak%1").arg(id),0)));
+ WinStreak->text().tqarg(config->readUnsignedNumEntry(TQString("maxwinstreak%1").tqarg(id),0)));
LooseStreak->setText(
- LooseStreak->text().arg(config->readUnsignedNumEntry(TQString("maxloosestreak%1").arg(id),0)));
+ LooseStreak->text().tqarg(config->readUnsignedNumEntry(TQString("maxloosestreak%1").tqarg(id),0)));
}
diff --git a/kpat/pile.cpp b/kpat/pile.cpp
index 8e6ce1db..fab94efa 100644
--- a/kpat/pile.cpp
+++ b/kpat/pile.cpp
@@ -32,7 +32,7 @@ Pile::Pile( int _index, Dealer* _dealer)
// Make the patience aware of this pile.
dealer()->addPile(this);
- TQCanvasRectangle::setVisible(true); // default
+ TQCanvasRectangle::tqsetVisible(true); // default
_checkIndex = -1;
m_addFlags = 0;
m_removeFlags = 0;
@@ -193,12 +193,12 @@ bool Pile::legalRemove(const Card *c) const
void Pile::setVisible(bool vis)
{
- TQCanvasRectangle::setVisible(vis);
+ TQCanvasRectangle::tqsetVisible(vis);
dealer()->enlargeCanvas(this);
for (CardList::Iterator it = m_cards.begin(); it != m_cards.end(); ++it)
{
- (*it)->setVisible(vis);
+ (*it)->tqsetVisible(vis);
dealer()->enlargeCanvas(*it);
}
}
diff --git a/kpat/pwidget.cpp b/kpat/pwidget.cpp
index 4901d75f..428981bf 100644
--- a/kpat/pwidget.cpp
+++ b/kpat/pwidget.cpp
@@ -75,7 +75,7 @@ pWidget::pWidget()
actionCollection(), "save");
(void)new KAction(i18n("&Choose Game..."), 0, TQT_TQOBJECT(this), TQT_SLOT(chooseGame()),
actionCollection(), "choose_game");
- (void)new KAction(i18n("Restart &Game"), TQString::fromLatin1("reload"), 0,
+ (void)new KAction(i18n("Restart &Game"), TQString::tqfromLatin1("reload"), 0,
TQT_TQOBJECT(this), TQT_SLOT(restart()),
actionCollection(), "restart_game");
(void)KStdAction::help(TQT_TQOBJECT(this), TQT_SLOT(helpGame()), actionCollection(), "help_game");
@@ -239,7 +239,7 @@ void pWidget::changeWallpaper()
return;
background = TQPixmap(bgpath);
if (background.isNull()) {
- KMessageBox::sorry(this, i18n("<qt>Couldn't load wallpaper<br/>%1</qt>").arg(bgpath));
+ KMessageBox::sorry(this, i18n("<qt>Couldn't load wallpaper<br/>%1</qt>").tqarg(bgpath));
return;
}
@@ -468,11 +468,11 @@ void pWidget::gameLost()
// The following code is taken out of kmessagebox.cpp in tdeui.
// Is there a better way?
KConfig *config = 0;
- TQString grpNotifMsgs = TQString::fromLatin1("Notification Messages");
+ TQString grpNotifMsgs = TQString::tqfromLatin1("Notification Messages");
config = KGlobal::config();
KConfigGroupSaver saver(config,
- TQString::fromLatin1("Notification Messages"));
+ TQString::tqfromLatin1("Notification Messages"));
TQString dontAsk = config->readEntry(dontAskAgainName).lower();
// If we are ordered never to ask again and to continue the game,