| 102 | auto roller = d->_rollerPickerContainer->_rollerList[index]; |
| 103 | roller->setFixedWidth(width); |
| 104 | setFixedWidth(d->_getRollerTotalWidth()); |
| 105 | } |
| 106 | |
| 107 | void 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 | } |