From 886f9be488970798b2725ad2e9ddf26b5cadee07 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 16 Jan 2021 15:52:48 +0000 Subject: library: add context menu git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9639 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/library/librarywidget.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/plugins/General/library/librarywidget.h') diff --git a/src/plugins/General/library/librarywidget.h b/src/plugins/General/library/librarywidget.h index a77e543a8..126c916c4 100644 --- a/src/plugins/General/library/librarywidget.h +++ b/src/plugins/General/library/librarywidget.h @@ -27,7 +27,9 @@ namespace Ui { class LibraryWidget; } +class QMenu; class LibraryModel; +class QContextMenuEvent; class LibraryWidget : public QWidget { @@ -37,12 +39,18 @@ public: ~LibraryWidget(); void refresh(); +private: + void contextMenuEvent(QContextMenuEvent *e); + private slots: void on_filterLineEdit_textChanged(const QString &text); + void addSelected(); + void showInformation(); private: Ui::LibraryWidget *m_ui; LibraryModel *m_model; + QMenu *m_menu; }; #endif // LIBRARYWIDGET_H -- cgit v1.2.3-13-gbd6f