Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
757962a0
Commit
757962a0
authored
May 26, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Open Capture Panel and file Panel: Don't build by hand the ComboChoices...
Make it automatic.
parent
d258537d
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
91 additions
and
80 deletions
+91
-80
modules/gui/qt4/components/open.cpp
modules/gui/qt4/components/open.cpp
+63
-80
modules/gui/qt4/util/customwidgets.cpp
modules/gui/qt4/util/customwidgets.cpp
+22
-0
modules/gui/qt4/util/customwidgets.hpp
modules/gui/qt4/util/customwidgets.hpp
+6
-0
No files found.
modules/gui/qt4/components/open.cpp
View file @
757962a0
This diff is collapsed.
Click to expand it.
modules/gui/qt4/util/customwidgets.cpp
View file @
757962a0
...
@@ -196,3 +196,25 @@ QString VLCKeyToString( int val )
...
@@ -196,3 +196,25 @@ QString VLCKeyToString( int val )
}
}
return
r
;
return
r
;
}
}
#include <QComboBox>
void
setfillVLCConfigCombo
(
const
char
*
configname
,
intf_thread_t
*
p_intf
,
QComboBox
*
combo
,
QWidget
*
parent
)
{
module_config_t
*
p_config
=
config_FindConfig
(
VLC_OBJECT
(
p_intf
),
configname
);
if
(
p_config
)
{
for
(
int
i_index
=
0
;
i_index
<
p_config
->
i_list
;
i_index
++
)
{
combo
->
addItem
(
qfu
(
p_config
->
ppsz_list_text
[
i_index
]
),
QVariant
(
p_config
->
pi_list
[
i_index
]
)
);
if
(
p_config
->
value
.
i
==
p_config
->
pi_list
[
i_index
]
)
{
combo
->
setCurrentIndex
(
i_index
);
}
}
combo
->
setToolTip
(
qfu
(
p_config
->
psz_longtext
)
);
}
}
modules/gui/qt4/util/customwidgets.hpp
View file @
757962a0
...
@@ -92,4 +92,10 @@ int qtEventToVLCKey( QKeyEvent *e );
...
@@ -92,4 +92,10 @@ int qtEventToVLCKey( QKeyEvent *e );
int
qtWheelEventToVLCKey
(
QWheelEvent
*
e
);
int
qtWheelEventToVLCKey
(
QWheelEvent
*
e
);
QString
VLCKeyToString
(
int
val
);
QString
VLCKeyToString
(
int
val
);
#include "qt4.hpp"
#include <vlc/vlc.h>
class
QComboBox
;
void
setfillVLCConfigCombo
(
const
char
*
configname
,
intf_thread_t
*
p_intf
,
QComboBox
*
combo
,
QWidget
*
parent
=
0
);
#endif
#endif
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