Skip to content
Snippets Groups Projects
Commit 4e34fb6a authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

ComboProperty: rm unused fct setValues()

parent a034bbcb
No related branches found
No related tags found
1 merge request!2669ComboProperty: rm many unused member fcts and operators
...@@ -64,15 +64,6 @@ void ComboProperty::setCurrentValue(const QString& name) ...@@ -64,15 +64,6 @@ void ComboProperty::setCurrentValue(const QString& name)
ASSERT(m_values.contains(name)); ASSERT(m_values.contains(name));
setCurrentIndex(m_values.indexOf(name)); setCurrentIndex(m_values.indexOf(name));
} }
//! Sets new list of values. Current value will be preserved, if exists in a new list.
void ComboProperty::setValues(const QStringList& values)
{
ASSERT(!values.empty());
QString current = currentValue();
m_values = values;
setCurrentIndex(m_values.contains(current) ? m_values.indexOf(current) : 0);
}
void ComboProperty::setToolTips(const QStringList& tooltips) void ComboProperty::setToolTips(const QStringList& tooltips)
{ {
......
...@@ -35,7 +35,6 @@ public: ...@@ -35,7 +35,6 @@ public:
void setCurrentValue(const QString& name); void setCurrentValue(const QString& name);
QStringList values() const { return m_values; } QStringList values() const { return m_values; }
void setValues(const QStringList& values);
QStringList toolTips() const { return m_tooltips; } QStringList toolTips() const { return m_tooltips; }
void setToolTips(const QStringList& tooltips); void setToolTips(const QStringList& tooltips);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment