diff options
author | Christian Kamm <mail@ckamm.de> | 2017-01-03 17:33:06 +0300 |
---|---|---|
committer | Christian Kamm <mail@ckamm.de> | 2017-01-13 12:52:10 +0300 |
commit | dce3f8c4f6915b982ce7586be74f0921f314d5fc (patch) | |
tree | eb99ad475b829b7f59c3a2218a89927870d9f59c /src/gui/folderwizard.cpp | |
parent | 084146756bb9637ef32f229281d053394389efc1 (diff) |
Selective sync: Adjust widget common to folder/account wizards
Diffstat (limited to 'src/gui/folderwizard.cpp')
-rw-r--r-- | src/gui/folderwizard.cpp | 11 |
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(); } |