Commit ab13e4a2 authored by Yoann Peronneau's avatar Yoann Peronneau

* build the subtitle align combo box

parent fa724854
...@@ -106,6 +106,22 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) : ...@@ -106,6 +106,22 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
} }
} }
/* Build the subs align combo box */
p_item = config_FindConfig( VLC_OBJECT(p_intf), "subsdec-align" );
if( p_item )
{
for( int i_index = 0; i_index < p_item->i_list; i_index++ )
{
ui.alignSubComboBox->addItem(
qfu( p_item->ppsz_list_text[i_index] ),
QVariant( p_item->pi_list[i_index] ) );
if( p_item->value.i == p_item->pi_list[i_index] )
{
ui.alignSubComboBox->setCurrentIndex( i_index );
}
}
}
BUTTONACT( ui.subBrowseButton, browseFileSub() ); BUTTONACT( ui.subBrowseButton, browseFileSub() );
BUTTONACT( ui.subCheckBox, toggleSubtitleFrame()); BUTTONACT( ui.subCheckBox, toggleSubtitleFrame());
......
...@@ -161,21 +161,6 @@ ...@@ -161,21 +161,6 @@
<property name="minimumContentsLength" > <property name="minimumContentsLength" >
<number>0</number> <number>0</number>
</property> </property>
<item>
<property name="text" >
<string>Left</string>
</property>
</item>
<item>
<property name="text" >
<string>Center</string>
</property>
</item>
<item>
<property name="text" >
<string>Right</string>
</property>
</item>
</widget> </widget>
</item> </item>
<item row="1" column="4" > <item row="1" column="4" >
......
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