mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
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
This commit is contained in:
parent
945b4f7626
commit
9601e8ad34
@ -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()));
|
||||
|
@ -30,13 +30,6 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Search: </string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="FocusSelectLineEdit" name="lineEdit">
|
||||
<property name="minimumSize">
|
||||
@ -47,43 +40,52 @@
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<width>16777215</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="placeholderText">
|
||||
<string>Search...</string>
|
||||
<string>Find...</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="MacToolButton" name="previous">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="autoRaise">
|
||||
<property name="clearButtonEnabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="MacToolButton" name="next">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
<widget class="QToolButton" name="next">
|
||||
<property name="toolTip">
|
||||
<string>Find the next match for the current search phrase</string>
|
||||
</property>
|
||||
<property name="autoRaise">
|
||||
<bool>true</bool>
|
||||
<property name="text">
|
||||
<string>&Next</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset theme="go-down-search"/>
|
||||
</property>
|
||||
<property name="toolButtonStyle">
|
||||
<enum>Qt::ToolButtonTextBesideIcon</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="MacToolButton" name="caseSensitive">
|
||||
<widget class="QToolButton" name="previous">
|
||||
<property name="toolTip">
|
||||
<string>Find the previous match for the current search phrase</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Previous</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset theme="go-up-search"/>
|
||||
</property>
|
||||
<property name="toolButtonStyle">
|
||||
<enum>Qt::ToolButtonTextBesideIcon</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="caseSensitive">
|
||||
<property name="text">
|
||||
<string>&Match Case</string>
|
||||
</property>
|
||||
@ -99,19 +101,6 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>5</width>
|
||||
<height>1</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
|
Loading…
Reference in New Issue
Block a user