summaryrefslogtreecommitdiffstats
path: root/src/valuemanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/valuemanager.cpp')
-rw-r--r--src/valuemanager.cpp12
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);