Browse Source

Improve wordings in "Auto download torrent" section

adaptive-webui-19844
Chocobo1 9 years ago
parent
commit
6ea89bf621
  1. 4
      src/base/scanfoldersmodel.cpp
  2. 4
      src/gui/options.ui
  3. 6
      src/gui/scanfoldersdelegate.cpp

4
src/base/scanfoldersmodel.cpp

@ -153,10 +153,10 @@ QVariant ScanFoldersModel::headerData(int section, Qt::Orientation orientation, @@ -153,10 +153,10 @@ QVariant ScanFoldersModel::headerData(int section, Qt::Orientation orientation,
switch (section) {
case WATCH:
title = tr("Watched Folder");
title = tr("Monitored Folder");
break;
case DOWNLOAD:
title = tr("Save Files to");
title = tr("Override Save Location");
break;
}

4
src/gui/options.ui

@ -1248,7 +1248,7 @@ @@ -1248,7 +1248,7 @@
<item>
<widget class="QPushButton" name="addScanFolderButton">
<property name="text">
<string>Add folder...</string>
<string>Add entry</string>
</property>
</widget>
</item>
@ -1258,7 +1258,7 @@ @@ -1258,7 +1258,7 @@
<bool>false</bool>
</property>
<property name="text">
<string>Remove folder</string>
<string>Remove entry</string>
</property>
</widget>
</item>

6
src/gui/scanfoldersdelegate.cpp

@ -63,8 +63,8 @@ QWidget *ScanFoldersDelegate::createEditor(QWidget *parent, const QStyleOptionVi @@ -63,8 +63,8 @@ QWidget *ScanFoldersDelegate::createEditor(QWidget *parent, const QStyleOptionVi
QComboBox* editor = new QComboBox(parent);
editor->setFocusPolicy(Qt::StrongFocus);
editor->addItem(tr("Watch Folder"));
editor->addItem(tr("Default Folder"));
editor->addItem(tr("Same as monitored folder"));
editor->addItem(tr("Default save location"));
editor->addItem(tr("Browse..."));
if (index.data(Qt::UserRole).toInt() == ScanFoldersModel::CUSTOM_LOCATION) {
editor->insertSeparator(3);
@ -99,7 +99,7 @@ void ScanFoldersDelegate::setModelData(QWidget *editor, QAbstractItemModel *mode @@ -99,7 +99,7 @@ void ScanFoldersDelegate::setModelData(QWidget *editor, QAbstractItemModel *mode
model->setData(
index,
QFileDialog::getExistingDirectory(
0, tr("Choose save path"),
0, tr("Select save location"),
index.data(Qt::UserRole).toInt() == ScanFoldersModel::CUSTOM_LOCATION ?
index.data().toString() :
BitTorrent::Session::instance()->defaultSavePath()),

Loading…
Cancel
Save