summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/src/tools/tqstring.h
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-07-25 13:40:05 -0500
committerTimothy Pearson <[email protected]>2011-07-25 13:40:05 -0500
commitcc2ebb61376e4b405986dc778b426f6654a7ca78 (patch)
tree654dedde860cb403272929a3dd01a2fb45135164 /tqtinterface/qt4/src/tools/tqstring.h
parentbe74b66794d3148c926f079eb2595ae0d78b6522 (diff)
downloadexperimental-cc2ebb61376e4b405986dc778b426f6654a7ca78.tar.gz
experimental-cc2ebb61376e4b405986dc778b426f6654a7ca78.zip
Work around QString::toDouble() problem in Qt4.7 under gcc4.6 and i386
This manifests as an incorrect conversion of "3.3" to a double value greater than 3.3, as detected by the check for "too recent" version in ./tools/designer/uic/main.cpp Nokia really needs to get some quality control people checking their code!
Diffstat (limited to 'tqtinterface/qt4/src/tools/tqstring.h')
-rw-r--r--tqtinterface/qt4/src/tools/tqstring.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tqtinterface/qt4/src/tools/tqstring.h b/tqtinterface/qt4/src/tools/tqstring.h
index 71bc563..91ceb9d 100644
--- a/tqtinterface/qt4/src/tools/tqstring.h
+++ b/tqtinterface/qt4/src/tools/tqstring.h
@@ -305,6 +305,9 @@ public:
inline static TQString number( uint n, int base=10) { return TQString(QString::number(n, base)); }
inline static TQString number( double n, char f='g', int prec=6 ) { return TQString(QString::number(n, f, prec)); }
+ float toFloat( bool *ok=0 ) const;
+ double toDouble( bool *ok=0 ) const;
+
TQString &setAscii( const char*, int len=-1 );
TQString &setLatin1( const char *ch, int len=-1 );