Skip to content

Commit

Permalink
[pluginmanager] show search icon in filter line edit and removed sear…
Browse files Browse the repository at this point in the history
…ch label
  • Loading branch information
slarosa committed May 27, 2018
1 parent 4bb7f82 commit 0115d4e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 30 deletions.
2 changes: 2 additions & 0 deletions src/app/pluginmanager/qgspluginmanager.cpp
Expand Up @@ -112,6 +112,8 @@ QgsPluginManager::QgsPluginManager( QWidget *parent, bool pluginsAreEnabled, Qt:

// Preset widgets
leFilter->setFocus( Qt::MouseFocusReason );
leFilter->setShowSearchIcon( true );
leFilter->setPlaceholderText( tr( "Search" ) );
wvDetails->page()->setLinkDelegationPolicy( QWebPage::DelegateAllLinks );

// Connect other signals
Expand Down
40 changes: 10 additions & 30 deletions src/ui/qgspluginmanagerbase.ui
Expand Up @@ -268,34 +268,14 @@
<number>0</number>
</property>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QLabel" name="lblFilter">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Search</string>
</property>
<property name="buddy">
<cstring>leFilter</cstring>
</property>
</widget>
</item>
<item>
<widget class="QgsFilterLineEdit" name="leFilter">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
</layout>
<widget class="QgsFilterLineEdit" name="leFilter">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item>
<widget class="QSplitter" name="mPluginsDetailsSplitter">
Expand Down Expand Up @@ -803,8 +783,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>646</width>
<height>638</height>
<width>460</width>
<height>613</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_10">
Expand Down

0 comments on commit 0115d4e

Please sign in to comment.