Changeset View
Changeset View
Standalone View
Standalone View
src/amarokurls/BookmarkMetaActions.cpp
Show All 25 Lines | |||||
26 | 26 | | |||
27 | #include <QIcon> | 27 | #include <QIcon> | ||
28 | #include <KLocale> | 28 | #include <KLocale> | ||
29 | 29 | | |||
30 | BookmarkAlbumAction::BookmarkAlbumAction( QObject *parent, Meta::AlbumPtr album ) | 30 | BookmarkAlbumAction::BookmarkAlbumAction( QObject *parent, Meta::AlbumPtr album ) | ||
31 | : QAction( i18n( "Bookmark this Album" ), parent ) | 31 | : QAction( i18n( "Bookmark this Album" ), parent ) | ||
32 | , m_album( album ) | 32 | , m_album( album ) | ||
33 | { | 33 | { | ||
34 | connect( this, SIGNAL(triggered(bool)), SLOT(slotTriggered()) ); | 34 | connect( this, &BookmarkAlbumAction::triggered, this, &BookmarkAlbumAction::slotTriggered ); | ||
35 | setIcon( QIcon::fromTheme("bookmark-new") ); | 35 | setIcon( QIcon::fromTheme("bookmark-new") ); | ||
36 | setProperty( "popupdropper_svg_id", "lastfm" ); | 36 | setProperty( "popupdropper_svg_id", "lastfm" ); | ||
37 | } | 37 | } | ||
38 | 38 | | |||
39 | void | 39 | void | ||
40 | BookmarkAlbumAction::slotTriggered() | 40 | BookmarkAlbumAction::slotTriggered() | ||
41 | { | 41 | { | ||
42 | The::amarokUrlHandler()->bookmarkAlbum( m_album ); | 42 | The::amarokUrlHandler()->bookmarkAlbum( m_album ); | ||
43 | } | 43 | } | ||
44 | 44 | | |||
45 | 45 | | |||
46 | BookmarkArtistAction::BookmarkArtistAction( QObject *parent, Meta::ArtistPtr artist ) | 46 | BookmarkArtistAction::BookmarkArtistAction( QObject *parent, Meta::ArtistPtr artist ) | ||
47 | : QAction( i18n( "Bookmark this Artist" ), parent ) | 47 | : QAction( i18n( "Bookmark this Artist" ), parent ) | ||
48 | , m_artist( artist ) | 48 | , m_artist( artist ) | ||
49 | { | 49 | { | ||
50 | connect( this, SIGNAL(triggered(bool)), SLOT(slotTriggered()) ); | 50 | connect( this, &BookmarkArtistAction::triggered, this, &BookmarkArtistAction::slotTriggered ); | ||
51 | setIcon( QIcon::fromTheme("bookmark-new") ); | 51 | setIcon( QIcon::fromTheme("bookmark-new") ); | ||
52 | setProperty( "popupdropper_svg_id", "lastfm" ); | 52 | setProperty( "popupdropper_svg_id", "lastfm" ); | ||
53 | } | 53 | } | ||
54 | 54 | | |||
55 | void | 55 | void | ||
56 | BookmarkArtistAction::slotTriggered() | 56 | BookmarkArtistAction::slotTriggered() | ||
57 | { | 57 | { | ||
58 | The::amarokUrlHandler()->bookmarkArtist( m_artist ); | 58 | The::amarokUrlHandler()->bookmarkArtist( m_artist ); | ||
59 | } | 59 | } | ||
60 | 60 | | |||
61 | BookmarkCurrentTrackPositionAction::BookmarkCurrentTrackPositionAction( QObject * parent ) | 61 | BookmarkCurrentTrackPositionAction::BookmarkCurrentTrackPositionAction( QObject * parent ) | ||
62 | : QAction( i18n( "Add Position Marker" ), parent ) | 62 | : QAction( i18n( "Add Position Marker" ), parent ) | ||
63 | { | 63 | { | ||
64 | connect( this, SIGNAL(triggered(bool)), SLOT(slotTriggered()) ); | 64 | connect( this, &BookmarkCurrentTrackPositionAction::triggered, this, &BookmarkCurrentTrackPositionAction::slotTriggered ); | ||
65 | setIcon( QIcon::fromTheme("flag-amarok") ); | 65 | setIcon( QIcon::fromTheme("flag-amarok") ); | ||
66 | } | 66 | } | ||
67 | 67 | | |||
68 | void | 68 | void | ||
69 | BookmarkCurrentTrackPositionAction::slotTriggered() | 69 | BookmarkCurrentTrackPositionAction::slotTriggered() | ||
70 | { | 70 | { | ||
71 | DEBUG_BLOCK | 71 | DEBUG_BLOCK | ||
72 | 72 | | |||
Show All 13 Lines |