Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
ae514657
Commit
ae514657
authored
Dec 08, 2007
by
dionoea
Browse files
Automatically refresh the v4l2 extended panel on focus.
parent
02032094
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/gui/qt4/components/extended_panels.cpp
View file @
ae514657
...
...
@@ -577,6 +577,12 @@ ExtV4l2::~ExtV4l2()
delete
box
;
}
void
ExtV4l2
::
showEvent
(
QShowEvent
*
event
)
{
QWidget
::
showEvent
(
event
);
Refresh
();
}
void
ExtV4l2
::
Refresh
(
void
)
{
vlc_object_t
*
p_obj
=
(
vlc_object_t
*
)
vlc_object_find_name
(
p_intf
,
"v4l2"
,
FIND_ANYWHERE
);
...
...
@@ -620,7 +626,7 @@ void ExtV4l2::Refresh( void )
case
VLC_VAR_INTEGER
:
{
QLabel
*
label
=
new
QLabel
(
psz_label
,
box
);
QHBoxLayout
*
hlayout
=
new
QHBoxLayout
(
box
);
QHBoxLayout
*
hlayout
=
new
QHBoxLayout
();
hlayout
->
addWidget
(
label
);
int
i_val
=
var_GetInteger
(
p_obj
,
psz_var
);
if
(
i_type
&
VLC_VAR_HASCHOICE
)
...
...
modules/gui/qt4/components/extended_panels.hpp
View file @
ae514657
...
...
@@ -63,6 +63,8 @@ public:
ExtV4l2
(
intf_thread_t
*
,
QWidget
*
);
virtual
~
ExtV4l2
();
virtual
void
showEvent
(
QShowEvent
*
event
);
private:
intf_thread_t
*
p_intf
;
Ui
::
ExtV4l2Widget
ui
;
...
...
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