From f9771c52ff6b350c29db70216b79bb4f60081763 Mon Sep 17 00:00:00 2001 From: Arno Date: Thu, 6 Jul 2017 05:28:26 +0200 Subject: Add context menu entry for MusicBrainz Also add a dummy slot that does nothing yet. --- playerwidget.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'playerwidget.cpp') diff --git a/playerwidget.cpp b/playerwidget.cpp index a078761..c00db32 100644 --- a/playerwidget.cpp +++ b/playerwidget.cpp @@ -354,6 +354,8 @@ void PlayerWidget::createActions(){ helpA->setMenu(helpM); QAction *miscPrintA = new QAction(QIcon(":/clean_tampon.png"), tr("List selected"), this); connect(miscPrintA, &QAction::triggered, this, &PlayerWidget::printList); + QAction *miscMusicBrainzA = new QAction(QIcon(":/bizarre_amputee.png"), tr("Search Musicbrainz"), this); + connect(miscMusicBrainzA, &QAction::triggered, this, &PlayerWidget::searchMusicbrainz); mView->addAction(addToPlayListA); mView->addAction(addToPlayListAndClearA); mView->addAction(Helper::createSeparator(this)); @@ -370,6 +372,9 @@ void PlayerWidget::createActions(){ mView->addAction(Helper::createSeparator(this)); mView->addAction(randomPlayA); mPlayListView->addAction(removeFromPlayListA); + mPlayListView->addAction(Helper::createSeparator(this)); + mPlayListView->addAction(miscMusicBrainzA); + mPlayListView->addAction(Helper::createSeparator(this)); mPlayListView->addAction(shufflePlayistA); mPlayListView->addAction(clearPlayListA); QWidget* spacer1 = new QWidget(); @@ -1211,6 +1216,10 @@ void PlayerWidget::printList(){ mLeftTE->setText(output); } +void PlayerWidget::searchMusicbrainz(){ + +} + void PlayerWidget::play(const QString &fullPath){ mPlayer->setMedia(QUrl::fromLocalFile(fullPath)); TagLib::FileRef file(QString(fullPath).toUtf8()); -- cgit v1.2.3-70-g09d2