NOISSUE Replace Quality with Completeness in language widget

Completeness does no imply quality.
This commit is contained in:
Petr Mrázek 2019-01-14 01:36:04 +01:00
parent c08053d8b8
commit 7436c94976
2 changed files with 6 additions and 15 deletions

View File

@ -349,11 +349,6 @@ bool SimpleModList::dropMimeData(const QMimeData* data, Qt::DropAction action, i
// files dropped from outside? // files dropped from outside?
if (data->hasUrls()) if (data->hasUrls())
{ {
bool was_watching = is_watching;
if (was_watching)
{
stopWatching();
}
auto urls = data->urls(); auto urls = data->urls();
for (auto url : urls) for (auto url : urls)
{ {
@ -366,10 +361,6 @@ bool SimpleModList::dropMimeData(const QMimeData* data, Qt::DropAction action, i
// FIXME: handle errors here // FIXME: handle errors here
installMod(url.toLocalFile()); installMod(url.toLocalFile());
} }
if (was_watching)
{
startWatching();
}
return true; return true;
} }
return false; return false;

View File

@ -308,7 +308,7 @@ namespace {
enum class Column enum class Column
{ {
Language, Language,
Quality Completeness
}; };
} }
@ -335,7 +335,7 @@ QVariant TranslationsModel::data(const QModelIndex& index, int role) const
{ {
return d->m_languages[row].locale.nativeLanguageName(); return d->m_languages[row].locale.nativeLanguageName();
} }
case Column::Quality: case Column::Completeness:
{ {
QString text; QString text;
text.sprintf("%3.1f %%", lang.percentTranslated()); text.sprintf("%3.1f %%", lang.percentTranslated());
@ -365,9 +365,9 @@ QVariant TranslationsModel::headerData(int section, Qt::Orientation orientation,
{ {
return tr("Language"); return tr("Language");
} }
case Column::Quality: case Column::Completeness:
{ {
return tr("Quality"); return tr("Completeness");
} }
} }
} }
@ -379,9 +379,9 @@ QVariant TranslationsModel::headerData(int section, Qt::Orientation orientation,
{ {
return tr("The native language name."); return tr("The native language name.");
} }
case Column::Quality: case Column::Completeness:
{ {
return tr("Quality is the percentage of fully translated strings, not counting automatically guessed ones."); return tr("Completeness is the percentage of fully translated strings, not counting automatically guessed ones.");
} }
} }
} }