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
8972d2f2
Commit
8972d2f2
authored
Jan 25, 2013
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: capture panel: Disable advanced options instead of being silent on
late failure
parent
6675dc2e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
modules/gui/qt4/components/open_panels.cpp
modules/gui/qt4/components/open_panels.cpp
+9
-0
modules/gui/qt4/components/open_panels.hpp
modules/gui/qt4/components/open_panels.hpp
+1
-0
No files found.
modules/gui/qt4/components/open_panels.cpp
View file @
8972d2f2
...
...
@@ -746,6 +746,7 @@ void CaptureOpenPanel::initialize()
ui
.
setupUi
(
this
);
BUTTONACT
(
ui
.
advancedButton
,
advancedDialog
()
);
CONNECT
(
ui
.
deviceCombo
,
currentIndexChanged
(
int
),
this
,
enableAdvancedDialog
(
int
)
);
/* Create two stacked layouts in the main comboBoxes */
QStackedLayout
*
stackedDevLayout
=
new
QStackedLayout
;
...
...
@@ -1292,6 +1293,14 @@ void CaptureOpenPanel::updateButtons()
advMRL
.
clear
();
}
void
CaptureOpenPanel
::
enableAdvancedDialog
(
int
i_index
)
{
int
i_devicetype
=
ui
.
deviceCombo
->
itemData
(
i_index
).
toInt
();
module_t
*
p_module
=
module_find
(
psz_devModule
[
i_devicetype
]
);
ui
.
advancedButton
->
setEnabled
(
NULL
!=
p_module
);
}
void
CaptureOpenPanel
::
advancedDialog
()
{
/* Get selected device type */
...
...
modules/gui/qt4/components/open_panels.hpp
View file @
8972d2f2
...
...
@@ -227,6 +227,7 @@ public slots:
void
initialize
();
private
slots
:
void
updateButtons
();
void
enableAdvancedDialog
(
int
);
void
advancedDialog
();
};
...
...
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