Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
juk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
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
David Planella
juk
Commits
9f29622c
Commit
9f29622c
authored
Jan 08, 2007
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port++
svn path=/branches/work/kaction-cleanup-branch/KDE/kdemultimedia/juk/; revision=621500
parent
278259de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
juk.cpp
juk.cpp
+10
-3
No files found.
juk.cpp
View file @
9f29622c
...
...
@@ -145,17 +145,21 @@ void JuK::setupActions()
// Setup the menu which handles the random play options.
KActionMenu
*
actionMenu
=
new
KActionMenu
(
KIcon
(
"roll"
),
i18n
(
"&Random Play"
),
collection
,
"actionMenu"
);
KActionMenu
*
actionMenu
=
new
KActionMenu
(
KIcon
(
"roll"
),
i18n
(
"&Random Play"
),
collection
);
collection
->
addAction
(
"actionMenu"
,
actionMenu
);
actionMenu
->
setDelayed
(
false
);
// ### KDE4: Investigate how QActionGroups integrate into menus now.
QActionGroup
*
randomPlayGroup
=
new
QActionGroup
(
this
);
KAction
*
act
=
new
KToggleAction
(
KIcon
(
"player_playlist"
),
i18n
(
"&Disable Random Play"
),
collection
,
"disableRandomPlay"
);
act
->
setActionGroup
(
randomPlayGroup
);
actionMenu
->
addAction
(
act
);
m_randomPlayAction
=
new
KToggleAction
(
KIcon
(
"roll"
),
i18n
(
"Use &Random Play"
),
collection
,
"randomPlay"
);
m_randomPlayAction
=
collection
->
add
<
KToggleAction
>
(
"randomPlay"
);
m_randomPlayAction
->
setText
(
i18n
(
"Use &Random Play"
));
m_randomPlayAction
->
setIcon
(
KIcon
(
"roll"
));
m_randomPlayAction
->
setActionGroup
(
randomPlayGroup
);
actionMenu
->
addAction
(
m_randomPlayAction
);
...
...
@@ -164,7 +168,10 @@ void JuK::setupActions()
connect
(
act
,
SIGNAL
(
triggered
(
bool
)),
SLOT
(
slotCheckAlbumNextAction
(
bool
)));
actionMenu
->
addAction
(
act
);
act
=
new
KAction
(
KIcon
(
"edit_remove"
),
i18n
(
"Remove From Playlist"
),
collection
,
"removeFromPlaylist"
);
act
=
collection
->
addAction
(
"removeFromPlaylist"
);
act
->
setText
(
i18n
(
"Remove From Playlist"
));
act
->
setIcon
(
KIcon
(
"edit_remove"
));
connect
(
act
,
SIGNAL
(
triggered
(
bool
)),
clear
,
SLOT
(
clear
()));
act
=
new
KAction
(
KIcon
(
"player_play"
),
i18n
(
"&Play"
),
collection
,
"play"
);
...
...
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