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
fa94475a
Commit
fa94475a
authored
Aug 24, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: correctly init loop button state
parent
9a454b6e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
modules/gui/qt4/components/controller.cpp
modules/gui/qt4/components/controller.cpp
+2
-1
modules/gui/qt4/input_manager.hpp
modules/gui/qt4/input_manager.hpp
+2
-2
No files found.
modules/gui/qt4/components/controller.cpp
View file @
fa94475a
...
...
@@ -435,7 +435,8 @@ QWidget *AbstractController::createWidget( buttonType_e button, int options )
setupButton
(
loopButton
);
loopButton
->
setToolTip
(
qtr
(
"Click to toggle between loop all, loop one and no loop"
)
);
loopButton
->
setCheckable
(
true
);
loopButton
->
updateButtonIcons
(
NORMAL
);
int
i_state
=
2
*
var_GetBool
(
THEPL
,
"loop"
)
+
var_GetBool
(
THEPL
,
"repeat"
);
loopButton
->
updateButtonIcons
(
i_state
);
CONNECT
(
THEMIM
,
repeatLoopChanged
(
int
),
loopButton
,
updateButtonIcons
(
int
)
);
CONNECT
(
loopButton
,
clicked
(),
THEMIM
,
loopRepeatLoopStatus
()
);
widget
=
loopButton
;
...
...
modules/gui/qt4/input_manager.hpp
View file @
fa94475a
...
...
@@ -73,8 +73,8 @@ enum {
};
enum
{
NORMAL
,
/* loop: 0, repeat: 0 */
REPEAT_ONE
,
/* loop:
1, repeat: 0
*/
REPEAT_ALL
,
/* loop:
0, repeat: 1
*/
REPEAT_ONE
,
/* loop:
0, repeat: 1
*/
REPEAT_ALL
,
/* loop:
1, repeat: 0
*/
};
class
IMEvent
:
public
QEvent
...
...
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