summaryrefslogtreecommitdiffstats
path: root/kviewshell/zoom.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
commite69e8b1d09fb579316595b4e6a850e717358a8b1 (patch)
treea24fc20865f65772f530d16177520190594ffdd2 /kviewshell/zoom.cpp
parenteecec9afb81fdebb0f22e9da22635874c403f854 (diff)
downloadtdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz
tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip
TQt4 port kdegraphics
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kviewshell/zoom.cpp')
-rw-r--r--kviewshell/zoom.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kviewshell/zoom.cpp b/kviewshell/zoom.cpp
index 1c3ee6f6..595f4982 100644
--- a/kviewshell/zoom.cpp
+++ b/kviewshell/zoom.cpp
@@ -28,7 +28,7 @@ Zoom::Zoom()
_zoomValue = 1.0;
valNo = 6; // 1.0 is 6rd entry in the list
for(int i=0; zoomVals[i] != 0; i++)
- valueNames << TQString("%1%").arg(zoomVals[i]);
+ valueNames << TQString("%1%").tqarg(zoomVals[i]);
}
@@ -49,7 +49,7 @@ void Zoom::setZoomValue(const TQString &cval)
else {
emit(zoomNamesChanged(valueNames));
emit(valNoChanged(valNo));
- emit(zoomNameChanged(TQString("%1%").arg((int)(_zoomValue*100.0+0.5))));
+ emit(zoomNameChanged(TQString("%1%").tqarg((int)(_zoomValue*100.0+0.5))));
}
}
@@ -64,7 +64,7 @@ void Zoom::setZoomFitWidth(float zoom)
valNo = 0;
emit(valNoChanged(valNo));
- emit(zoomNameChanged(TQString("%1%").arg((int)(_zoomValue*100.0+0.5))));
+ emit(zoomNameChanged(TQString("%1%").tqarg((int)(_zoomValue*100.0+0.5))));
}
void Zoom::setZoomFitHeight(float zoom)
@@ -78,7 +78,7 @@ void Zoom::setZoomFitHeight(float zoom)
valNo = 1;
emit(valNoChanged(valNo));
- emit(zoomNameChanged(TQString("%1%").arg((int)(_zoomValue*100.0+0.5))));
+ emit(zoomNameChanged(TQString("%1%").tqarg((int)(_zoomValue*100.0+0.5))));
}
void Zoom::setZoomFitPage(float zoom)
@@ -92,7 +92,7 @@ void Zoom::setZoomFitPage(float zoom)
valNo = 2;
emit(valNoChanged(valNo));
- emit(zoomNameChanged(TQString("%1%").arg((int)(_zoomValue*100.0+0.5))));
+ emit(zoomNameChanged(TQString("%1%").tqarg((int)(_zoomValue*100.0+0.5))));
}
void Zoom::setZoomValue(float f)
@@ -117,19 +117,19 @@ void Zoom::setZoomValue(float f)
flag = true;
valNo = i + 3;
if (fabs(_zoomValue-zoomVals[i]) > 0.01)
- valueNames << TQString("%1%").arg((int)(_zoomValue*100.0+0.5));
+ valueNames << TQString("%1%").tqarg((int)(_zoomValue*100.0+0.5));
}
- valueNames << TQString("%1%").arg((int)(zoomVals[i]*100.0+0.5));
+ valueNames << TQString("%1%").tqarg((int)(zoomVals[i]*100.0+0.5));
}
if (flag == false) {
valNo = valueNames.size();
- valueNames << TQString("%1%").arg((int)(_zoomValue*100.0+0.5));
+ valueNames << TQString("%1%").tqarg((int)(_zoomValue*100.0+0.5));
}
emit(zoomNamesChanged(valueNames));
emit(valNoChanged(valNo));
- emit(zoomNameChanged(TQString("%1%").arg((int)(_zoomValue*100.0+0.5))));
+ emit(zoomNameChanged(TQString("%1%").tqarg((int)(_zoomValue*100.0+0.5))));
}
float Zoom::zoomIn()