summaryrefslogtreecommitdiffstats
path: root/ktuberling
diff options
context:
space:
mode:
Diffstat (limited to 'ktuberling')
-rw-r--r--ktuberling/playground.cpp8
-rw-r--r--ktuberling/toplevel.cpp8
2 files changed, 8 insertions, 8 deletions
diff --git a/ktuberling/playground.cpp b/ktuberling/playground.cpp
index c2da26bf..c84f9d38 100644
--- a/ktuberling/playground.cpp
+++ b/ktuberling/playground.cpp
@@ -293,7 +293,7 @@ void PlayGround::mouseReleaseEvent( TQMouseEvent *event )
setCursor(arrow);
// If we are not moving the object to the editable area
- if (!dirtyArea.tqcontains(event->pos()))
+ if (!dirtyArea.contains(event->pos()))
{
// ... then register its deletion (if coming from the editable area), and return
if (draggedZOrder == -1) return;
@@ -524,7 +524,7 @@ bool PlayGround::zone(TQPoint &position)
int draggedNumber;
for (draggedNumber = 0;
draggedNumber < decorations;
- draggedNumber++) if (objectsLayout[draggedNumber].tqcontains(position))
+ draggedNumber++) if (objectsLayout[draggedNumber].contains(position))
{
position.setX(position.x() - objectsLayout[draggedNumber].x());
position.setY(position.y() - objectsLayout[draggedNumber].y());
@@ -541,7 +541,7 @@ bool PlayGround::zone(TQPoint &position)
for (draggedZOrder = toDraw.count()-1; draggedZOrder >= 0; draggedZOrder--)
{
currentObject = toDraw.at(draggedZOrder);
- if (!currentObject->getPosition().tqcontains(position)) continue;
+ if (!currentObject->getPosition().contains(position)) continue;
TQRect toUpdate(currentObject->getPosition());
draggedObject = *currentObject;
@@ -563,7 +563,7 @@ bool PlayGround::zone(TQPoint &position)
}
// If we are on the gameboard itself, then play "tuberling" sound
- if (editableArea.tqcontains(position))
+ if (editableArea.contains(position))
topLevel->playSound(editableSound);
return false;
diff --git a/ktuberling/toplevel.cpp b/ktuberling/toplevel.cpp
index 0563d856..fc0939f0 100644
--- a/ktuberling/toplevel.cpp
+++ b/ktuberling/toplevel.cpp
@@ -219,7 +219,7 @@ void TopLevel::readOptions()
config->setGroup("General");
option = config->readEntry("Sound", "on");
- soundEnabled = option.tqfind("on") == 0;
+ soundEnabled = option.find("on") == 0;
option = config->readEntry("GameboardNumber", "0");
selectedGameboard = option.toInt();
@@ -290,7 +290,7 @@ void TopLevel::fileNew()
void TopLevel::fileOpen()
{
TQString dir = locate("data", "ktuberling/museum/miss.tuberling");
- dir.truncate(dir.tqfindRev('/') + 1);
+ dir.truncate(dir.findRev('/') + 1);
KURL url = KFileDialog::getOpenURL(dir, "*.tuberling");
@@ -340,7 +340,7 @@ void TopLevel::fileSave()
TQString name = url.path();
int suffix;
- suffix = name.tqfindRev('.');
+ suffix = name.findRev('.');
if (suffix == -1)
{
name += ".tuberling";
@@ -379,7 +379,7 @@ void TopLevel::filePicture()
int suffix;
TQString end;
- suffix = name.tqfindRev('.');
+ suffix = name.findRev('.');
if (suffix == -1)
{
name += ".xpm";