Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
15f94976
Commit
15f94976
authored
Jan 18, 2011
by
Jean-Philippe André
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: support spin icon in extension dialogs
parent
30b3704a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
modules/gui/qt4/dialogs/extensions.cpp
modules/gui/qt4/dialogs/extensions.cpp
+18
-0
No files found.
modules/gui/qt4/dialogs/extensions.cpp
View file @
15f94976
...
...
@@ -38,6 +38,7 @@
#include <QComboBox>
#include <QCloseEvent>
#include <QCoreApplication>
#include "util/customwidgets.hpp"
ExtensionsDialogProvider
*
ExtensionsDialogProvider
::
instance
=
NULL
;
...
...
@@ -218,6 +219,7 @@ QWidget* ExtensionDialog::CreateWidget( extension_widget_t *p_widget )
QCheckBox
*
checkBox
=
NULL
;
QComboBox
*
comboBox
=
NULL
;
QListWidget
*
list
=
NULL
;
SpinningIcon
*
spinIcon
=
NULL
;
struct
extension_widget_t
::
extension_widget_value_t
*
p_value
=
NULL
;
assert
(
p_widget
->
p_sys_intf
==
NULL
);
...
...
@@ -327,6 +329,12 @@ QWidget* ExtensionDialog::CreateWidget( extension_widget_t *p_widget )
selectMapper
,
map
()
);
return
list
;
case
EXTENSION_WIDGET_SPIN_ICON
:
spinIcon
=
new
SpinningIcon
(
this
);
spinIcon
->
play
(
p_widget
->
i_spin_loops
);
p_widget
->
p_sys_intf
=
spinIcon
;
return
spinIcon
;
default:
msg_Err
(
p_intf
,
"Widget type %d unknown"
,
p_widget
->
type
);
return
NULL
;
...
...
@@ -559,6 +567,7 @@ QWidget* ExtensionDialog::UpdateWidget( extension_widget_t *p_widget )
QCheckBox
*
checkBox
=
NULL
;
QComboBox
*
comboBox
=
NULL
;
QListWidget
*
list
=
NULL
;
SpinningIcon
*
spinIcon
=
NULL
;
struct
extension_widget_t
::
extension_widget_value_t
*
p_value
=
NULL
;
assert
(
p_widget
->
p_sys_intf
!=
NULL
);
...
...
@@ -637,6 +646,15 @@ QWidget* ExtensionDialog::UpdateWidget( extension_widget_t *p_widget )
}
return
list
;
case
EXTENSION_WIDGET_SPIN_ICON
:
spinIcon
=
static_cast
<
SpinningIcon
*
>
(
p_widget
->
p_sys_intf
);
if
(
!
spinIcon
->
isPlaying
()
&&
p_widget
->
i_spin_loops
!=
0
)
spinIcon
->
play
(
p_widget
->
i_spin_loops
);
else
if
(
spinIcon
->
isPlaying
()
&&
p_widget
->
i_spin_loops
==
0
)
spinIcon
->
stop
();
p_widget
->
i_height
=
p_widget
->
i_width
=
16
;
return
spinIcon
;
default:
msg_Err
(
p_intf
,
"Widget type %d unknown"
,
p_widget
->
type
);
return
NULL
;
...
...
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