summaryrefslogtreecommitdiffstats
path: root/ksokoban/PlayField.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksokoban/PlayField.cpp')
-rw-r--r--ksokoban/PlayField.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/ksokoban/PlayField.cpp b/ksokoban/PlayField.cpp
index 1483aa44..94ed3e8a 100644
--- a/ksokoban/PlayField.cpp
+++ b/ksokoban/PlayField.cpp
@@ -54,14 +54,14 @@ PlayField::PlayField(TQWidget *parent, const char *name, WFlags f)
pushesText_(i18n("Pushes:")),
statusFont_(TDEGlobalSettings::generalFont().family(), 18, TQFont::Bold), statusMetrics_(statusFont_) {
- setFocusPolicy(TQ_StrongFocus);
+ setFocusPolicy(TQWidget::StrongFocus);
setFocus();
setBackgroundMode(TQt::NoBackground);
setMouseTracking(true);
highlightX_ = highlightY_ = 0;
- TDEConfig *cfg = (TDEApplication::kApplication())->config();
+ TDEConfig *cfg = tdeApp->config();
cfg->setGroup("settings");
imageData_ = new StaticImage;
@@ -82,7 +82,7 @@ PlayField::PlayField(TQWidget *parent, const char *name, WFlags f)
}
PlayField::~PlayField() {
- TDEConfig *cfg = (TDEApplication::kApplication())->config();
+ TDEConfig *cfg = tdeApp->config();
cfg->setGroup("settings");
cfg->writeEntry("animDelay", animDelay_, true, false, false);
@@ -421,7 +421,7 @@ PlayField::highlight() {
void
PlayField::stopMoving() {
- TQT_TQOBJECT(this)->killTimers();
+ this->killTimers();
delete moveSequence_;
moveSequence_ = 0;
moveInProgress_ = false;
@@ -456,7 +456,7 @@ void
PlayField::timerEvent(TQTimerEvent *) {
assert(moveInProgress_);
if (moveSequence_ == 0) {
- TQT_TQOBJECT(this)->killTimers();
+ this->killTimers();
moveInProgress_ = false;
return;
}
@@ -586,7 +586,7 @@ PlayField::keyPressEvent(TQKeyEvent * e) {
break;
case Key_Q:
- TDEApplication::kApplication()->closeAllWindows();
+ tdeApp->closeAllWindows();
break;
case Key_Backspace:
@@ -700,7 +700,7 @@ PlayField::mousePressEvent(TQMouseEvent *e) {
if (!canMoveNow()) return;
if (dragInProgress_) {
- if (e->button() == Qt::LeftButton) dragObject(e->x(), e->y());
+ if (e->button() == TQt::LeftButton) dragObject(e->x(), e->y());
else stopDrag();
return;
}
@@ -711,7 +711,7 @@ PlayField::mousePressEvent(TQMouseEvent *e) {
if (x < 0 || y < 0 || x >= levelMap_->width() || y >= levelMap_->height())
return;
- if (e->button() == Qt::LeftButton && pathFinder_.canDrag(x, y)) {
+ if (e->button() == TQt::LeftButton && pathFinder_.canDrag(x, y)) {
TQPainter paint(this);
changeCursor(&sizeAllCursor);
@@ -732,7 +732,7 @@ PlayField::mousePressEvent(TQMouseEvent *e) {
Move *m;
switch (e->button()) {
- case Qt::LeftButton:
+ case TQt::LeftButton:
m = pathFinder_.search(levelMap_, x, y);
if (m != 0) {
history_->add(m);
@@ -740,11 +740,11 @@ PlayField::mousePressEvent(TQMouseEvent *e) {
startMoving(m);
}
break;
- case Qt::MidButton:
+ case TQt::MidButton:
undo();
return;
break;
- case Qt::RightButton:
+ case TQt::RightButton:
push(x, y);
break;