forked from qt-creator/qt-creator
Added possibility to translate "Add" and "Remove" buttons and "Clear system environment" checkbox in build settings of project.
Merge-request: 1141 Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com>
This commit is contained in:
committed by
Daniel Molkentin
parent
1010ea5251
commit
2c9f0e2d91
@@ -45,7 +45,7 @@ CMakeBuildEnvironmentWidget::CMakeBuildEnvironmentWidget(CMakeProject *project)
|
||||
QVBoxLayout *vbox = new QVBoxLayout(this);
|
||||
vbox->setMargin(0);
|
||||
m_clearSystemEnvironmentCheckBox = new QCheckBox(this);
|
||||
m_clearSystemEnvironmentCheckBox->setText("Clear system environment");
|
||||
m_clearSystemEnvironmentCheckBox->setText(tr("Clear system environment"));
|
||||
|
||||
m_buildEnvironmentWidget = new ProjectExplorer::EnvironmentWidget(this, m_clearSystemEnvironmentCheckBox);
|
||||
vbox->addWidget(m_buildEnvironmentWidget);
|
||||
|
||||
@@ -146,13 +146,13 @@ BuildSettingsWidget::BuildSettingsWidget(Project *project)
|
||||
hbox->addWidget(m_buildConfigurationComboBox);
|
||||
|
||||
m_addButton = new QPushButton(this);
|
||||
m_addButton->setText("Add");
|
||||
m_addButton->setText(tr("Add"));
|
||||
m_addButton->setIcon(QIcon(Core::Constants::ICON_PLUS));
|
||||
m_addButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
hbox->addWidget(m_addButton);
|
||||
|
||||
m_removeButton = new QPushButton(this);
|
||||
m_removeButton->setText("Remove");
|
||||
m_removeButton->setText(tr("Remove"));
|
||||
m_removeButton->setIcon(QIcon(Core::Constants::ICON_MINUS));
|
||||
m_removeButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
hbox->addWidget(m_removeButton);
|
||||
|
||||
@@ -46,7 +46,7 @@ Qt4BuildEnvironmentWidget::Qt4BuildEnvironmentWidget(Qt4Project *project)
|
||||
vbox->setMargin(0);
|
||||
|
||||
m_clearSystemEnvironmentCheckBox = new QCheckBox(this);
|
||||
m_clearSystemEnvironmentCheckBox->setText("Clear system environment");
|
||||
m_clearSystemEnvironmentCheckBox->setText(tr("Clear system environment"));
|
||||
|
||||
m_buildEnvironmentWidget = new ProjectExplorer::EnvironmentWidget(this, m_clearSystemEnvironmentCheckBox);
|
||||
vbox->addWidget(m_buildEnvironmentWidget);
|
||||
|
||||
Reference in New Issue
Block a user