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
37c38958
Commit
37c38958
authored
Mar 26, 2012
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: StringListConfigControl: use signals instead of public members.
Fixes combo visibility in open_panel
parent
68c5c803
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
4 deletions
+12
-4
modules/gui/qt4/components/open_panels.cpp
modules/gui/qt4/components/open_panels.cpp
+2
-2
modules/gui/qt4/components/preferences_widgets.cpp
modules/gui/qt4/components/preferences_widgets.cpp
+7
-0
modules/gui/qt4/components/preferences_widgets.hpp
modules/gui/qt4/components/preferences_widgets.hpp
+3
-2
No files found.
modules/gui/qt4/components/open_panels.cpp
View file @
37c38958
...
...
@@ -741,8 +741,8 @@ void CaptureOpenPanel::initialize()
1
,
0
,
3
,
1
);
/* dshow CONNECTs */
CuMRL
(
vdevDshowW
->
combo
,
currentIndexChanged
(
int
)
);
CuMRL
(
adevDshowW
->
combo
,
currentIndexChanged
(
int
)
);
CuMRL
(
vdevDshowW
,
changed
(
)
);
CuMRL
(
adevDshowW
,
changed
(
)
);
CuMRL
(
dshowVSizeLine
,
textChanged
(
const
QString
&
)
);
configList
<<
"dshow-vdev"
<<
"dshow-adev"
<<
"dshow-size"
;
}
...
...
modules/gui/qt4/components/preferences_widgets.cpp
View file @
37c38958
...
...
@@ -457,6 +457,12 @@ StringListConfigControl::StringListConfigControl( vlc_object_t *_p_this,
}
}
void
StringListConfigControl
::
comboIndexChanged
(
int
i_index
)
{
Q_UNUSED
(
i_index
);
emit
changed
();
}
void
StringListConfigControl
::
actionRequested
(
int
i_action
)
{
/* Supplementary check for boundaries */
...
...
@@ -493,6 +499,7 @@ StringListConfigControl::StringListConfigControl( vlc_object_t *_p_this,
void
StringListConfigControl
::
finish
(
module_config_t
*
p_module_config
)
{
combo
->
setEditable
(
false
);
CONNECT
(
combo
,
currentIndexChanged
(
int
),
this
,
comboIndexChanged
(
int
)
);
if
(
!
p_module_config
)
return
;
...
...
modules/gui/qt4/components/preferences_widgets.hpp
View file @
37c38958
...
...
@@ -101,9 +101,10 @@ protected:
vlc_object_t
*
p_this
;
module_config_t
*
p_item
;
QWidget
*
widget
;
signals:
void
changed
();
#if 0
/* You shouldn't use that now..*/
signals:
void Updated();
#endif
};
...
...
@@ -471,7 +472,7 @@ private:
QLabel
*
label
;
private
slots
:
void
actionRequested
(
int
);
void
comboIndexChanged
(
int
);
};
void
setfillVLCConfigCombo
(
const
char
*
configname
,
intf_thread_t
*
p_intf
,
...
...
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