Fixed to get again gui resize able , search not allowed more to set gui to a minimum size.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2457 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-02-28 01:03:37 +00:00
parent 8079a6d454
commit eee9ca1635
2 changed files with 222 additions and 168 deletions

View File

@ -176,6 +176,11 @@ SearchDialog::SearchDialog(QWidget *parent)
ui.resetButton->hide(); ui.resetButton->hide();
ui._ownFiles_CB->setMinimumWidth(20);
ui._friendListsearch_SB->setMinimumWidth(20);
ui._anonF2Fsearch_CB->setMinimumWidth(20);
ui.label->setMinimumWidth(20);
/* Hide platform specific features */ /* Hide platform specific features */
#ifdef Q_WS_WIN #ifdef Q_WS_WIN

View File

@ -6,7 +6,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>1064</width> <width>559</width>
<height>340</height> <height>340</height>
</rect> </rect>
</property> </property>
@ -502,8 +502,11 @@
<property name="styleSheet"> <property name="styleSheet">
<string notr="true"/> <string notr="true"/>
</property> </property>
<layout class="QGridLayout" name="gridLayout_2"> <layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="0"> <property name="verticalSpacing">
<number>0</number>
</property>
<item row="0" column="0" colspan="5">
<widget class="QFrame" name="frame"> <widget class="QFrame" name="frame">
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
@ -923,7 +926,7 @@ border-image: url(:/images/btn_26_pressed.png) 4;
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="1" column="0"> <item row="1" column="0" colspan="5">
<widget class="QSplitter" name="splitter"> <widget class="QSplitter" name="splitter">
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
@ -1034,75 +1037,32 @@ border-image: url(:/images/btn_26_pressed.png) 4;
</widget> </widget>
</widget> </widget>
</item> </item>
<item row="2" column="0"> <item row="2" column="0" colspan="5">
<layout class="QHBoxLayout" name="horizontalLayout_2"> <widget class="QFrame" name="frame_3">
<item> <property name="maximumSize">
<widget class="QPushButton" name="cloaseallsearchresultsButton"> <size>
<property name="toolTip"> <width>16777215</width>
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt; <height>48</height>
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt; </size>
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Arial'; font-size:8pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:9pt;&quot;&gt;Close all Search Resullts&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property> </property>
<property name="styleSheet"> <property name="styleSheet">
<string notr="true">QToolButton, QPushButton, QComboBox { <string notr="true">QFrame#frame_3{
border-image: url(:/images/btn_26.png) 4; background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
border-width: 4; stop:0 #FEFEFE, stop:1 #E8E8E8);
padding: 0px 6px;
font-size: 12px;
}
*{ border: 1px solid #CCCCCC;}</string>
color: black;
}
QComboBox QAbstractItemView {
background-color:white;
}
QComboBox::down-arrow {
image: url(:/images/combobox_arrow.png);
}
QComboBox:drop-down
{
subcontrol-origin: padding;
subcontrol-position: top right;
border-left-style: none;
border-top-right-radius: 1px;
border-bottom-right-radius: 1px;
}
QToolButton:hover, QPushButton:hover, QComboBox:hover {
border-image: url(:/images/btn_26_hover.png) 4;
}
QToolButton:disabled, QPushButton:disabled, QComboBox::disabled {
color:gray;
}
QToolButton:pressed, QPushButton:pressed{
border-image: url(:/images/btn_26_pressed.png) 4;
}
</string>
</property> </property>
<property name="text"> <layout class="QGridLayout" name="gridLayout_2">
<string>Clear All Search Results</string> <property name="horizontalSpacing">
<number>6</number>
</property> </property>
</widget> <property name="verticalSpacing">
</item> <number>1</number>
<item>
<widget class="QCheckBox" name="_ownFiles_CB">
<property name="toolTip">
<string>Include files from your own file list in the search result</string>
</property> </property>
<property name="text"> <property name="margin">
<string>Include own files</string> <number>2</number>
</property> </property>
</widget> <item row="0" column="0">
</item>
<item>
<widget class="QCheckBox" name="_friendListsearch_SB"> <widget class="QCheckBox" name="_friendListsearch_SB">
<property name="toolTip"> <property name="toolTip">
<string>Search inside &quot;browsable&quot; files of your friends</string> <string>Search inside &quot;browsable&quot; files of your friends</string>
@ -1115,7 +1075,7 @@ border-image: url(:/images/btn_26_pressed.png) 4;
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="0" column="1">
<widget class="QCheckBox" name="_anonF2Fsearch_CB"> <widget class="QCheckBox" name="_anonF2Fsearch_CB">
<property name="toolTip"> <property name="toolTip">
<string>Multi-hop search at distance 6 in the network <string>Multi-hop search at distance 6 in the network
@ -1129,15 +1089,34 @@ border-image: url(:/images/btn_26_pressed.png) 4;
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="2" column="0">
<widget class="QCheckBox" name="_ownFiles_CB">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>Include files from your own file list in the search result</string>
</property>
<property name="text">
<string>Include own files</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLabel" name="label"> <widget class="QLabel" name="label">
<property name="text"> <property name="text">
<string>Limit number of results to :</string> <string>Limit number of results to :</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="2" column="2">
<widget class="QSpinBox" name="_max_results_SB"> <widget class="QSpinBox" name="_max_results_SB">
<property name="suffix">
<string/>
</property>
<property name="minimum"> <property name="minimum">
<number>100</number> <number>100</number>
</property> </property>
@ -1152,20 +1131,33 @@ border-image: url(:/images/btn_26_pressed.png) 4;
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="0" column="2" colspan="4">
<spacer> <spacer name="horizontalSpacer">
<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>218</width> <width>40</width>
<height>21</height> <height>5</height>
</size> </size>
</property> </property>
</spacer> </spacer>
</item> </item>
<item> <item row="2" column="3">
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="5">
<widget class="QPushButton" name="pushButtonDownload"> <widget class="QPushButton" name="pushButtonDownload">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
@ -1237,7 +1229,64 @@ border-image: url(:/images/btn_26_pressed.png) 4;
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="4">
<widget class="QPushButton" name="cloaseallsearchresultsButton">
<property name="toolTip">
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Arial'; font-size:8pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:9pt;&quot;&gt;Close all Search Resullts&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="styleSheet">
<string notr="true">QToolButton, QPushButton, QComboBox {
border-image: url(:/images/btn_26.png) 4;
border-width: 4;
padding: 0px 6px;
font-size: 12px;
}
*{
color: black;
}
QComboBox QAbstractItemView {
background-color:white;
}
QComboBox::down-arrow {
image: url(:/images/combobox_arrow.png);
}
QComboBox:drop-down
{
subcontrol-origin: padding;
subcontrol-position: top right;
border-left-style: none;
border-top-right-radius: 1px;
border-bottom-right-radius: 1px;
}
QToolButton:hover, QPushButton:hover, QComboBox:hover {
border-image: url(:/images/btn_26_hover.png) 4;
}
QToolButton:disabled, QPushButton:disabled, QComboBox::disabled {
color:gray;
}
QToolButton:pressed, QPushButton:pressed{
border-image: url(:/images/btn_26_pressed.png) 4;
}
</string>
</property>
<property name="text">
<string>Clear</string>
</property>
</widget>
</item>
</layout> </layout>
</widget>
</item> </item>
</layout> </layout>
</widget> </widget>