Skip to content
Snippets Groups Projects
Commit 4a78aabc authored by Marina Bertolino's avatar Marina Bertolino
Browse files

BUG: mantis-1439 : Display the value of a ListView (GUI mode)

parent be5407da
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,7 @@ void QtWidgetListViewParameter::DoUpdateGUI()
{
for (unsigned int i = 0; i < m_ListViewParam->GetNbChoices(); ++i)
{
QString key = m_ListViewParam->GetChoiceKey(i).c_str();
QString key = m_ListViewParam->GetChoiceName(i).c_str();
if (key != m_ListView->item(i)->text() )
{
resetNeeded = true;
......@@ -73,7 +73,7 @@ void QtWidgetListViewParameter::DoUpdateGUI()
for (unsigned int i = 0; i < m_ListViewParam->GetNbChoices(); ++i)
{
// Add listBox items
QString key = m_ListViewParam->GetChoiceKey(i).c_str();
QString key = m_ListViewParam->GetChoiceName(i).c_str();
m_ListView->addItem( key);
}
}
......
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