Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
eb254c90
Commit
eb254c90
authored
Dec 19, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: correctly create some buttons.
parent
0ad86aca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
modules/gui/qt4/components/controller.cpp
modules/gui/qt4/components/controller.cpp
+26
-0
modules/gui/qt4/components/controller.hpp
modules/gui/qt4/components/controller.hpp
+1
-0
No files found.
modules/gui/qt4/components/controller.cpp
View file @
eb254c90
...
...
@@ -210,6 +210,14 @@ QWidget *AbstractController::createWidget( buttonType_e button, int options )
widget
=
stopButton
;
}
break
;
case
OPEN_BUTTON
:{
QToolButton
*
openButton
=
new
QToolButton
;
setupButton
(
openButton
);
CONNECT_MAP_SET
(
openButton
,
OPEN_ACTION
);
BUTTON_SET_BAR
(
openButton
);
widget
=
openButton
;
}
break
;
case
PREVIOUS_BUTTON
:{
QToolButton
*
prevButton
=
new
QToolButton
;
setupButton
(
prevButton
);
...
...
@@ -374,6 +382,24 @@ QWidget *AbstractController::createWidget( buttonType_e button, int options )
widget
=
reverseButton
;
}
break
;
case
SKIP_BACK_BUTTON
:
{
QToolButton
*
skipBakButton
=
new
QToolButton
;
setupButton
(
skipBakButton
);
CONNECT_MAP_SET
(
skipBakButton
,
SKIP_BACK_ACTION
);
BUTTON_SET_BAR
(
skipBakButton
);
ENABLE_ON_INPUT
(
skipBakButton
);
widget
=
skipBakButton
;
}
break
;
case
SKIP_FW_BUTTON
:
{
QToolButton
*
skipFwButton
=
new
QToolButton
;
setupButton
(
skipFwButton
);
CONNECT_MAP_SET
(
skipFwButton
,
SKIP_FW_ACTION
);
BUTTON_SET_BAR
(
skipFwButton
);
ENABLE_ON_INPUT
(
skipFwButton
);
widget
=
skipFwButton
;
}
break
;
default:
msg_Warn
(
p_intf
,
"This should not happen %i"
,
button
);
break
;
...
...
modules/gui/qt4/components/controller.hpp
View file @
eb254c90
...
...
@@ -117,6 +117,7 @@ typedef enum actionType_e
{
PLAY_ACTION
,
STOP_ACTION
,
OPEN_ACTION
,
PREVIOUS_ACTION
,
NEXT_ACTION
,
SLOWER_ACTION
,
...
...
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