Browse Source

[Search] minor cleanups

adaptive-webui-19844
Chocobo1 9 years ago
parent
commit
2d6669b88d
  1. 7
      src/gui/search/pluginselectdlg.ui
  2. 27
      src/gui/search/pluginsourcedlg.ui
  3. 1
      src/gui/search/searchwidget.cpp
  4. 27
      src/gui/search/searchwidget.ui

7
src/gui/search/pluginselectdlg.ui

@ -16,7 +16,7 @@
<property name="windowTitle"> <property name="windowTitle">
<string>Search plugins</string> <string>Search plugins</string>
</property> </property>
<layout class="QVBoxLayout"> <layout class="QVBoxLayout" name="pluginSelectLayout">
<item> <item>
<widget class="QLabel" name="lbl_plugins"> <widget class="QLabel" name="lbl_plugins">
<property name="font"> <property name="font">
@ -82,16 +82,13 @@
<property name="text"> <property name="text">
<string>You can get new search engine plugins here: &lt;a href=&quot;http://plugins.qbittorrent.org&quot;&gt;http://plugins.qbittorrent.org&lt;/a&gt;</string> <string>You can get new search engine plugins here: &lt;a href=&quot;http://plugins.qbittorrent.org&quot;&gt;http://plugins.qbittorrent.org&lt;/a&gt;</string>
</property> </property>
<property name="textFormat">
<enum>Qt::AutoText</enum>
</property>
<property name="openExternalLinks"> <property name="openExternalLinks">
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<layout class="QHBoxLayout"> <layout class="QHBoxLayout" name="layout1">
<item> <item>
<widget class="QPushButton" name="installButton"> <widget class="QPushButton" name="installButton">
<property name="text"> <property name="text">

27
src/gui/search/pluginsourcedlg.ui

@ -1,7 +1,8 @@
<ui version="4.0" > <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>PluginSourceDlg</class> <class>PluginSourceDlg</class>
<widget class="QDialog" name="PluginSourceDlg" > <widget class="QDialog" name="PluginSourceDlg">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
@ -9,36 +10,36 @@
<height>76</height> <height>76</height>
</rect> </rect>
</property> </property>
<property name="windowTitle" > <property name="windowTitle">
<string>Plugin source</string> <string>Plugin source</string>
</property> </property>
<layout class="QVBoxLayout" > <layout class="QVBoxLayout" name="pluginSourceLayout">
<item> <item>
<widget class="QLabel" name="source_lbl" > <widget class="QLabel" name="source_lbl">
<property name="font" > <property name="font">
<font> <font>
<weight>75</weight> <weight>75</weight>
<bold>true</bold> <bold>true</bold>
<underline>true</underline> <underline>true</underline>
</font> </font>
</property> </property>
<property name="text" > <property name="text">
<string>Search plugin source:</string> <string>Search plugin source:</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<layout class="QHBoxLayout" > <layout class="QHBoxLayout" name="layout1">
<item> <item>
<widget class="QPushButton" name="localButton" > <widget class="QPushButton" name="localButton">
<property name="text" > <property name="text">
<string>Local file</string> <string>Local file</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="urlButton" > <widget class="QPushButton" name="urlButton">
<property name="text" > <property name="text">
<string>Web link</string> <string>Web link</string>
</property> </property>
</widget> </widget>

1
src/gui/search/searchwidget.cpp

@ -108,7 +108,6 @@ SearchWidget::SearchWidget(MainWindow *mainWindow)
goToDescBtn->setIcon(GuiIconProvider::instance()->getIcon("application-x-mswinurl")); goToDescBtn->setIcon(GuiIconProvider::instance()->getIcon("application-x-mswinurl"));
pluginsButton->setIcon(GuiIconProvider::instance()->getIcon("preferences-system-network")); pluginsButton->setIcon(GuiIconProvider::instance()->getIcon("preferences-system-network"));
copyURLBtn->setIcon(GuiIconProvider::instance()->getIcon("edit-copy")); copyURLBtn->setIcon(GuiIconProvider::instance()->getIcon("edit-copy"));
tabWidget->setTabsClosable(true);
connect(tabWidget, SIGNAL(tabCloseRequested(int)), this, SLOT(closeTab(int))); connect(tabWidget, SIGNAL(tabCloseRequested(int)), this, SLOT(closeTab(int)));
m_searchEngine = new SearchEngine; m_searchEngine = new SearchEngine;

27
src/gui/search/searchwidget.ui

@ -6,7 +6,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>1382</width> <width>843</width>
<height>669</height> <height>669</height>
</rect> </rect>
</property> </property>
@ -24,6 +24,12 @@
</item> </item>
<item> <item>
<widget class="QPushButton" name="searchButton"> <widget class="QPushButton" name="searchButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text"> <property name="text">
<string>Search</string> <string>Search</string>
</property> </property>
@ -33,18 +39,13 @@
</item> </item>
<item> <item>
<widget class="QTabWidget" name="tabWidget"> <widget class="QTabWidget" name="tabWidget">
<property name="sizePolicy"> <property name="tabsClosable">
<sizepolicy hsizetype="Expanding" vsizetype="MinimumExpanding"> <bool>true</bool>
<horstretch>0</horstretch>
<verstretch>1</verstretch>
</sizepolicy>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<layout class="QVBoxLayout"> <layout class="QHBoxLayout" name="layout2">
<item>
<layout class="QHBoxLayout">
<item> <item>
<widget class="QPushButton" name="downloadButton"> <widget class="QPushButton" name="downloadButton">
<property name="enabled"> <property name="enabled">
@ -76,14 +77,14 @@
</widget> </widget>
</item> </item>
<item> <item>
<spacer> <spacer name="spacer2">
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0">
<size> <size>
<width>601</width> <width>0</width>
<height>20</height> <height>0</height>
</size> </size>
</property> </property>
</spacer> </spacer>
@ -98,8 +99,6 @@
</layout> </layout>
</item> </item>
</layout> </layout>
</item>
</layout>
</widget> </widget>
<resources/> <resources/>
<connections/> <connections/>

Loading…
Cancel
Save