diff options
author | Kandrashin Denis <mail@lintest.ru> | 2012-09-18 10:39:55 +0400 |
---|---|---|
committer | Kandrashin Denis <mail@lintest.ru> | 2012-09-18 10:39:55 +0400 |
commit | b84717846943d3de38f1a7bf7bc4cd7567824cd6 (patch) | |
tree | 2de5b116ed1d3bbd5a0a0832f8716cb9f4c41083 | |
parent | c74aad6ef5d4878f7848b1aa1d788b9cd63fdc71 (diff) |
Small changes in text find
-rw-r--r-- | fb2edit.pro | 3 | ||||
-rw-r--r-- | source/fb2dlgs.cpp | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/fb2edit.pro b/fb2edit.pro index e986d84..86b2fba 100644 --- a/fb2edit.pro +++ b/fb2edit.pro @@ -65,5 +65,4 @@ if (unix) { } FORMS += \ - source/fb2find.ui \ - ../untitled.ui + source/fb2find.ui diff --git a/source/fb2dlgs.cpp b/source/fb2dlgs.cpp index 9ff4f6e..4ca0ccb 100644 --- a/source/fb2dlgs.cpp +++ b/source/fb2dlgs.cpp @@ -53,6 +53,7 @@ FbTextFindDlg::FbTextFindDlg(FbTextEdit &edit) , m_edit(edit) { ui->setupUi(this); + ui->checkHigh->hide(); connect(ui->btnFind, SIGNAL(clicked()), this, SLOT(find())); } @@ -69,8 +70,9 @@ void FbTextFindDlg::find() QWebPage::FindFlags options = QWebPage::FindWrapsAroundDocument; if (ui->radioUp->isChecked()) options |= QWebPage::FindBackward; if (ui->checkCase->isChecked()) options |= QWebPage::FindCaseSensitively; - if (ui->checkHigh->isChecked()) options |= QWebPage::HighlightAllOccurrences; + m_edit.findText(text, options); + options |= QWebPage::HighlightAllOccurrences; m_edit.findText(text, options); } |