diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-19 19:03:33 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-19 19:03:33 +0000 |
commit | e69e8b1d09fb579316595b4e6a850e717358a8b1 (patch) | |
tree | a24fc20865f65772f530d16177520190594ffdd2 /kviewshell/pageSize.cpp | |
parent | eecec9afb81fdebb0f22e9da22635874c403f854 (diff) | |
download | tdegraphics-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/pageSize.cpp')
-rw-r--r-- | kviewshell/pageSize.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kviewshell/pageSize.cpp b/kviewshell/pageSize.cpp index 43e21f74..a3e65459 100644 --- a/kviewshell/pageSize.cpp +++ b/kviewshell/pageSize.cpp @@ -77,10 +77,10 @@ bool pageSize::setPageSize(const TQString& name) } } - // Check if the string contains 'x'. If yes, we assume it is of type + // Check if the string tqcontains 'x'. If yes, we assume it is of type // "<number>x<number>". If yes, the first number is interpreted as // the width in mm, the second as the height in mm - if (name.find('x') >= 0) { + if (name.tqfind('x') >= 0) { bool wok, hok; float pageWidth_tmp = name.section('x',0,0).toFloat(&wok); float pageHeight_tmp = name.section('x',1,1).toFloat(&hok); @@ -95,10 +95,10 @@ bool pageSize::setPageSize(const TQString& name) } } - // Check if the string contains ','. If yes, we assume it is of type + // Check if the string tqcontains ','. If yes, we assume it is of type // "<number><unit>,<number><uni>". The first number is supposed to // be the width, the second the height. - if (name.find(',') >= 0) { + if (name.tqfind(',') >= 0) { bool wok, hok; float pageWidth_tmp = distance::convertToMM(name.section(',',0,0), &wok); float pageHeight_tmp = distance::convertToMM(name.section(',',1,1), &hok); @@ -263,7 +263,7 @@ TQString pageSize::formatName() const if (currentSize >= 0) return staticList[currentSize].name; else - return TQString::null; + return TQString(); } @@ -304,7 +304,7 @@ TQString pageSize::serialize() const if ((currentSize >= 0) && (fabs(staticList[currentSize].height-pageHeight.getLength_in_mm()) <= 0.5)) return staticList[currentSize].name; else - return TQString("%1x%2").arg(pageWidth.getLength_in_mm()).arg(pageHeight.getLength_in_mm()); + return TQString("%1x%2").tqarg(pageWidth.getLength_in_mm()).tqarg(pageHeight.getLength_in_mm()); } |