Commit 04e498f6 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - Open Dialog: Make Slave text open only when needed. Fix a bit the subtitles size when shown.

parent 9f9dda51
...@@ -66,6 +66,10 @@ OpenDialog::OpenDialog( QWidget *parent, intf_thread_t *_p_intf, bool modal, ...@@ -66,6 +66,10 @@ OpenDialog::OpenDialog( QWidget *parent, intf_thread_t *_p_intf, bool modal,
ui.advancedFrame->hide(); ui.advancedFrame->hide();
} }
ui.slaveLabel->hide();
ui.slaveText->hide();
ui.slaveBrowseButton->hide();
/* Buttons Creation */ /* Buttons Creation */
QSizePolicy buttonSizePolicy( static_cast<QSizePolicy::Policy>(7), QSizePolicy buttonSizePolicy( static_cast<QSizePolicy::Policy>(7),
static_cast<QSizePolicy::Policy>(1) ); static_cast<QSizePolicy::Policy>(1) );
......
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>448</width> <width>450</width>
<height>300</height> <height>350</height>
</rect> </rect>
</property> </property>
<property name="windowTitle" > <property name="windowTitle" >
...@@ -25,6 +25,14 @@ ...@@ -25,6 +25,14 @@
</property> </property>
<item> <item>
<widget class="QTabWidget" name="Tab" > <widget class="QTabWidget" name="Tab" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>1</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="currentIndex" > <property name="currentIndex" >
<number>-1</number> <number>-1</number>
</property> </property>
...@@ -60,14 +68,14 @@ ...@@ -60,14 +68,14 @@
<property name="spacing" > <property name="spacing" >
<number>6</number> <number>6</number>
</property> </property>
<item row="0" column="4" > <item row="0" column="2" >
<widget class="QLabel" name="label_3" > <widget class="QLabel" name="label_3" >
<property name="text" > <property name="text" >
<string>Start Time</string> <string>Start Time</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="5" colspan="2" > <item row="0" column="3" colspan="2" >
<widget class="QSpinBox" name="startTimeSpinBox" > <widget class="QSpinBox" name="startTimeSpinBox" >
<property name="sizePolicy" > <property name="sizePolicy" >
<sizepolicy> <sizepolicy>
...@@ -103,17 +111,17 @@ ...@@ -103,17 +111,17 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="1" colspan="7" > <item row="5" column="1" colspan="4" >
<widget class="QLineEdit" name="advancedLineInput" /> <widget class="QLineEdit" name="advancedLineInput" />
</item> </item>
<item row="2" column="0" colspan="8" > <item row="2" column="0" colspan="5" >
<widget class="QCheckBox" name="slaveCheckbox" > <widget class="QCheckBox" name="slaveCheckbox" >
<property name="text" > <property name="text" >
<string>Play another media synchronously (extra audio file, ...)</string> <string>Play another media synchronously (extra audio file, ...)</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="1" colspan="5" > <item row="4" column="1" colspan="4" >
<widget class="Line" name="line" > <widget class="Line" name="line" >
<property name="orientation" > <property name="orientation" >
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
...@@ -128,33 +136,23 @@ ...@@ -128,33 +136,23 @@
</widget> </widget>
</item> </item>
<item row="3" column="0" > <item row="3" column="0" >
<widget class="QLabel" name="label_2" > <widget class="QLabel" name="slaveLabel" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" > <property name="text" >
<string>Extra media</string> <string>Extra media</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="1" colspan="5" > <item row="3" column="1" colspan="3" >
<widget class="QLineEdit" name="slaveText" > <widget class="QLineEdit" name="slaveText" />
<property name="enabled" >
<bool>false</bool>
</property>
</widget>
</item> </item>
<item row="3" column="6" colspan="2" > <item row="3" column="4" >
<widget class="QToolButton" name="slaveBrowseButton" > <widget class="QToolButton" name="slaveBrowseButton" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" > <property name="text" >
<string>Browse...</string> <string>Browse...</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="1" colspan="5" > <item row="1" column="1" colspan="4" >
<widget class="Line" name="line" > <widget class="Line" name="line" >
<property name="orientation" > <property name="orientation" >
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
...@@ -185,6 +183,19 @@ ...@@ -185,6 +183,19 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>1</height>
</size>
</property>
</spacer>
</item>
<item> <item>
<layout class="QHBoxLayout" > <layout class="QHBoxLayout" >
<property name="margin" > <property name="margin" >
...@@ -239,8 +250,8 @@ ...@@ -239,8 +250,8 @@
<connection> <connection>
<sender>slaveCheckbox</sender> <sender>slaveCheckbox</sender>
<signal>clicked(bool)</signal> <signal>clicked(bool)</signal>
<receiver>label_2</receiver> <receiver>slaveLabel</receiver>
<slot>setEnabled(bool)</slot> <slot>setVisible(bool)</slot>
<hints> <hints>
<hint type="sourcelabel" > <hint type="sourcelabel" >
<x>54</x> <x>54</x>
...@@ -256,7 +267,7 @@ ...@@ -256,7 +267,7 @@
<sender>slaveCheckbox</sender> <sender>slaveCheckbox</sender>
<signal>clicked(bool)</signal> <signal>clicked(bool)</signal>
<receiver>slaveText</receiver> <receiver>slaveText</receiver>
<slot>setEnabled(bool)</slot> <slot>setVisible(bool)</slot>
<hints> <hints>
<hint type="sourcelabel" > <hint type="sourcelabel" >
<x>127</x> <x>127</x>
...@@ -272,7 +283,7 @@ ...@@ -272,7 +283,7 @@
<sender>slaveCheckbox</sender> <sender>slaveCheckbox</sender>
<signal>clicked(bool)</signal> <signal>clicked(bool)</signal>
<receiver>slaveBrowseButton</receiver> <receiver>slaveBrowseButton</receiver>
<slot>setEnabled(bool)</slot> <slot>setVisible(bool)</slot>
<hints> <hints>
<hint type="sourcelabel" > <hint type="sourcelabel" >
<x>219</x> <x>219</x>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment