From 6f87db1897e4be7bccd2684da571ed251c5b695e Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 13 Oct 2018 04:56:32 +0200 Subject: Implement add sources to CopyDialog --- collectiondatesview.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'collectiondatesview.cpp') diff --git a/collectiondatesview.cpp b/collectiondatesview.cpp index 5544f72..59fd5d2 100644 --- a/collectiondatesview.cpp +++ b/collectiondatesview.cpp @@ -100,5 +100,11 @@ void CollectionDatesView::copyTo(){ destDir = destDir.replace(" - ", "-"); destDir = destDir.replace(' ', '.'); cdlg->setDestFolder(destDir); + QStringList sources; + for(int i = 0; i < item->rowCount(); ++i){ + QStandardItem *childItem = item->child(i); + sources << childItem->data(FullPathRole).toString(); + } + cdlg->setSources(sources); cdlg->show(); } -- cgit v1.2.3-70-g09d2