void frmSearchReplace::on_searchStringEdited(const QString &/*text*/) { QSettings s; if (s.value("Search/SearchAsIType", true).toBool()) { if (ui->actionFind->isChecked()) { Editor *editor = currentEditor(); QList<Editor::Selection> selections = editor->selections(); if (selections.length() > 0) { editor->setCursorPosition( std::min(selections[0].from, selections[0].to)); } findFromUI(true); } } }
void frmSearchReplace::on_searchStringEdited(const QString &/*text*/) { NqqSettings& s = NqqSettings::getInstance(); if (s.Search.getSearchAsIType()) { if (ui->actionFind->isChecked()) { Editor *editor = currentEditor(); QList<Editor::Selection> selections = editor->selections(); if (selections.length() > 0) { editor->setCursorPosition( std::min(selections[0].from, selections[0].to)); } findFromUI(true); } } // Workaround. See comment in setSearchText(). ui->cmbSearch->setAutoCompletion(true); }
void frmSearchReplace::on_btnFindPrev_clicked() { findFromUI(false); addToSearchHistory(ui->cmbSearch->currentText()); }