HomePhabricator
Diffusion MITK 61caf41dc62c

Add Function for returning index by string

Description

Add Function for returning index by string

Details

Auditors
kalali
Provenance
j762eAuthored on Nov 4 2019, 3:58 PM
j762ePushed on Nov 5 2019, 1:56 PM
Parents
rMITK67b78fbafabe: Delete FillRandom-Functions
Branches
Unknown
Tags
Unknown

Event Timeline

kalali added a subscriber: kalali.
kalali added inline comments.
/Modules/Chart/src/QmitkChartWidget.cpp
762

This function is only used inside ChartExample::UpdateSelectedData. Here you use it to get from a string to and index that can be used to set the combo box index.
However, you can directly set the combo box item by giving the string, like: m_Controls.m_comboBoxColor->setCurrentText(color.toString());

This commit now has outstanding concerns.Nov 15 2019, 5:56 PM
All concerns with this commit have now been addressed.Jan 17 2020, 12:30 PM