| 202 | |
| 203 | private: |
| 204 | void insertText() |
| 205 | { // Check if the text exists. If yes remove it and push it in as first element |
| 206 | QString current = currentText(); |
| 207 | m_list.removeAll(current); |
| 208 | m_list.push_front(current); |
| 209 | clear(); |
| 210 | if(m_list.size() > 10) |
| 211 | m_list.erase(m_list.begin() + 10, m_list.end()); |
| 212 | insertItems(0, m_list); |
| 213 | } |
| 214 | |
| 215 | Q_DISABLE_COPY(OptionLineEdit) |
| 216 | QStringList m_list; |
nothing calls this directly
no test coverage detected