Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lintest/fb2edit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKandrashin Denis <mail@lintest.ru>2012-09-18 10:39:55 +0400
committerKandrashin Denis <mail@lintest.ru>2012-09-18 10:39:55 +0400
commitb84717846943d3de38f1a7bf7bc4cd7567824cd6 (patch)
tree2de5b116ed1d3bbd5a0a0832f8716cb9f4c41083
parentc74aad6ef5d4878f7848b1aa1d788b9cd63fdc71 (diff)
Small changes in text find
-rw-r--r--fb2edit.pro3
-rw-r--r--source/fb2dlgs.cpp4
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);
}