Skip to content

Commit

Permalink
Add reset method
Browse files Browse the repository at this point in the history
  • Loading branch information
pbek committed Aug 2, 2019
1 parent 5cb3c04 commit 83532ba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions qplaintexteditsearchwidget.cpp
Expand Up @@ -279,3 +279,9 @@ void QPlainTextEditSearchWidget::activate(bool focus) {
ui->searchLineEdit->selectAll();
doSearchDown();
}

void QPlainTextEditSearchWidget::reset() {
ui->searchLineEdit->clear();
setSearchMode(SearchMode::PlainTextMode);
setReplaceMode(false);
}
1 change: 1 addition & 0 deletions qplaintexteditsearchwidget.h
Expand Up @@ -57,6 +57,7 @@ public slots:
void activateReplace();
bool doReplace(bool forAll = false);
void doReplaceAll();
void reset();

protected slots:
void searchLineEditTextChanged(const QString &arg1);
Expand Down

0 comments on commit 83532ba

Please sign in to comment.