summaryrefslogtreecommitdiffstats
path: root/kodo/kodometer.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 21:31:21 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 21:31:21 +0000
commita1bd60b34891ccc77056c190d7871bc4b14fe654 (patch)
tree713f2f72c8f08a18df12f5bbeef7f9b61b19d4f1 /kodo/kodometer.cpp
parent8d92c3c2a4131996726cc7b625d3cd3caec296de (diff)
downloadtdetoys-a1bd60b34891ccc77056c190d7871bc4b14fe654.tar.gz
tdetoys-a1bd60b34891ccc77056c190d7871bc4b14fe654.zip
TQt4 port kdetoys
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdetoys@1238103 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kodo/kodometer.cpp')
-rw-r--r--kodo/kodometer.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kodo/kodometer.cpp b/kodo/kodometer.cpp
index e1c2f4d..22a946d 100644
--- a/kodo/kodometer.cpp
+++ b/kodo/kodometer.cpp
@@ -42,8 +42,8 @@ static struct conversionEntry ConversionTable[MAX_UNIT] = {
* Note that we use installEventFilter on the two KImageNumber's
* to make clicks on them bring up the context-menu.
*/
-Kodometer::Kodometer(TQWidget* parent, const char* name)
- : TQFrame(parent, name),
+Kodometer::Kodometer(TQWidget* tqparent, const char* name)
+ : TQFrame(tqparent, name),
dontRefresh(false),
speed(0.0),
lastDistance(0.0),
@@ -121,7 +121,7 @@ Kodometer::Kodometer(TQWidget* parent, const char* name)
}
/*
- * Now I'm not really sure what this does. I assume its here to find
+ * Now I'm not really sure what this does. I assume its here to tqfind
* all the displays on your system, and measure them. During the mouse
* tracking phase, we use the information stored here to determine how
* far the mouse moved on a given screen.
@@ -156,9 +156,9 @@ void Kodometer::FindAllScreens(void)
vPixelsPerMM = (double)Dh / (double)DhMM;
hPixelsPerMM = (double)Dw / (double)DwMM;
screenInfo[i].PixelsPerMM = (vPixelsPerMM + hPixelsPerMM) / 2.0;
-// kdDebug() << " Vertical pixels/mm are " << vPixelsPerMM <<
+// kdDebug() << " Qt::Vertical pixels/mm are " << vPixelsPerMM <<
// "mm" << endl;
-// kdDebug() << " Horizontal pixels/mm are " << hPixelsPerMM <<
+// kdDebug() << " Qt::Horizontal pixels/mm are " << hPixelsPerMM <<
// "mm" << endl;
// kdDebug() << " Average pixels/mm are " <<
// screenInfo[i].PixelsPerMM << "mm" << endl;
@@ -389,12 +389,12 @@ int Kodometer::CalcDistance(void)
case K_Left:
case K_Top:
finalScreen = 0;
- j = QMAX(pointerScreen,lastPointerScreen) - 1;
+ j = TQMAX(pointerScreen,lastPointerScreen) - 1;
increment = -1;
break;
case K_Right:
case K_Bottom:
- finalScreen = QMAX(pointerScreen,lastPointerScreen) - 1;
+ finalScreen = TQMAX(pointerScreen,lastPointerScreen) - 1;
j = 0;
increment = 1;
break;