Changeset View
Changeset View
Standalone View
Standalone View
src/services/lastfm/LastFmTreeView.cpp
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Line(s) | 78 | { | |||
---|---|---|---|---|---|
80 | QActionList actions; | 80 | QActionList actions; | ||
81 | QModelIndex index = currentIndex(); | 81 | QModelIndex index = currentIndex(); | ||
82 | QVariant type = model()->data(index, LastFm::TypeRole); | 82 | QVariant type = model()->data(index, LastFm::TypeRole); | ||
83 | switch ( type.toInt() ) | 83 | switch ( type.toInt() ) | ||
84 | { | 84 | { | ||
85 | case LastFm::MyRecommendations: | 85 | case LastFm::MyRecommendations: | ||
86 | case LastFm::PersonalRadio: | 86 | case LastFm::PersonalRadio: | ||
87 | case LastFm::MixRadio: | 87 | case LastFm::MixRadio: | ||
88 | case LastFm::NeighborhoodRadio: | | |||
89 | case LastFm::FriendsChild: | 88 | case LastFm::FriendsChild: | ||
90 | case LastFm::NeighborsChild: | | |||
91 | case LastFm::MyTagsChild: | 89 | case LastFm::MyTagsChild: | ||
92 | case LastFm::ArtistsChild: | 90 | case LastFm::ArtistsChild: | ||
93 | case LastFm::UserChildPersonal: | 91 | case LastFm::UserChildPersonal: | ||
94 | case LastFm::UserChildNeighborhood: | | |||
95 | { | 92 | { | ||
96 | if ( m_appendAction == 0 ) | 93 | if ( m_appendAction == 0 ) | ||
97 | { | 94 | { | ||
98 | m_appendAction = new QAction ( QIcon::fromTheme( "media-track-add-amarok" ), i18n ( "&Add to Playlist" ), this ); | 95 | m_appendAction = new QAction ( QIcon::fromTheme( "media-track-add-amarok" ), i18n ( "&Add to Playlist" ), this ); | ||
99 | m_appendAction->setProperty( "popupdropper_svg_id", "append" ); | 96 | m_appendAction->setProperty( "popupdropper_svg_id", "append" ); | ||
100 | connect ( m_appendAction, &QAction::triggered, this, &LastFmTreeView::slotAppendChildTracks ); | 97 | connect ( m_appendAction, &QAction::triggered, this, &LastFmTreeView::slotAppendChildTracks ); | ||
101 | } | 98 | } | ||
102 | 99 | | |||
▲ Show 20 Lines • Show All 141 Lines • Show Last 20 Lines |