| 53 | |
| 54 | |
| 55 | int ComboBoxModel::findText( const QString& txt ) const |
| 56 | { |
| 57 | for( QVector<Item>::ConstIterator it = m_items.begin(); it != m_items.end(); ++it ) |
| 58 | { |
| 59 | if( ( *it ).first == txt ) |
| 60 | { |
| 61 | return it - m_items.begin(); |
| 62 | } |
| 63 | } |
| 64 | return -1; |
| 65 | } |
| 66 | |
| 67 | |
| 68 |
no test coverage detected