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 --- copydialog.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'copydialog.cpp') diff --git a/copydialog.cpp b/copydialog.cpp index 625ccac..38a5b9f 100644 --- a/copydialog.cpp +++ b/copydialog.cpp @@ -36,6 +36,7 @@ CopyDialog::CopyDialog(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f) dirGB->setLayout(dirGrid); QHBoxLayout *resultL = new QHBoxLayout; mResultL = new QLabel; + mResultL->setAlignment(Qt::AlignTop | Qt::AlignLeft); resultL->addWidget(mResultL); QGroupBox *resultGB = new QGroupBox(tr("Result")); resultGB->setLayout(resultL); @@ -78,6 +79,10 @@ void CopyDialog::setDestFolder(const QString &dst){ mFolderE->setText(dst); } +void CopyDialog::setSources(const QStringList &sources){ + mSources = sources; +} + void CopyDialog::closeEvent(QCloseEvent *e){ QSettings s; s.setValue("copydlgsize", size()); -- cgit v1.2.3-70-g09d2