internet/core: Remove unused ItemDoubleClicked
ItemDoubleClicked became noop in 70429217c. Usage of PlayBehaviour_DoubleClickAction was removed in b08172138.
This commit is contained in:
parent
dfb953a78f
commit
10bf5dc171
@ -292,14 +292,6 @@ QStringList InternetModel::mimeTypes() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
QMimeData* InternetModel::mimeData(const QModelIndexList& indexes) const {
|
QMimeData* InternetModel::mimeData(const QModelIndexList& indexes) const {
|
||||||
// Special case for when the user double clicked on a special item.
|
|
||||||
if (indexes.count() == 1 && indexes[0].data(Role_PlayBehaviour).toInt() ==
|
|
||||||
PlayBehaviour_DoubleClickAction) {
|
|
||||||
InternetModel::ServiceForIndex(indexes[0])
|
|
||||||
->ItemDoubleClicked(itemFromIndex(indexes[0]));
|
|
||||||
return nullptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (indexes.count() == 1 &&
|
if (indexes.count() == 1 &&
|
||||||
indexes[0].data(Role_Type).toInt() == Type_SmartPlaylist) {
|
indexes[0].data(Role_Type).toInt() == Type_SmartPlaylist) {
|
||||||
GeneratorPtr generator = InternetModel::ServiceForIndex(indexes[0])
|
GeneratorPtr generator = InternetModel::ServiceForIndex(indexes[0])
|
||||||
|
@ -113,10 +113,6 @@ class InternetModel : public QStandardItemModel {
|
|||||||
// This is used when dragging a playlist item for instance, to have all the
|
// This is used when dragging a playlist item for instance, to have all the
|
||||||
// playlit's items info loaded in the mime data.
|
// playlit's items info loaded in the mime data.
|
||||||
PlayBehaviour_MultipleItems,
|
PlayBehaviour_MultipleItems,
|
||||||
|
|
||||||
// This item might not represent a song - the service's ItemDoubleClicked()
|
|
||||||
// slot will get called instead to do some custom action.
|
|
||||||
PlayBehaviour_DoubleClickAction,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ServiceItem {
|
struct ServiceItem {
|
||||||
|
@ -64,7 +64,6 @@ class InternetService : public QObject {
|
|||||||
virtual bool has_initial_load_settings() const { return false; }
|
virtual bool has_initial_load_settings() const { return false; }
|
||||||
virtual void InitialLoadSettings() {}
|
virtual void InitialLoadSettings() {}
|
||||||
virtual void ShowContextMenu(const QPoint& global_pos) {}
|
virtual void ShowContextMenu(const QPoint& global_pos) {}
|
||||||
virtual void ItemDoubleClicked(QStandardItem* item) {}
|
|
||||||
// Create a generator for smart playlists
|
// Create a generator for smart playlists
|
||||||
virtual smart_playlists::GeneratorPtr CreateGenerator(QStandardItem* item) {
|
virtual smart_playlists::GeneratorPtr CreateGenerator(QStandardItem* item) {
|
||||||
return smart_playlists::GeneratorPtr();
|
return smart_playlists::GeneratorPtr();
|
||||||
|
@ -850,8 +850,6 @@ void SpotifyService::GetCurrentPlaylistUrlToShare() const {
|
|||||||
InternetService::ShowUrlBox(tr("Spotify playlist's URL"), url);
|
InternetService::ShowUrlBox(tr("Spotify playlist's URL"), url);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SpotifyService::ItemDoubleClicked(QStandardItem* item) {}
|
|
||||||
|
|
||||||
void SpotifyService::DropMimeData(const QMimeData* data,
|
void SpotifyService::DropMimeData(const QMimeData* data,
|
||||||
const QModelIndex& index) {
|
const QModelIndex& index) {
|
||||||
QModelIndex playlist_root_index = index;
|
QModelIndex playlist_root_index = index;
|
||||||
|
@ -73,7 +73,6 @@ class SpotifyService : public InternetService {
|
|||||||
QStandardItem* CreateRootItem() override;
|
QStandardItem* CreateRootItem() override;
|
||||||
void LazyPopulate(QStandardItem* parent) override;
|
void LazyPopulate(QStandardItem* parent) override;
|
||||||
void ShowContextMenu(const QPoint& global_pos) override;
|
void ShowContextMenu(const QPoint& global_pos) override;
|
||||||
void ItemDoubleClicked(QStandardItem* item) override;
|
|
||||||
void DropMimeData(const QMimeData* data, const QModelIndex& index) override;
|
void DropMimeData(const QMimeData* data, const QModelIndex& index) override;
|
||||||
QList<QAction*> playlistitem_actions(const Song& song) override;
|
QList<QAction*> playlistitem_actions(const Song& song) override;
|
||||||
PlaylistItem::Options playlistitem_options() const override;
|
PlaylistItem::Options playlistitem_options() const override;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user