forked from qt-creator/qt-creator
ProjectExplorer: Be transparent about what the "Force UTF-8" option does
... in the environment kit aspect. There is no reason to hide that from the user. Change-Id: Ia7e3bdccededb538a8615772d9096eb41e8d38b5 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -229,7 +229,7 @@ private:
|
|||||||
|
|
||||||
void refresh() override
|
void refresh() override
|
||||||
{
|
{
|
||||||
const EnvironmentItems changes = envWithoutMSVCEnglishEnforcement();
|
const EnvironmentItems changes = EnvironmentKitAspect::environmentChanges(kit());
|
||||||
const QString shortSummary = EnvironmentItem::toStringList(changes).join("; ");
|
const QString shortSummary = EnvironmentItem::toStringList(changes).join("; ");
|
||||||
m_summaryLabel->setText(shortSummary.isEmpty() ? Tr::tr("No changes to apply.") : shortSummary);
|
m_summaryLabel->setText(shortSummary.isEmpty() ? Tr::tr("No changes to apply.") : shortSummary);
|
||||||
}
|
}
|
||||||
@@ -240,10 +240,8 @@ private:
|
|||||||
EnvironmentDialog::Polisher polisher = [expander](QWidget *w) {
|
EnvironmentDialog::Polisher polisher = [expander](QWidget *w) {
|
||||||
VariableChooser::addSupportForChildWidgets(w, expander);
|
VariableChooser::addSupportForChildWidgets(w, expander);
|
||||||
};
|
};
|
||||||
auto changes = EnvironmentDialog::getEnvironmentItems(m_summaryLabel,
|
auto changes = EnvironmentDialog::getEnvironmentItems(
|
||||||
envWithoutMSVCEnglishEnforcement(),
|
m_summaryLabel, EnvironmentKitAspect::environmentChanges(kit()), QString(), polisher);
|
||||||
QString(),
|
|
||||||
polisher);
|
|
||||||
if (!changes)
|
if (!changes)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@@ -258,16 +256,6 @@ private:
|
|||||||
EnvironmentKitAspect::setEnvironmentChanges(kit(), *changes);
|
EnvironmentKitAspect::setEnvironmentChanges(kit(), *changes);
|
||||||
}
|
}
|
||||||
|
|
||||||
EnvironmentItems envWithoutMSVCEnglishEnforcement() const
|
|
||||||
{
|
|
||||||
EnvironmentItems changes = EnvironmentKitAspect::environmentChanges(kit());
|
|
||||||
|
|
||||||
if (HostOsInfo::isWindowsHost())
|
|
||||||
changes.removeAll(forceMSVCEnglishItem());
|
|
||||||
|
|
||||||
return changes;
|
|
||||||
}
|
|
||||||
|
|
||||||
void initMSVCOutputSwitch(QVBoxLayout *layout)
|
void initMSVCOutputSwitch(QVBoxLayout *layout)
|
||||||
{
|
{
|
||||||
m_vslangCheckbox = new QCheckBox(Tr::tr("Force UTF-8 MSVC compiler output"));
|
m_vslangCheckbox = new QCheckBox(Tr::tr("Force UTF-8 MSVC compiler output"));
|
||||||
|
Reference in New Issue
Block a user