diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:39:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:39:55 +0000 |
commit | 0a6e0958c03e41c87b15557b6f407874f20c2f8d (patch) | |
tree | 2cdd58c4013b1be09cfcbb4ddae2b05712b9aeee /kturtle/src/value.cpp | |
parent | 83f9dfafc157ff7823804b3ff457b43d021a5b4b (diff) | |
download | tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.tar.gz tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1157642 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kturtle/src/value.cpp')
-rw-r--r-- | kturtle/src/value.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kturtle/src/value.cpp b/kturtle/src/value.cpp index b529452d..be0e0531 100644 --- a/kturtle/src/value.cpp +++ b/kturtle/src/value.cpp @@ -104,7 +104,7 @@ void Value::setNumber(double d) m_string.setNum(d); } -bool Value::setNumber(const QString &s) +bool Value::setNumber(const TQString &s) { type = numberValue; bool ok = true; @@ -119,16 +119,16 @@ bool Value::setNumber(const QString &s) } -QString Value::String() const +TQString Value::String() const { if (type == boolValue) { - if (m_bool) return QString( i18n("true") ); - else return QString( i18n("false") ); + if (m_bool) return TQString( i18n("true") ); + else return TQString( i18n("false") ); } else if (type == numberValue) { - QString s; + TQString s; s.setNum(m_double); return s; } @@ -142,7 +142,7 @@ void Value::setString(double d) m_string.setNum(d); } -void Value::setString(const QString &s) +void Value::setString(const TQString &s) { type = stringValue; m_string = s; @@ -182,7 +182,7 @@ Value& Value::operator=(const Value& n) } -Value& Value::operator=(const QString& s) +Value& Value::operator=(const TQString& s) { setString(s); return *this; |