Commit 90f42f4b authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - Open: - remove a few kludges, clean and do it a better way.

            - Use a QDirModel to provide completion, this is cool for geeks, but may increase the size of the object, since we didn't use that class before... Any thoughts on that? Remove it for Windows ?
            - Clean the layouts, and simplify and fix some signals.
            - layout fixes for capture.
parent 154a4a9f
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
#include <QStackedLayout> #include <QStackedLayout>
#include <QListView> #include <QListView>
#include <QCompleter> #include <QCompleter>
#include <QDirModel>
/************************************************************************** /**************************************************************************
* Open Files and subtitles * * Open Files and subtitles *
...@@ -48,6 +49,7 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) : ...@@ -48,6 +49,7 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
/* Classic UI Setup */ /* Classic UI Setup */
ui.setupUi( this ); ui.setupUi( this );
/** BEGIN QFileDialog tweaking **/
/* Use a QFileDialog and customize it because we don't want to /* Use a QFileDialog and customize it because we don't want to
rewrite it all. Be careful to your eyes cause there are a few hacks. rewrite it all. Be careful to your eyes cause there are a few hacks.
Be very careful and test correctly when you modify this. */ Be very careful and test correctly when you modify this. */
...@@ -61,60 +63,60 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) : ...@@ -61,60 +63,60 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
ADD_FILTER_ALL( fileTypes ); ADD_FILTER_ALL( fileTypes );
fileTypes.replace( QString(";*"), QString(" *")); fileTypes.replace( QString(";*"), QString(" *"));
/* retrieve last known path used in file browsing */
char *psz_filepath = config_GetPsz( p_intf, "qt-filedialog-path" );
if( EMPTY_STR( psz_filepath ) )
{
psz_filepath = p_intf->p_libvlc->psz_homedir;
}
// Make this QFileDialog a child of tempWidget from the ui. // Make this QFileDialog a child of tempWidget from the ui.
dialogBox = new FileOpenBox( ui.tempWidget, NULL, dialogBox = new FileOpenBox( ui.tempWidget, NULL,
qfu( p_intf->p_libvlc->psz_homedir ), fileTypes ); qfu( psz_filepath ), fileTypes );
delete psz_filepath;
dialogBox->setFileMode( QFileDialog::ExistingFiles ); dialogBox->setFileMode( QFileDialog::ExistingFiles );
dialogBox->setAcceptMode( QFileDialog::AcceptOpen ); dialogBox->setAcceptMode( QFileDialog::AcceptOpen );
/* retrieve last known path used in file browsing */
char *psz_filepath = config_GetPsz( p_intf, "qt-filedialog-path" );
if( psz_filepath )
{
dialogBox->setDirectory( qfu( psz_filepath ) );
delete psz_filepath;
}
/* We don't want to see a grip in the middle of the window, do we? */ /* We don't want to see a grip in the middle of the window, do we? */
dialogBox->setSizeGripEnabled( false ); dialogBox->setSizeGripEnabled( false );
/* Add a tooltip */ /* Add a tooltip */
dialogBox->setToolTip( qtr( "Select one or multiple files, or a folder" ) ); dialogBox->setToolTip( qtr( "Select one or multiple files, or a folder" ) );
// Add it to the layout
ui.gridLayout->addWidget( dialogBox, 0, 0, 1, 3 );
// But hide the two OK/Cancel buttons. Enable them for debug. // But hide the two OK/Cancel buttons. Enable them for debug.
QDialogButtonBox *fileDialogAcceptBox = QDialogButtonBox *fileDialogAcceptBox =
findChildren<QDialogButtonBox*>()[0]; dialogBox->findChildren<QDialogButtonBox*>()[0];
fileDialogAcceptBox->hide(); fileDialogAcceptBox->hide();
/* Ugly hacks to get the good Widget */ /* Ugly hacks to get the good Widget */
//This lineEdit is the normal line in the fileDialog. //This lineEdit is the normal line in the fileDialog.
#if HAS_QT43 #if HAS_QT43
lineFileEdit = findChildren<QLineEdit*>()[2]; lineFileEdit = dialogBox->findChildren<QLineEdit*>()[0];
#else #else
lineFileEdit = findChildren<QLineEdit*>()[3]; // FIXME
lineFileEdit = dialogBox->findChildren<QLineEdit*>()[1];
#endif #endif
QStringList fileCompleteList ;
QCompleter *fileCompleter = new QCompleter( fileCompleteList, this );
lineFileEdit->setCompleter( fileCompleter );
// lineFileEdit->hide();
/* Make a list of QLabel inside the QFileDialog to access the good ones */ /* Make a list of QLabel inside the QFileDialog to access the good ones */
QList<QLabel *> listLabel = findChildren<QLabel*>(); QList<QLabel *> listLabel = dialogBox->findChildren<QLabel*>();
/* Hide the FileNames one. Enable it for debug */ /* Hide the FileNames one. Enable it for debug */
listLabel[4]->hide(); listLabel[1]->setText( qtr( "File names:" ) );
/* Change the text that was uncool in the usual box */ /* Change the text that was uncool in the usual box */
listLabel[5]->setText( qtr( "Filter:" ) ); listLabel[2]->setText( qtr( "Filter:" ) );
dialogBox->layout()->setMargin( 0 );
dialogBox->layout()->setSizeConstraint( QLayout::SetMinimumSize );
QListView *fileListView = findChildren<QListView*>().first(); /** END of QFileDialog tweaking **/
// Add the DialogBox to the layout
ui.gridLayout->addWidget( dialogBox, 0, 0, 1, 3 );
//TODO later: fill the fileCompleteList with previous items played.
QCompleter *fileCompleter = new QCompleter( fileCompleteList, this );
fileCompleter->setModel( new QDirModel( fileCompleter ) );
lineFileEdit->setCompleter( fileCompleter );
// Hide the subtitles control by default. // Hide the subtitles control by default.
ui.subFrame->hide(); ui.subFrame->hide();
...@@ -130,18 +132,13 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) : ...@@ -130,18 +132,13 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
BUTTONACT( ui.subBrowseButton, browseFileSub() ); BUTTONACT( ui.subBrowseButton, browseFileSub() );
BUTTONACT( ui.subCheckBox, toggleSubtitleFrame()); BUTTONACT( ui.subCheckBox, toggleSubtitleFrame());
#if QT43 CONNECT( lineFileEdit, textChanged( QString ), this, updateMRL() );
CONNECT( fileListView, clicked( QModelIndex ), this, updateMRL() );
#else CONNECT( ui.subInput, textChanged( QString ), this, updateMRL() );
CONNECT( ui.fileInput, editTextChanged( QString ), this, updateMRL() );
#endif
CONNECT( ui.subInput, editTextChanged( QString ), this, updateMRL() );
CONNECT( ui.alignSubComboBox, currentIndexChanged( int ), this, CONNECT( ui.alignSubComboBox, currentIndexChanged( int ), this,
updateMRL() ); updateMRL() );
CONNECT( ui.sizeSubComboBox, currentIndexChanged( int ), this, CONNECT( ui.sizeSubComboBox, currentIndexChanged( int ), this,
updateMRL() ); updateMRL() );
CONNECT( lineFileEdit, textChanged( QString ), this, browseFile() );
} }
FileOpenPanel::~FileOpenPanel() FileOpenPanel::~FileOpenPanel()
...@@ -152,15 +149,6 @@ QStringList FileOpenPanel::browse( QString help ) ...@@ -152,15 +149,6 @@ QStringList FileOpenPanel::browse( QString help )
return THEDP->showSimpleOpen( help ); return THEDP->showSimpleOpen( help );
} }
void FileOpenPanel::browseFile()
{
QString fileString = "";
foreach( QString file, dialogBox->selectedFiles() ) {
fileString += "\"" + file + "\" ";
}
ui.fileInput->setEditText( fileString );
updateMRL();
}
void FileOpenPanel::browseFileSub() void FileOpenPanel::browseFileSub()
{ {
...@@ -169,17 +157,19 @@ void FileOpenPanel::browseFileSub() ...@@ -169,17 +157,19 @@ void FileOpenPanel::browseFileSub()
EXT_FILTER_SUBTITLE, EXT_FILTER_SUBTITLE,
dialogBox->directory().absolutePath() ); dialogBox->directory().absolutePath() );
if( files.isEmpty() ) return; if( files.isEmpty() ) return;
ui.subInput->setEditText( files.join(" ") ); ui.subInput->setText( files.join(" ") );
updateMRL(); updateMRL();
} }
void FileOpenPanel::updateMRL() void FileOpenPanel::updateMRL()
{ {
msg_Dbg( p_intf, "I was here" ); QString mrl = "";
QString mrl = ui.fileInput->currentText(); foreach( QString file, dialogBox->selectedFiles() ) {
mrl += "\"" + file + "\" ";
}
if( ui.subCheckBox->isChecked() ) { if( ui.subCheckBox->isChecked() ) {
mrl.append( " :sub-file=" + ui.subInput->currentText() ); mrl.append( " :sub-file=" + ui.subInput->text() );
int align = ui.alignSubComboBox->itemData( int align = ui.alignSubComboBox->itemData(
ui.alignSubComboBox->currentIndex() ).toInt(); ui.alignSubComboBox->currentIndex() ).toInt();
mrl.append( " :subsdec-align=" + QString().setNum( align ) ); mrl.append( " :subsdec-align=" + QString().setNum( align ) );
...@@ -206,8 +196,7 @@ void FileOpenPanel::updateMRL() ...@@ -206,8 +196,7 @@ void FileOpenPanel::updateMRL()
/* Function called by Open Dialog when clicke on Play/Enqueue */ /* Function called by Open Dialog when clicke on Play/Enqueue */
void FileOpenPanel::accept() void FileOpenPanel::accept()
{ {
ui.fileInput->addItem( ui.fileInput->currentText()); //FIXME set the completer
if ( ui.fileInput->count() > 8 ) ui.fileInput->removeItem( 0 );
} }
void FileOpenBox::accept() void FileOpenBox::accept()
...@@ -218,22 +207,13 @@ void FileOpenBox::accept() ...@@ -218,22 +207,13 @@ void FileOpenBox::accept()
/* Function called by Open Dialog when clicked on cancel */ /* Function called by Open Dialog when clicked on cancel */
void FileOpenPanel::clear() void FileOpenPanel::clear()
{ {
ui.fileInput->setEditText( "" ); lineFileEdit->clear();
ui.subInput->setEditText( "" ); ui.subInput->clear();
} }
void FileOpenPanel::toggleSubtitleFrame() void FileOpenPanel::toggleSubtitleFrame()
{ {
if ( ui.subFrame->isVisible() ) TOGGLEV( ui.subFrame );
{
ui.subFrame->hide();
updateGeometry();
/* FiXME Size */
}
else
{
ui.subFrame->show();
}
/* Update the MRL */ /* Update the MRL */
updateMRL(); updateMRL();
...@@ -536,6 +516,8 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) : ...@@ -536,6 +516,8 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
v4lFreq->setSuffix(" kHz"); v4lFreq->setSuffix(" kHz");
setSpinBoxFreq( v4lFreq ); setSpinBoxFreq( v4lFreq );
v4lPropLayout->addWidget( v4lFreq, 1 , 1 ); v4lPropLayout->addWidget( v4lFreq, 1 , 1 );
v4lPropLayout->addItem( new QSpacerItem( 20, 20, QSizePolicy::Expanding ),
2, 0, 2, 1 );
/* v4l CONNECTs */ /* v4l CONNECTs */
CuMRL( v4lVideoDevice, textChanged( QString ) ); CuMRL( v4lVideoDevice, textChanged( QString ) );
...@@ -568,6 +550,8 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) : ...@@ -568,6 +550,8 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
v4l2StdBox = new QComboBox; v4l2StdBox = new QComboBox;
setfillVLCConfigCombo( "v4l2-standard", p_intf, v4l2StdBox ); setfillVLCConfigCombo( "v4l2-standard", p_intf, v4l2StdBox );
v4l2PropLayout->addWidget( v4l2StdBox, 0 , 1 ); v4l2PropLayout->addWidget( v4l2StdBox, 0 , 1 );
v4l2PropLayout->addItem( new QSpacerItem( 20, 20, QSizePolicy::Expanding ),
1, 0, 3, 1 );
/* v4l2 CONNECTs */ /* v4l2 CONNECTs */
CuMRL( v4l2VideoDevice, textChanged( QString ) ); CuMRL( v4l2VideoDevice, textChanged( QString ) );
...@@ -669,6 +653,8 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) : ...@@ -669,6 +653,8 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
pvrBitr->setSuffix(" kHz"); pvrBitr->setSuffix(" kHz");
setSpinBoxFreq( pvrBitr ); setSpinBoxFreq( pvrBitr );
pvrPropLayout->addWidget( pvrBitr, 2, 1 ); pvrPropLayout->addWidget( pvrBitr, 2, 1 );
pvrPropLayout->addItem( new QSpacerItem( 20, 20, QSizePolicy::Expanding ),
3, 0, 1, 1 );
/* PVR CONNECTs */ /* PVR CONNECTs */
CuMRL( pvrDevice, textChanged( QString ) ); CuMRL( pvrDevice, textChanged( QString ) );
...@@ -716,6 +702,8 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) : ...@@ -716,6 +702,8 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
QLineEdit *dshowVSizeLine = new QLineEdit; QLineEdit *dshowVSizeLine = new QLineEdit;
dshowPropLayout->addWidget( dshowVSizeLine, 0, 1); dshowPropLayout->addWidget( dshowVSizeLine, 0, 1);
dshowPropLayout->addItem( new QSpacerItem( 20, 20, QSizePolicy::Expanding ),
1, 0, 3, 1 );
/* dshow CONNECTs */ /* dshow CONNECTs */
CuMRL( dshowVDevice, currentIndexChanged ( int ) ); CuMRL( dshowVDevice, currentIndexChanged ( int ) );
...@@ -770,6 +758,8 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) : ...@@ -770,6 +758,8 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
bdaBandLabel->hide(); bdaBandLabel->hide();
bdaBandBox->hide(); bdaBandBox->hide();
bdaPropLayout->addItem( new QSpacerItem( 20, 20, QSizePolicy::Expanding ),
2, 0, 2, 1 );
/* bda CONNECTs */ /* bda CONNECTs */
CuMRL( bdaFreq, valueChanged ( int ) ); CuMRL( bdaFreq, valueChanged ( int ) );
...@@ -827,6 +817,8 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) : ...@@ -827,6 +817,8 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
dvbSrate->setSuffix(" kHz"); dvbSrate->setSuffix(" kHz");
setSpinBoxFreq( dvbSrate ); setSpinBoxFreq( dvbSrate );
dvbPropLayout->addWidget( dvbSrate, 1, 1 ); dvbPropLayout->addWidget( dvbSrate, 1, 1 );
dvbPropLayout->addItem( new QSpacerItem( 20, 20, QSizePolicy::Expanding ),
2, 0, 2, 1 );
/* DVB CONNECTs */ /* DVB CONNECTs */
CuMRL( dvbCard, valueChanged ( int ) ); CuMRL( dvbCard, valueChanged ( int ) );
......
...@@ -103,10 +103,10 @@ private: ...@@ -103,10 +103,10 @@ private:
QStringList browse( QString ); QStringList browse( QString );
FileOpenBox *dialogBox; FileOpenBox *dialogBox;
QLineEdit *lineFileEdit; QLineEdit *lineFileEdit;
QStringList fileCompleteList ;
public slots: public slots:
virtual void updateMRL(); virtual void updateMRL();
private slots: private slots:
void browseFile();
void browseFileSub(); void browseFileSub();
void toggleSubtitleFrame(); void toggleSubtitleFrame();
}; };
......
...@@ -14,13 +14,25 @@ ...@@ -14,13 +14,25 @@
<string>Capture</string> <string>Capture</string>
</property> </property>
<layout class="QGridLayout" > <layout class="QGridLayout" >
<property name="margin" > <property name="leftMargin" >
<number>9</number> <number>9</number>
</property> </property>
<property name="spacing" > <property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number> <number>6</number>
</property> </property>
<item row="4" column="0" colspan="2" > <item row="5" column="0" colspan="2" >
<spacer> <spacer>
<property name="orientation" > <property name="orientation" >
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
...@@ -39,9 +51,7 @@ ...@@ -39,9 +51,7 @@
<item row="0" column="1" > <item row="0" column="1" >
<widget class="QComboBox" name="deviceCombo" > <widget class="QComboBox" name="deviceCombo" >
<property name="sizePolicy" > <property name="sizePolicy" >
<sizepolicy> <sizepolicy vsizetype="Fixed" hsizetype="Minimum" >
<hsizetype>1</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
...@@ -58,12 +68,10 @@ ...@@ -58,12 +68,10 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="0" colspan="2" > <item row="3" column="0" colspan="2" >
<widget class="QGroupBox" name="optionsBox" > <widget class="QGroupBox" name="optionsBox" >
<property name="sizePolicy" > <property name="sizePolicy" >
<sizepolicy> <sizepolicy vsizetype="Fixed" hsizetype="Preferred" >
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
...@@ -73,12 +81,10 @@ ...@@ -73,12 +81,10 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="0" colspan="2" > <item row="2" column="0" colspan="2" >
<widget class="QGroupBox" name="cardBox" > <widget class="QGroupBox" name="cardBox" >
<property name="sizePolicy" > <property name="sizePolicy" >
<sizepolicy> <sizepolicy vsizetype="Preferred" hsizetype="MinimumExpanding" >
<hsizetype>3</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
...@@ -88,7 +94,7 @@ ...@@ -88,7 +94,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="0" > <item row="4" column="0" >
<widget class="QPushButton" name="advancedButton" > <widget class="QPushButton" name="advancedButton" >
<property name="toolTip" > <property name="toolTip" >
<string>_("Access advanced options to tweak the device")</string> <string>_("Access advanced options to tweak the device")</string>
...@@ -98,6 +104,13 @@ ...@@ -98,6 +104,13 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="0" colspan="2" >
<widget class="Line" name="line" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
<resources/> <resources/>
......
...@@ -20,29 +20,6 @@ ...@@ -20,29 +20,6 @@
<string>_("Open File")</string> <string>_("Open File")</string>
</property> </property>
<layout class="QGridLayout" > <layout class="QGridLayout" >
<item row="1" column="1" colspan="2" >
<widget class="QComboBox" name="fileInput" >
<property name="editable" >
<bool>true</bool>
</property>
<property name="maxVisibleItems" >
<number>7</number>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="fileLabel" >
<property name="maximumSize" >
<size>
<width>85</width>
<height>16777215</height>
</size>
</property>
<property name="text" >
<string>_("File Names:")</string>
</property>
</widget>
</item>
<item row="0" column="0" colspan="3" > <item row="0" column="0" colspan="3" >
<widget class="QWidget" native="1" name="tempWidget" > <widget class="QWidget" native="1" name="tempWidget" >
<property name="toolTip" > <property name="toolTip" >
...@@ -88,7 +65,7 @@ ...@@ -88,7 +65,7 @@
<enum>QFrame::StyledPanel</enum> <enum>QFrame::StyledPanel</enum>
</property> </property>
<layout class="QGridLayout" > <layout class="QGridLayout" >
<item row="1" column="7" > <item row="1" column="0" >
<spacer> <spacer>
<property name="orientation" > <property name="orientation" >
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
...@@ -101,46 +78,27 @@ ...@@ -101,46 +78,27 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="1" column="0" > <item row="1" column="1" >
<spacer> <widget class="QLabel" name="sizeSubLabel" >
<property name="orientation" > <property name="sizePolicy" >
<enum>Qt::Horizontal</enum> <sizepolicy vsizetype="Preferred" hsizetype="Minimum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property> </property>
<property name="sizeHint" > <property name="text" >
<size> <string>_("Size:")</string>
<width>16</width>
<height>20</height>
</size>
</property> </property>
</spacer> </widget>
</item> </item>
<item row="1" column="5" colspan="2" > <item row="1" column="2" >
<widget class="QComboBox" name="alignSubComboBox" > <widget class="QComboBox" name="sizeSubComboBox" >
<property name="minimumSize" > <property name="minimumSize" >
<size> <size>
<width>100</width> <width>100</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="currentIndex" >
<number>-1</number>
</property>
<property name="insertPolicy" >
<enum>QComboBox::NoInsert</enum>
</property>
<property name="minimumContentsLength" >
<number>0</number>
</property>
</widget>
</item>
<item row="1" column="4" >
<widget class="QLabel" name="alignSubLabel" >
<property name="text" >
<string>_("Alignment:")</string>
</property>
<property name="buddy" >
<cstring>alignSubLabel</cstring>
</property>
</widget> </widget>
</item> </item>
<item row="1" column="3" > <item row="1" column="3" >
...@@ -150,14 +108,27 @@ ...@@ -150,14 +108,27 @@
</property> </property>
<property name="sizeHint" > <property name="sizeHint" >
<size> <size>
<width>71</width> <width>30</width>
<height>26</height> <height>26</height>
</size> </size>
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="1" column="2" > <item row="1" column="4" >
<widget class="QComboBox" name="sizeSubComboBox" > <widget class="QLabel" name="alignSubLabel" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Preferred" hsizetype="Minimum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>_("Alignment:")</string>
</property>
</widget>
</item>
<item row="1" column="5" >
<widget class="QComboBox" name="alignSubComboBox" >
<property name="minimumSize" > <property name="minimumSize" >
<size> <size>
<width>100</width> <width>100</width>
...@@ -166,22 +137,43 @@ ...@@ -166,22 +137,43 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="1" > <item row="1" column="6" colspan="2" >
<widget class="QLabel" name="sizeSubLabel" > <spacer>
<property name="text" > <property name="orientation" >
<string>_("Size:")</string> <enum>Qt::Horizontal</enum>
</property> </property>
</widget> <property name="sizeHint" >
<size>
<width>16</width>
<height>20</height>
</size>
</property>
</spacer>
</item> </item>
<item row="0" column="0" colspan="6" > <item row="0" column="0" colspan="6" >
<widget class="QComboBox" name="subInput" > <widget class="QLineEdit" name="subInput" >
<property name="editable" > <property name="sizePolicy" >
<bool>true</bool> <sizepolicy vsizetype="Fixed" hsizetype="Preferred" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="6" colspan="2" > <item row="0" column="6" colspan="2" >
<widget class="QPushButton" name="subBrowseButton" > <widget class="QPushButton" name="subBrowseButton" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="MinimumExpanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>100</width>
<height>0</height>
</size>
</property>
<property name="toolTip" > <property name="toolTip" >
<string>_("Select the subtitle file")</string> <string>_("Select the subtitle file")</string>
</property> </property>
...@@ -211,9 +203,7 @@ ...@@ -211,9 +203,7 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<layoutdefault spacing="0" margin="0" />
<tabstops> <tabstops>
<tabstop>fileInput</tabstop>
<tabstop>subCheckBox</tabstop> <tabstop>subCheckBox</tabstop>
<tabstop>subInput</tabstop> <tabstop>subInput</tabstop>
<tabstop>subBrowseButton</tabstop> <tabstop>subBrowseButton</tabstop>
......
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