diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
commit | dc6b8e72fed2586239e3514819238c520636c9d9 (patch) | |
tree | 88b200df0a0b7fab9d6f147596173556f1ed9a13 /kommander/widget/parsenode.cpp | |
parent | 6927d4436e54551917f600b706a8d6109e49de1c (diff) | |
download | tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kommander/widget/parsenode.cpp')
-rw-r--r-- | kommander/widget/parsenode.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kommander/widget/parsenode.cpp b/kommander/widget/parsenode.cpp index d080e114..492c00fb 100644 --- a/kommander/widget/parsenode.cpp +++ b/kommander/widget/parsenode.cpp @@ -22,7 +22,7 @@ ParseNode::ParseNode() : m_type(ValueNone), m_context(-1) { } -ParseNode::ParseNode(const QString& s) : m_type(ValueString), m_string(s), m_context(-1) +ParseNode::ParseNode(const TQString& s) : m_type(ValueString), m_string(s), m_context(-1) { } @@ -38,16 +38,16 @@ ParseNode::ParseNode(double d) : m_type(ValueDouble), m_double(d), m_context(-1) { } -ParseNode::ParseNode(Keyword k) : m_type(ValueKeyword), m_keyword(k), m_string(QString::null), m_context(-1) +ParseNode::ParseNode(Keyword k) : m_type(ValueKeyword), m_keyword(k), m_string(TQString::null), m_context(-1) { } -ParseNode::ParseNode(Keyword k, const QString& name) : m_type(ValueKeyword), m_keyword(k), m_context(-1) +ParseNode::ParseNode(Keyword k, const TQString& name) : m_type(ValueKeyword), m_keyword(k), m_context(-1) { - m_string = (k == Variable) ? name : QString::null; + m_string = (k == Variable) ? name : TQString::null; } -ParseNode ParseNode::error(const QString& s) +ParseNode ParseNode::error(const TQString& s) { ParseNode p; p.m_string = s; @@ -65,13 +65,13 @@ Keyword ParseNode::keyword() const return isKeyword() ? m_keyword : Invalid; } -QString ParseNode::toString() const +TQString ParseNode::toString() const { switch(type()) { case ValueString: return m_string; - case ValueInt: return QString::number(m_int); - case ValueDouble: return QString::number(m_double); - default: return QString(); + case ValueInt: return TQString::number(m_int); + case ValueDouble: return TQString::number(m_double); + default: return TQString(); } } @@ -120,14 +120,14 @@ bool ParseNode::isVariable() const return type() == ValueKeyword && keyword() == Variable; } -QString ParseNode::variableName() const +TQString ParseNode::variableName() const { - return isVariable() ? m_string : QString(); + return isVariable() ? m_string : TQString(); } -QString ParseNode::errorMessage() const +TQString ParseNode::errorMessage() const { - return isValid() ? QString() : m_string; + return isValid() ? TQString() : m_string; } @@ -168,7 +168,7 @@ bool ParseNode::operator==(bool b) const return toBool() == b; } -bool ParseNode::operator==(const QString& s) const +bool ParseNode::operator==(const TQString& s) const { return toString() == s; } @@ -215,13 +215,13 @@ void ParseNode::setValue(double d) m_double = d; } -void ParseNode::setValue(const QString& s) +void ParseNode::setValue(const TQString& s) { m_type = ValueString; m_string = s; } -void ParseNode::setVariable(const QString& name) +void ParseNode::setVariable(const TQString& name) { m_type = ValueKeyword; m_keyword = Variable; |