Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
fa724854
Commit
fa724854
authored
Mar 26, 2007
by
Yoann Peronneau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* build the subtitle size combo box, instead of hardcoded list
parent
bd1292c1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
25 deletions
+16
-25
modules/gui/qt4/components/open.cpp
modules/gui/qt4/components/open.cpp
+16
-0
modules/gui/qt4/ui/open_file.ui
modules/gui/qt4/ui/open_file.ui
+0
-25
No files found.
modules/gui/qt4/components/open.cpp
View file @
fa724854
...
...
@@ -89,6 +89,22 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
// Hide the subtitles control by default.
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
.
subCheckBox
,
toggleSubtitleFrame
());
...
...
modules/gui/qt4/ui/open_file.ui
View file @
fa724854
...
...
@@ -209,31 +209,6 @@
<height>0</height>
</size>
</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>
</item>
<item row="1" column="1" >
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment