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 @@ @@ -16,7 +16,7 @@
<property name="windowTitle">
<string>Search plugins</string>
</property>
<layout class="QVBoxLayout">
<layout class="QVBoxLayout" name="pluginSelectLayout">
<item>
<widget class="QLabel" name="lbl_plugins">
<property name="font">
@ -82,16 +82,13 @@ @@ -82,16 +82,13 @@
<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>
</property>
<property name="textFormat">
<enum>Qt::AutoText</enum>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout">
<layout class="QHBoxLayout" name="layout1">
<item>
<widget class="QPushButton" name="installButton">
<property name="text">

27
src/gui/search/pluginsourcedlg.ui

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

1
src/gui/search/searchwidget.cpp

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

27
src/gui/search/searchwidget.ui

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

Loading…
Cancel
Save