diff options
author | Arno <arno@disconnect.de> | 2018-10-13 03:18:29 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-10-13 03:18:29 +0200 |
commit | 423670fc310b8c853c471a3c272db13e38edd8db (patch) | |
tree | cd64ff3558a09070c16849cbaac6d37246d4560d /playerwidget.cpp | |
parent | 6ccb253ceb2f893fc1ba917a6db1792fcfeca8db (diff) | |
download | BeetPlayer-423670fc310b8c853c471a3c272db13e38edd8db.tar.gz BeetPlayer-423670fc310b8c853c471a3c272db13e38edd8db.tar.bz2 BeetPlayer-423670fc310b8c853c471a3c272db13e38edd8db.zip |
Implement layout for CopyDialog
Does nothing yet except close.
This was harder than it should be: To keep a GridLayout expanding its
cells vertically, you have to set the Alignment in the *parent* Layout.
Took me a while to figure out...
Diffstat (limited to 'playerwidget.cpp')
-rw-r--r-- | playerwidget.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/playerwidget.cpp b/playerwidget.cpp index 71c899b..cab33b9 100644 --- a/playerwidget.cpp +++ b/playerwidget.cpp @@ -206,6 +206,13 @@ void PlayerWidget::setupGui(QSplashScreen *splash){ curW->view()->addAction(deleteItemA); curW->view()->addAction(Helper::createSeparator(this)); } + // special case dates -> add copy to... + if(name == "dates"){ + QAction *copyToA = new QAction(QIcon::fromTheme("edit-copy"), tr("Copy to..."), this); + connect(copyToA, &QAction::triggered, datesView, &CollectionDatesView::copyTo); + curW->view()->addAction(copyToA); + curW->view()->addAction(Helper::createSeparator(this)); + } QAction *refreshA = new QAction(QIcon(":/refresh.png"), tr("Refresh view"), this); connect(refreshA, &QAction::triggered, [curW] { qApp->setOverrideCursor(Qt::BusyCursor); |