MCPcopy Create free account
hub / github.com/Liniyous/ElaWidgetTools / getCurrentIndex

Method getCurrentIndex

ElaWidgetTools/ElaRollerPicker.cpp:173–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171 auto roller = d->_rollerPickerContainer->_rollerList[i];
172 roller->setCurrentIndex(indexList[i]);
173 }
174}
175
176int ElaRollerPicker::getCurrentIndex(int rollerIndex) const
177{
178 Q_D(const ElaRollerPicker);
179 if (rollerIndex >= d->_rollerPickerContainer->_rollerList.count())
180 {
181 return -1;
182 }
183 return d->_rollerPickerContainer->_rollerList[rollerIndex]->getCurrentIndex();
184}

Callers

nothing calls this directly

Calls 1

countMethod · 0.80

Tested by

no test coverage detected