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

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Kamm <mail@ckamm.de>2017-01-03 17:33:06 +0300
committerChristian Kamm <mail@ckamm.de>2017-01-13 12:52:10 +0300
commitdce3f8c4f6915b982ce7586be74f0921f314d5fc (patch)
treeeb99ad475b829b7f59c3a2218a89927870d9f59c /src/gui/folderwizard.cpp
parent084146756bb9637ef32f229281d053394389efc1 (diff)
Selective sync: Adjust widget common to folder/account wizards
Diffstat (limited to 'src/gui/folderwizard.cpp')
-rw-r--r--src/gui/folderwizard.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/gui/folderwizard.cpp b/src/gui/folderwizard.cpp
index a521d4284..f063dc920 100644
--- a/src/gui/folderwizard.cpp
+++ b/src/gui/folderwizard.cpp
@@ -482,9 +482,8 @@ void FolderWizardRemotePath::showWarn( const QString& msg ) const
FolderWizardSelectiveSync::FolderWizardSelectiveSync(const AccountPtr& account)
{
QVBoxLayout *layout = new QVBoxLayout(this);
- _treeView = new SelectiveSyncTreeView(account, this);
- layout->addWidget(new QLabel(tr("Choose What to Sync: You can optionally deselect remote subfolders you do not wish to synchronize.")));
- layout->addWidget(_treeView);
+ _selectiveSync = new SelectiveSyncWidget(account, this);
+ layout->addWidget(_selectiveSync);
}
FolderWizardSelectiveSync::~FolderWizardSelectiveSync()
@@ -501,13 +500,13 @@ void FolderWizardSelectiveSync::initializePage()
QString alias = QFileInfo(targetPath).fileName();
if (alias.isEmpty())
alias = Theme::instance()->appName();
- _treeView->setFolderInfo(targetPath, alias);
+ _selectiveSync->setFolderInfo(targetPath, alias);
QWizardPage::initializePage();
}
bool FolderWizardSelectiveSync::validatePage()
{
- wizard()->setProperty("selectiveSyncBlackList", QVariant(_treeView->createBlackList()));
+ wizard()->setProperty("selectiveSyncBlackList", QVariant(_selectiveSync->createBlackList()));
return true;
}
@@ -517,7 +516,7 @@ void FolderWizardSelectiveSync::cleanupPage()
QString alias = QFileInfo(targetPath).fileName();
if (alias.isEmpty())
alias = Theme::instance()->appName();
- _treeView->setFolderInfo(targetPath, alias);
+ _selectiveSync->setFolderInfo(targetPath, alias);
QWizardPage::cleanupPage();
}