From 2a866788cd2608b5f893f173a611785da44d3047 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 13 Oct 2018 04:32:51 +0200 Subject: Set source and Destination folder in CopyDialog Still does nothing, but fill the source QLineEdit with something reasonable and try to guess the destination directory. --- copydialog.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'copydialog.cpp') diff --git a/copydialog.cpp b/copydialog.cpp index da71494..625ccac 100644 --- a/copydialog.cpp +++ b/copydialog.cpp @@ -70,6 +70,14 @@ void CopyDialog::getDestination(){ mDstE->setText(dir); } +void CopyDialog::setSource(const QString &src){ + mSrcE->setText(src); +} + +void CopyDialog::setDestFolder(const QString &dst){ + mFolderE->setText(dst); +} + void CopyDialog::closeEvent(QCloseEvent *e){ QSettings s; s.setValue("copydlgsize", size()); -- cgit v1.2.3-70-g09d2