diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2018-01-15 19:30:33 +0300 |
---|---|---|
committer | Christian Kamm <mail@ckamm.de> | 2018-04-18 11:27:51 +0300 |
commit | a8b4526d650ed491e430508b96d7b5b2eb51957f (patch) | |
tree | 7cddc640bf5620fedbcd864a4d70e4076d5034cb /src/gui/folderwizard.cpp | |
parent | a2191474eb0883f8e912de22e7ce6bcef3c76877 (diff) |
Placeholders: Add an checkbox in the FolderWizard to enable the placeholder feature
Diffstat (limited to 'src/gui/folderwizard.cpp')
-rw-r--r-- | src/gui/folderwizard.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/folderwizard.cpp b/src/gui/folderwizard.cpp index 549d2095f..909c7e99d 100644 --- a/src/gui/folderwizard.cpp +++ b/src/gui/folderwizard.cpp @@ -36,6 +36,7 @@ #include <QTreeWidget> #include <QVBoxLayout> #include <QEvent> +#include <QCheckBox> #include <stdlib.h> @@ -481,6 +482,8 @@ FolderWizardSelectiveSync::FolderWizardSelectiveSync(const AccountPtr &account) QVBoxLayout *layout = new QVBoxLayout(this); _selectiveSync = new SelectiveSyncWidget(account, this); layout->addWidget(_selectiveSync); + _placeholderCheckBox = new QCheckBox(tr("Download placeholders instead of downloading the files (Experimental)")); + layout->addWidget(_placeholderCheckBox); } FolderWizardSelectiveSync::~FolderWizardSelectiveSync() @@ -508,6 +511,7 @@ void FolderWizardSelectiveSync::initializePage() bool FolderWizardSelectiveSync::validatePage() { wizard()->setProperty("selectiveSyncBlackList", QVariant(_selectiveSync->createBlackList())); + wizard()->setProperty("usePlaceholders", QVariant(_placeholderCheckBox->isChecked())); return true; } |