Only show delete and save playlist button when item is selected
Fixes #500
This commit is contained in:
@@ -37,9 +37,15 @@ class PlaylistListView : public AutoExpandingTreeView {
|
||||
public:
|
||||
explicit PlaylistListView(QWidget *parent = nullptr);
|
||||
|
||||
bool ItemsSelected() const;
|
||||
|
||||
signals:
|
||||
void ItemsSelectedChanged(bool);
|
||||
|
||||
protected:
|
||||
// QWidget
|
||||
void paintEvent(QPaintEvent *event) override;
|
||||
void selectionChanged(const QItemSelection&, const QItemSelection&) override;
|
||||
};
|
||||
|
||||
#endif // PLAYLISTVIEW_H
|
||||
|
||||
Reference in New Issue
Block a user