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>2015-02-05 18:20:42 +0300
committerOlivier Goffart <ogoffart@woboq.com>2015-02-05 18:22:04 +0300
commit3169a6f170bbe76eae28cfaaea7b9a3020f9bf59 (patch)
treeb31484282cb9ce309c2b31c8497b8a4c794612a8 /src/gui/selectivesyncdialog.cpp
parente7b190404a36ee0e8d6aed86b5cba1ffc75e55b5 (diff)
SelectiveSync: change the wording of the dialog on the wizard
Have different wording depending on the wizardSelectiveSyncDefaultNothing theme option Relates to #2580
Diffstat (limited to 'src/gui/selectivesyncdialog.cpp')
-rw-r--r--src/gui/selectivesyncdialog.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gui/selectivesyncdialog.cpp b/src/gui/selectivesyncdialog.cpp
index b05bff124..310bc442a 100644
--- a/src/gui/selectivesyncdialog.cpp
+++ b/src/gui/selectivesyncdialog.cpp
@@ -303,7 +303,7 @@ qint64 SelectiveSyncTreeView::estimatedSize(QTreeWidgetItem* root)
SelectiveSyncDialog::SelectiveSyncDialog(AccountPtr account, Folder* folder, QWidget* parent, Qt::WindowFlags f)
: QDialog(parent, f), _folder(folder)
{
- init(account);
+ init(account, tr("Unchecked folders will be <b>removed</b> from your local file system and will not be synchronized to this computer anymore"));
_treeView->setFolderInfo(_folder->remotePath(), _folder->alias(), _folder->selectiveSyncBlackList());
// Make sure we don't get crashes if the folder is destroyed while we are still open
@@ -313,16 +313,19 @@ SelectiveSyncDialog::SelectiveSyncDialog(AccountPtr account, Folder* folder, QWi
SelectiveSyncDialog::SelectiveSyncDialog(AccountPtr account, const QStringList& blacklist, QWidget* parent, Qt::WindowFlags f)
: QDialog(parent, f), _folder(0)
{
- init(account);
+ init(account,
+ Theme::instance()->wizardSelectiveSyncDefaultNothing() ?
+ tr("Choose What to Sync: Select remote subfolders you wish to synchronize.") :
+ tr("Choose What to Sync: Deselect remote subfolders you do not wish to synchronize."));
_treeView->setFolderInfo(QString(), QString(), blacklist);
}
-void SelectiveSyncDialog::init(AccountPtr account)
+void SelectiveSyncDialog::init(const AccountPtr &account, const QString &labelText)
{
setWindowTitle(tr("Choose What to Sync"));
QVBoxLayout *layout = new QVBoxLayout(this);
_treeView = new SelectiveSyncTreeView(account, this);
- QLabel *label = new QLabel(tr("Unchecked folders will be <b>removed</b> from your local file system and will not be synchronized to this computer anymore"));
+ auto label = new QLabel(labelText);
label->setWordWrap(true);
layout->addWidget(label);
layout->addWidget(_treeView);