diff options
author | hjk <[email protected]> | 2014-02-13 13:54:39 +0100 |
---|---|---|
committer | hjk <[email protected]> | 2014-02-14 16:58:43 +0100 |
commit | a74de6af81b659ef0dcbbbe25f94d9b527c2be98 (patch) | |
tree | 79c7d50c5afb664ec392a016b1abee178d528d2d /src/shared/help/indexwindow.cpp | |
parent | 5fd7c0bceceae795125ae32429365b021cd05e4b (diff) |
Utils: Merge FilterLineEdit into FancyLineEdit
Change-Id: Ic53836dade3985c36b0f6767e43b5af0ddb80d72
Reviewed-by: Eike Ziller <[email protected]>
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/shared/help/indexwindow.cpp')
-rw-r--r-- | src/shared/help/indexwindow.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/shared/help/indexwindow.cpp b/src/shared/help/indexwindow.cpp index 39ead89708c..529bfb2e836 100644 --- a/src/shared/help/indexwindow.cpp +++ b/src/shared/help/indexwindow.cpp @@ -36,7 +36,7 @@ #include <localhelpmanager.h> #include <openpagesmanager.h> -#include <utils/filterlineedit.h> +#include <utils/fancylineedit.h> #include <utils/hostosinfo.h> #include <utils/styledbar.h> @@ -59,8 +59,9 @@ IndexWindow::IndexWindow() { QVBoxLayout *layout = new QVBoxLayout(this); - m_searchLineEdit = new Utils::FilterLineEdit(); + m_searchLineEdit = new Utils::FancyLineEdit(); m_searchLineEdit->setPlaceholderText(QString()); + m_searchLineEdit->setFiltering(true); setFocusProxy(m_searchLineEdit); connect(m_searchLineEdit, SIGNAL(textChanged(QString)), this, SLOT(filterIndices(QString))); @@ -191,6 +192,11 @@ void IndexWindow::setSearchLineEditText(const QString &text) m_searchLineEdit->setText(text); } +QString IndexWindow::searchLineEditText() const +{ + return m_searchLineEdit->text(); +} + void IndexWindow::open(QHelpIndexWidget* indexWidget, const QModelIndex &index) { QHelpIndexModel *model = qobject_cast<QHelpIndexModel*>(indexWidget->model()); |