MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / findString

Function findString

3rdparty/unioncode-GitQlient/src/diff/DiffHelper.h:194–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194inline void findString(const QString &s, QPlainTextEdit *textEdit, QWidget *managerWidget)
195{
196 if (!s.isEmpty())
197 {
198 QTextCursor cursor = textEdit->textCursor();
199 QTextCursor cursorSaved = cursor;
200
201 if (!textEdit->find(s))
202 {
203 cursor.movePosition(QTextCursor::Start);
204 textEdit->setTextCursor(cursor);
205
206 if (!textEdit->find(s))
207 {
208 textEdit->setTextCursor(cursorSaved);
209
210 QMessageBox::information(managerWidget, QObject::tr("Text not found"), QObject::tr("Text not found."));
211 }
212 }
213 }
214}
215
216}

Callers 3

storeFileMethod · 0.85
FileDiffWidgetMethod · 0.85
FullDiffWidgetMethod · 0.85

Calls 5

informationFunction · 0.85
textCursorMethod · 0.80
setTextCursorMethod · 0.80
isEmptyMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected