diff options
author | kh1 <qt-info@nokia.com> | 2010-08-17 15:56:27 +0200 |
---|---|---|
committer | kh1 <qt-info@nokia.com> | 2010-08-17 15:57:27 +0200 |
commit | c5db5d3fe3e1aee2c03ad579dccd284b49782358 (patch) | |
tree | 1bc21da900b106220a515f30e497763b7cb3ec40 /src/plugins/help/searchwidget.cpp | |
parent | 01f54d9a18e2fa04f17a57fa4d009c253e9ed37f (diff) | |
download | qt-creator-c5db5d3fe3e1aee2c03ad579dccd284b49782358.tar.gz |
Make sure the query widget is shown using creator style.
Diffstat (limited to 'src/plugins/help/searchwidget.cpp')
-rw-r--r-- | src/plugins/help/searchwidget.cpp | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/src/plugins/help/searchwidget.cpp b/src/plugins/help/searchwidget.cpp index 5e564388a7..b24889248d 100644 --- a/src/plugins/help/searchwidget.cpp +++ b/src/plugins/help/searchwidget.cpp @@ -33,6 +33,7 @@ #include <coreplugin/icore.h> #include <coreplugin/progressmanager/progressmanager.h> +#include <utils/styledbar.h> #include <QtCore/QMap> #include <QtCore/QString> @@ -98,14 +99,30 @@ void SearchWidget::showEvent(QShowEvent *event) { if (!event->spontaneous() && !searchEngine) { QVBoxLayout *vLayout = new QVBoxLayout(this); - vLayout->setMargin(4); + vLayout->setMargin(0); + vLayout->setSpacing(0); searchEngine = (&LocalHelpManager::helpEngine())->searchEngine(); - resultWidget = searchEngine->resultWidget(); - QHelpSearchQueryWidget *queryWidget = searchEngine->queryWidget(); - vLayout->addWidget(queryWidget); - vLayout->addWidget(resultWidget); + Utils::StyledBar *toolbar = new Utils::StyledBar(this); + toolbar->setSingleRow(false); + QHelpSearchQueryWidget *queryWidget = searchEngine->queryWidget(); + QLayout *tbLayout = new QVBoxLayout(); + tbLayout->setSpacing(6); + tbLayout->setMargin(4); + tbLayout->addWidget(queryWidget); + toolbar->setLayout(tbLayout); + + Utils::StyledBar *toolbar2 = new Utils::StyledBar(this); + toolbar2->setSingleRow(false); + tbLayout = new QVBoxLayout(); + tbLayout->setSpacing(0); + tbLayout->setMargin(0); + tbLayout->addWidget(resultWidget = searchEngine->resultWidget()); + toolbar2->setLayout(tbLayout); + + vLayout->addWidget(toolbar); + vLayout->addWidget(toolbar2); setFocusProxy(queryWidget); |