summaryrefslogtreecommitdiffstats
path: root/kpat/dealer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpat/dealer.cpp')
-rw-r--r--kpat/dealer.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kpat/dealer.cpp b/kpat/dealer.cpp
index c1ae25e7..d3cdecad 100644
--- a/kpat/dealer.cpp
+++ b/kpat/dealer.cpp
@@ -116,7 +116,7 @@ void Dealer::setupActions() {
ahint = new KAction( i18n("&Hint"), TQString::tqfromLatin1("wizard"), Key_H, TQT_TQOBJECT(this),
TQT_SLOT(hint()),
- tqparent()->actionCollection(), "game_hint");
+ parent()->actionCollection(), "game_hint");
actionlist.append(ahint);
} else
ahint = 0;
@@ -124,7 +124,7 @@ void Dealer::setupActions() {
if (actions() & Dealer::Demo) {
ademo = new KToggleAction( i18n("&Demo"), TQString::tqfromLatin1("1rightarrow"), CTRL+Key_D, TQT_TQOBJECT(this),
TQT_SLOT(toggleDemo()),
- tqparent()->actionCollection(), "game_demo");
+ parent()->actionCollection(), "game_demo");
actionlist.append(ademo);
} else
ademo = 0;
@@ -132,12 +132,12 @@ void Dealer::setupActions() {
if (actions() & Dealer::Redeal) {
aredeal = new KAction (i18n("&Redeal"), TQString::tqfromLatin1("queue"), 0, TQT_TQOBJECT(this),
TQT_SLOT(redeal()),
- tqparent()->actionCollection(), "game_redeal");
+ parent()->actionCollection(), "game_redeal");
actionlist.append(aredeal);
} else
aredeal = 0;
- tqparent()->guiFactory()->plugActionList( tqparent(), TQString::tqfromLatin1("game_actions"), actionlist);
+ parent()->guiFactory()->plugActionList( parent(), TQString::tqfromLatin1("game_actions"), actionlist);
}
Dealer::~Dealer()
@@ -145,7 +145,7 @@ Dealer::~Dealer()
if (!_won)
countLoss();
clearHints();
- tqparent()->guiFactory()->unplugActionList( tqparent(), TQString::tqfromLatin1("game_actions"));
+ parent()->guiFactory()->unplugActionList( parent(), TQString::tqfromLatin1("game_actions"));
while (!piles.isEmpty())
delete piles.first(); // removes itself
@@ -154,9 +154,9 @@ Dealer::~Dealer()
s_instance = 0;
}
-KMainWindow *Dealer::tqparent() const
+KMainWindow *Dealer::parent() const
{
- return dynamic_cast<KMainWindow*>(TQCanvasView::tqparent());
+ return dynamic_cast<KMainWindow*>(TQCanvasView::parent());
}
@@ -735,7 +735,7 @@ State *Dealer::getState()
s.it = c;
s.source = c->source();
if (!s.source) {
- kdDebug(11111) << c->name() << " has no tqparent\n";
+ kdDebug(11111) << c->name() << " has no parent\n";
assert(false);
}
s.source_index = c->source()->indexOf(c);