diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-07-25 13:40:05 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-07-25 13:40:05 -0500 |
commit | a7b8e6024196412a8849d00f68c01512dbf80e37 (patch) | |
tree | abf597014ec76cb66cb67a5d7e8ecd0ea707e1fd /experimental/tqtinterface/qt4/src/tools/tqstring.h | |
parent | 30af961d86f32ffd2c7c009119ba101c8c071594 (diff) | |
download | tde-a7b8e6024196412a8849d00f68c01512dbf80e37.tar.gz tde-a7b8e6024196412a8849d00f68c01512dbf80e37.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 'experimental/tqtinterface/qt4/src/tools/tqstring.h')
-rw-r--r-- | experimental/tqtinterface/qt4/src/tools/tqstring.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/experimental/tqtinterface/qt4/src/tools/tqstring.h b/experimental/tqtinterface/qt4/src/tools/tqstring.h index 71bc5636b..91ceb9d27 100644 --- a/experimental/tqtinterface/qt4/src/tools/tqstring.h +++ b/experimental/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 ); |