summaryrefslogtreecommitdiffstats
path: root/kghostview/displayoptions.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /kghostview/displayoptions.cpp
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz
tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kghostview/displayoptions.cpp')
-rw-r--r--kghostview/displayoptions.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kghostview/displayoptions.cpp b/kghostview/displayoptions.cpp
index 48d45e7e..ab33e384 100644
--- a/kghostview/displayoptions.cpp
+++ b/kghostview/displayoptions.cpp
@@ -17,7 +17,7 @@
*/
#include "displayoptions.h"
#include <kdebug.h>
-#include <qregexp.h>
+#include <tqregexp.h>
#include <kcmdlineargs.h>
#include <kconfig.h>
@@ -65,18 +65,18 @@ namespace {
const char* const qformat = ".page: %1; .magnification: %2; .orientation = %3; .media = %4;";
}
-QString DisplayOptions::toString( const DisplayOptions& options )
+TQString DisplayOptions::toString( const DisplayOptions& options )
{
- return QString( qformat )
+ return TQString( qformat )
.arg( options.page() )
.arg( options.magnification() )
.arg( options.overrideOrientation() )
.arg( options.overridePageMedia().utf8() );
}
-bool DisplayOptions::fromString( DisplayOptions& out, const QString& in )
+bool DisplayOptions::fromString( DisplayOptions& out, const TQString& in )
{
- QRegExp regex( QString::fromLatin1( rformat ) );
+ TQRegExp regex( TQString::fromLatin1( rformat ) );
if ( regex.search( in ) < 0 ) return false;
out.reset();
@@ -138,8 +138,8 @@ unsigned DisplayOptions::closestIndex() const {
return res;
}
-QValueList<double> DisplayOptions::normalMagnificationValues() {
- QValueList<double> res;
+TQValueList<double> DisplayOptions::normalMagnificationValues() {
+ TQValueList<double> res;
for ( const double *first = allowedMagnifications, *last = allowedMagnifications + numberOfMagnifications;
first != last;
++first ) {