Move spotifyimages out of spotify support

This commit is contained in:
Jonas Kvinge 2018-11-18 20:16:41 +01:00 committed by John Maguire
parent 4321ecf7d2
commit 647279a000
2 changed files with 2 additions and 6 deletions

View File

@ -301,6 +301,7 @@ set(SOURCES
songinfo/songkickconcerts.cpp
songinfo/songkickconcertwidget.cpp
songinfo/songplaystats.cpp
songinfo/spotifyimages.cpp
songinfo/streamdiscoverer.cpp
songinfo/taglyricsinfoprovider.cpp
songinfo/ultimatelyricslyric.cpp
@ -589,6 +590,7 @@ set(HEADERS
songinfo/songkickconcerts.h
songinfo/songkickconcertwidget.h
songinfo/songplaystats.h
songinfo/spotifyimages.h
songinfo/streamdiscoverer.h
songinfo/taglyricsinfoprovider.h
songinfo/ultimatelyricslyric.h
@ -838,13 +840,11 @@ optional_source(HAVE_SPOTIFY
internet/spotify/spotifyservice.cpp
internet/spotify/spotifysettingspage.cpp
globalsearch/spotifysearchprovider.cpp
songinfo/spotifyimages.cpp
HEADERS
globalsearch/spotifysearchprovider.h
internet/spotify/spotifyserver.h
internet/spotify/spotifyservice.h
internet/spotify/spotifysettingspage.h
songinfo/spotifyimages.h
UI
internet/spotify/spotifysettingspage.ui
)

View File

@ -21,15 +21,11 @@
#include "songinfo/songinfofetcher.h"
#include "songinfo/songkickconcerts.h"
#include "widgets/prettyimageview.h"
#ifdef HAVE_SPOTIFY
#include "songinfo/spotifyimages.h"
#endif
ArtistInfoView::ArtistInfoView(QWidget* parent) : SongInfoBase(parent) {
fetcher_->AddProvider(new SongkickConcerts);
#ifdef HAVE_SPOTIFY
fetcher_->AddProvider(new SpotifyImages);
#endif
fetcher_->AddProvider(new ArtistBiography);
}