| 358 | qint32 m_defaultVal; |
| 359 | |
| 360 | void setText(const QString& s) |
| 361 | { |
| 362 | // Find the string in the combobox-list, don't change the value if nothing fits. |
| 363 | for(qint32 i = 0; i < count(); ++i) |
| 364 | { |
| 365 | if(itemText(i) == s) |
| 366 | { |
| 367 | if(m_pVarNum != nullptr) *m_pVarNum = i; |
| 368 | if(m_pVarStr != nullptr) *m_pVarStr = s; |
| 369 | setCurrentIndex(i); |
| 370 | return; |
| 371 | } |
| 372 | } |
| 373 | } |
| 374 | }; |
| 375 | |
| 376 | class OptionEncodingComboBox: public QComboBox, public OptionCodec |
no outgoing calls
no test coverage detected