Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2018-01-15 19:30:33 +0300
committerChristian Kamm <mail@ckamm.de>2018-04-18 11:27:51 +0300
commita8b4526d650ed491e430508b96d7b5b2eb51957f (patch)
tree7cddc640bf5620fedbcd864a4d70e4076d5034cb /src/gui/folderwizard.cpp
parenta2191474eb0883f8e912de22e7ce6bcef3c76877 (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.cpp4
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;
}