From 423670fc310b8c853c471a3c272db13e38edd8db Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 13 Oct 2018 03:18:29 +0200 Subject: 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... --- collectiondatesview.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'collectiondatesview.cpp') diff --git a/collectiondatesview.cpp b/collectiondatesview.cpp index 17856c7..83a7c3f 100644 --- a/collectiondatesview.cpp +++ b/collectiondatesview.cpp @@ -4,6 +4,7 @@ #include #include "collectiondatesview.h" +#include "copydialog.h" CollectionDatesView::CollectionDatesView(QWidget *parent) : CollectionWidget(parent){ } @@ -77,3 +78,8 @@ void CollectionDatesView::populate(){ } enableSorting(Qt::DescendingOrder); } + +void CollectionDatesView::copyTo(){ + CopyDialog *cdlg = new CopyDialog(this); + cdlg->show(); +} -- cgit v1.2.3-70-g09d2