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

Method setCurrentData

ElaWidgetTools/ElaRollerPicker.cpp:104–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102 auto roller = d->_rollerPickerContainer->_rollerList[index];
103 roller->setFixedWidth(width);
104 setFixedWidth(d->_getRollerTotalWidth());
105}
106
107void ElaRollerPicker::setCurrentData(int index, const QString& data)
108{
109 Q_D(ElaRollerPicker);
110 if (index >= d->_rollerPickerContainer->_rollerList.count())
111 {
112 return;
113 }
114 d->_rollerPickerContainer->_rollerList[index]->setCurrentData(data);
115}

Callers

nothing calls this directly

Calls 1

countMethod · 0.80

Tested by

no test coverage detected