Refactoring
This commit is contained in:
@@ -46,9 +46,9 @@ class QDragEnterEvent;
|
||||
class QDropEvent;
|
||||
|
||||
class ResizableTextEdit;
|
||||
class Application;
|
||||
class CollectionView;
|
||||
class AlbumCoverChoiceController;
|
||||
class LyricsProviders;
|
||||
class LyricsFetcher;
|
||||
|
||||
class ContextView : public QWidget {
|
||||
@@ -57,7 +57,7 @@ class ContextView : public QWidget {
|
||||
public:
|
||||
explicit ContextView(QWidget *parent = nullptr);
|
||||
|
||||
void Init(Application *app, CollectionView *collectionview, AlbumCoverChoiceController *album_cover_choice_controller);
|
||||
void Init(CollectionView *collectionview, AlbumCoverChoiceController *album_cover_choice_controller, SharedPtr<LyricsProviders> lyrics_providers);
|
||||
|
||||
ContextAlbum *album_widget() const { return widget_album_; }
|
||||
bool album_enabled() const { return action_show_album_->isChecked(); }
|
||||
@@ -101,7 +101,6 @@ class ContextView : public QWidget {
|
||||
void AlbumCoverLoaded(const Song &song, const QImage &image);
|
||||
|
||||
private:
|
||||
Application *app_;
|
||||
CollectionView *collectionview_;
|
||||
AlbumCoverChoiceController *album_cover_choice_controller_;
|
||||
LyricsFetcher *lyrics_fetcher_;
|
||||
|
||||
Reference in New Issue
Block a user