Commit fa724854 authored by Yoann Peronneau's avatar Yoann Peronneau

* build the subtitle size combo box, instead of hardcoded list

parent bd1292c1
...@@ -89,6 +89,22 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) : ...@@ -89,6 +89,22 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
// Hide the subtitles control by default. // Hide the subtitles control by default.
ui.subFrame->hide(); ui.subFrame->hide();
/* Build the subs size combo box */
module_config_t *p_item =
config_FindConfig( VLC_OBJECT(p_intf), "freetype-rel-fontsize" );
if( p_item )
{
for( int i_index = 0; i_index < p_item->i_list; i_index++ )
{
ui.sizeSubComboBox->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.sizeSubComboBox->setCurrentIndex( i_index );
}
}
}
BUTTONACT( ui.subBrowseButton, browseFileSub() ); BUTTONACT( ui.subBrowseButton, browseFileSub() );
BUTTONACT( ui.subCheckBox, toggleSubtitleFrame()); BUTTONACT( ui.subCheckBox, toggleSubtitleFrame());
......
...@@ -209,31 +209,6 @@ ...@@ -209,31 +209,6 @@
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<item>
<property name="text" >
<string>Very Small</string>
</property>
</item>
<item>
<property name="text" >
<string>Small</string>
</property>
</item>
<item>
<property name="text" >
<string>Normal</string>
</property>
</item>
<item>
<property name="text" >
<string>Big</string>
</property>
</item>
<item>
<property name="text" >
<string>Very Big</string>
</property>
</item>
</widget> </widget>
</item> </item>
<item row="1" column="1" > <item row="1" column="1" >
......
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