From 9601e8ad3452fbd3eaaf735442355defd76364f4 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Fri, 8 Mar 2019 22:30:49 +0100 Subject: [PATCH] Use a searchbar similar to the one in okular Summary: {F6674717} Reviewers: #falkon, #vdg, drosca Reviewed By: #falkon, drosca Subscribers: drosca, loh.tar, SGOrava, falkon Tags: #falkon Differential Revision: https://phabricator.kde.org/D19625 --- src/lib/webtab/searchtoolbar.cpp | 2 - src/lib/webtab/searchtoolbar.ui | 73 ++++++++++++++------------------ 2 files changed, 31 insertions(+), 44 deletions(-) diff --git a/src/lib/webtab/searchtoolbar.cpp b/src/lib/webtab/searchtoolbar.cpp index fc27ac270..5041175ff 100644 --- a/src/lib/webtab/searchtoolbar.cpp +++ b/src/lib/webtab/searchtoolbar.cpp @@ -35,9 +35,7 @@ SearchToolBar::SearchToolBar(WebView* view, QWidget* parent) ui->setupUi(this); ui->closeButton->setIcon(IconProvider::instance()->standardIcon(QStyle::SP_DialogCloseButton)); - ui->next->setIcon(IconProvider::instance()->standardIcon(QStyle::SP_ArrowDown)); ui->next->setShortcut(QKeySequence("Ctrl+G")); - ui->previous->setIcon(IconProvider::instance()->standardIcon(QStyle::SP_ArrowUp)); ui->previous->setShortcut(QKeySequence("Ctrl+Shift+G")); connect(ui->closeButton, SIGNAL(clicked()), this, SLOT(close())); diff --git a/src/lib/webtab/searchtoolbar.ui b/src/lib/webtab/searchtoolbar.ui index 5408f8675..519cace0a 100644 --- a/src/lib/webtab/searchtoolbar.ui +++ b/src/lib/webtab/searchtoolbar.ui @@ -30,13 +30,6 @@ - - - - Search: - - - @@ -47,43 +40,52 @@ - 200 + 16777215 16777215 - Search... + Find... - - - - - - - 0 - 0 - - - + true - - - - 0 - 0 - + + + Find the next match for the current search phrase - - true + + &Next + + + + + + Qt::ToolButtonTextBesideIcon - + + + Find the previous match for the current search phrase + + + &Previous + + + + + + Qt::ToolButtonTextBesideIcon + + + + + &Match Case @@ -99,19 +101,6 @@ - - - - Qt::Horizontal - - - - 5 - 1 - - - -