folderWizard->field(QLatin1String("sourceFolder")).toString());
definition.targetPath = FolderDefinition::prepareTargetPath(
folderWizard->property("targetPath").toString());
+ definition.usePlaceholders = folderWizard->property("usePlaceholders").toBool();
{
QDir dir(definition.localPath);
#include <QTreeWidget>
#include <QVBoxLayout>
#include <QEvent>
+#include <QCheckBox>
#include <cstdlib>
auto *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() = default;
bool FolderWizardSelectiveSync::validatePage()
{
wizard()->setProperty("selectiveSyncBlackList", QVariant(_selectiveSync->createBlackList()));
+ wizard()->setProperty("usePlaceholders", QVariant(_placeholderCheckBox->isChecked()));
return true;
}
#include "ui_folderwizardsourcepage.h"
#include "ui_folderwizardtargetpage.h"
+class QCheckBox;
+
namespace OCC {
class SelectiveSyncWidget;
private:
SelectiveSyncWidget *_selectiveSync;
+ QCheckBox *_placeholderCheckBox;
};
/**