MCPcopy Create free account
hub / github.com/KDE/kdiff3 / insertText

Method insertText

src/optiondialog.cpp:204–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 3

push_frontMethod · 0.80
endMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected