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
862258e8
Commit
862258e8
authored
Feb 28, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: consistency between loop and random buttons.
parent
74579daa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
modules/gui/qt4/components/playlist/standardpanel.cpp
modules/gui/qt4/components/playlist/standardpanel.cpp
+12
-9
No files found.
modules/gui/qt4/components/playlist/standardpanel.cpp
View file @
862258e8
...
...
@@ -127,20 +127,23 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
/* Repeat 3-state button */
repeatButton
=
new
QPushButton
(
this
);
repeatButton
->
setToolTip
(
qtr
(
"Click to toggle between loop one, loop all"
)
);
repeatButton
->
setCheckable
(
true
);
if
(
model
->
hasRepeat
()
)
{
repeatButton
->
setIcon
(
QIcon
(
":/repeat_one"
)
);
repeatButton
->
set
ToolTip
(
qtr
(
I_PL_REPEAT
)
);
repeatButton
->
set
Checked
(
true
);
}
else
if
(
model
->
hasLoop
()
)
{
repeatButton
->
setIcon
(
QIcon
(
":/repeat_all"
)
);
repeatButton
->
set
ToolTip
(
qtr
(
I_PL_LOOP
)
);
repeatButton
->
set
Checked
(
true
);
}
else
{
repeatButton
->
setIcon
(
QIcon
(
":/repeat_o
ff
"
)
);
repeatButton
->
set
ToolTip
(
qtr
(
I_PL_NOREPEAT
)
);
repeatButton
->
setIcon
(
QIcon
(
":/repeat_o
ne
"
)
);
repeatButton
->
set
Checked
(
false
);
}
BUTTONACT
(
repeatButton
,
toggleRepeat
()
);
buttons
->
addWidget
(
repeatButton
);
...
...
@@ -177,19 +180,19 @@ void StandardPLPanel::toggleRepeat()
{
model
->
setRepeat
(
false
);
model
->
setLoop
(
true
);
repeatButton
->
setIcon
(
QIcon
(
":/repeat_all"
)
);
repeatButton
->
set
ToolTip
(
qtr
(
I_PL_LOOP
)
);
repeatButton
->
set
Checked
(
true
);
}
else
if
(
model
->
hasLoop
()
)
{
model
->
setRepeat
(
false
)
;
model
->
setLoop
(
false
);
repeatButton
->
set
Icon
(
QIcon
(
":/repeat_off"
)
);
repeatButton
->
set
ToolTip
(
qtr
(
I_PL_NOREPEAT
)
);
repeatButton
->
set
Checked
(
false
);
repeatButton
->
set
Icon
(
QIcon
(
":/repeat_one"
)
);
}
else
{
model
->
setRepeat
(
true
);
model
->
setRepeat
(
true
);
model
->
setLoop
(
false
);
repeatButton
->
setChecked
(
true
);
repeatButton
->
setIcon
(
QIcon
(
":/repeat_one"
)
);
repeatButton
->
setToolTip
(
qtr
(
I_PL_REPEAT
));
}
}
...
...
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