ContextView: Use fixed size to avoid scrollbar issues

This commit is contained in:
Jonas Kvinge
2022-06-06 20:54:15 +02:00
parent be01e28068
commit a2320b99ae
5 changed files with 26 additions and 5 deletions

View File

@@ -64,6 +64,7 @@ class ContextView : public QWidget {
Song song_playing() const { return song_playing_; }
protected:
void resizeEvent(QResizeEvent *e) override;
void contextMenuEvent(QContextMenuEvent*) override;
void dragEnterEvent(QDragEnterEvent*) override;
void dropEvent(QDropEvent*) override;
@@ -101,6 +102,8 @@ class ContextView : public QWidget {
void AlbumCoverLoaded(const Song &song, const QImage &image);
private:
static const int kWidgetSpacing;
Application *app_;
CollectionView *collectionview_;
AlbumCoverChoiceController *album_cover_choice_controller_;