From 551fb6d0d8c5d2ed90363a1017816d252b03d9bd Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: 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 --- src/valuemanager.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/valuemanager.cpp') 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); -- cgit v1.2.3