diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 551fb6d0d8c5d2ed90363a1017816d252b03d9bd (patch) | |
tree | 80f1396a23fdc417726dcf1d8b4b3aba82588068 /src/valuemanager.cpp | |
parent | 1b7882c63e0e5e7926595444122726270617279b (diff) | |
download | abakus-551fb6d0d8c5d2ed90363a1017816d252b03d9bd.tar.gz abakus-551fb6d0d8c5d2ed90363a1017816d252b03d9bd.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/abakus@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/valuemanager.cpp')
-rw-r--r-- | src/valuemanager.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/valuemanager.cpp b/src/valuemanager.cpp index afb72dd..8dcae90 100644 --- a/src/valuemanager.cpp +++ b/src/valuemanager.cpp @@ -48,29 +48,29 @@ Abakus::number_t ValueManager::value(const TQString &name) const bool ValueManager::isValueSet(const TQString &name) const { - return m_values.tqcontains(name); + return m_values.contains(name); } bool ValueManager::isValueReadOnly(const TQString &name) const { TQRegExp readOnlyValues("^(ans|pi|e|stackCount)$"); - return name.tqfind(readOnlyValues) != -1; + return name.find(readOnlyValues) != -1; } void ValueManager::setValue(const TQString &name, const Abakus::number_t value) { - if(m_values.tqcontains(name) && this->value(name) != value) + if(m_values.contains(name) && this->value(name) != value) emit signalValueChanged(name, value); - else if(!m_values.tqcontains(name)) + else if(!m_values.contains(name)) emit signalValueAdded(name, value); - m_values.tqreplace(name, value); + m_values.replace(name, value); } void ValueManager::removeValue(const TQString &name) { - if(m_values.tqcontains(name)) + if(m_values.contains(name)) emit signalValueRemoved(name); m_values.remove(name); |