aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/library/librarywidget.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2021-01-16 15:52:48 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2021-01-16 15:52:48 +0000
commit886f9be488970798b2725ad2e9ddf26b5cadee07 (patch)
treeed8c11574352818cafb69139f111c65110f2763b /src/plugins/General/library/librarywidget.h
parente336a9c15821384f6a45c3ef76bc133c133e35e5 (diff)
downloadqmmp-886f9be488970798b2725ad2e9ddf26b5cadee07.tar.gz
qmmp-886f9be488970798b2725ad2e9ddf26b5cadee07.tar.bz2
qmmp-886f9be488970798b2725ad2e9ddf26b5cadee07.zip
library: add context menu
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9639 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/library/librarywidget.h')
-rw-r--r--src/plugins/General/library/librarywidget.h8
1 files changed, 8 insertions, 0 deletions
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