diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2009-06-16 12:34:23 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2009-06-16 12:34:23 +0200 |
commit | e86e7f960d4314571e80ff103cf992444d257c6d (patch) | |
tree | ab177a3e5ee1708126cffdd1d4b871072562572b /src/plugins/projectexplorer | |
parent | d710333c8cfd98411a0d5117506fad1b186ee6fe (diff) | |
download | qt-creator-e86e7f960d4314571e80ff103cf992444d257c6d.tar.gz |
Fixed tr()-glitches, updated German translation.
Acked-by: dt <qtc-committer@nokia.com>
Diffstat (limited to 'src/plugins/projectexplorer')
-rw-r--r-- | src/plugins/projectexplorer/environmenteditmodel.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/projectexplorer/environmenteditmodel.cpp b/src/plugins/projectexplorer/environmenteditmodel.cpp index 36cb7a3aa6..0a2ceb20fd 100644 --- a/src/plugins/projectexplorer/environmenteditmodel.cpp +++ b/src/plugins/projectexplorer/environmenteditmodel.cpp @@ -55,7 +55,7 @@ void EnvironmentModel::updateResultEnvironment() m_resultEnvironment.modify(m_items); foreach (const EnvironmentItem &item, m_items) { if (item.unset) { - m_resultEnvironment.set(item.name, "<UNSET>"); + m_resultEnvironment.set(item.name, QLatin1String("<UNSET>")); } } } @@ -127,7 +127,7 @@ QVariant EnvironmentModel::data(const QModelIndex &index, int role) const return m_resultEnvironment.value(m_resultEnvironment.constBegin() + index.row()); } else { if (m_items.at(index.row()).unset) - return "<UNSET>"; + return QLatin1String("<UNSET>"); else return m_items.at(index.row()).value; } @@ -285,7 +285,7 @@ bool EnvironmentModel::setData(const QModelIndex &index, const QVariant &value, QModelIndex EnvironmentModel::addVariable() { - const QString &name = "<VARIABLE>"; + const QString &name = QLatin1String("<VARIABLE>"); if (m_mergedEnvironments) { int i = findInResult(name); if (i != -1) @@ -296,7 +296,7 @@ QModelIndex EnvironmentModel::addVariable() return index(i, 0, QModelIndex()); } // Don't exist, really add them - return addVariable(EnvironmentItem(name, "<VALUE>")); + return addVariable(EnvironmentItem(name, QLatin1String("<VALUE>"))); } QModelIndex EnvironmentModel::addVariable(const EnvironmentItem &item) @@ -442,21 +442,21 @@ EnvironmentWidget::EnvironmentWidget(QWidget *parent) QVBoxLayout *verticalLayout_2 = new QVBoxLayout(); m_editButton = new QPushButton(this); - m_editButton->setText("&Edit"); + m_editButton->setText(tr("&Edit")); verticalLayout_2->addWidget(m_editButton); m_addButton = new QPushButton(this); - m_addButton->setText("&Add"); + m_addButton->setText(tr("&Add")); verticalLayout_2->addWidget(m_addButton); m_removeButton = new QPushButton(this); m_removeButton->setEnabled(false); - m_removeButton->setText("&Reset"); + m_removeButton->setText(tr("&Reset")); verticalLayout_2->addWidget(m_removeButton); m_unsetButton = new QPushButton(this); m_unsetButton->setEnabled(false); - m_unsetButton->setText("&Unset"); + m_unsetButton->setText(tr("&Unset")); verticalLayout_2->addWidget(m_unsetButton); QSpacerItem *verticalSpacer = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding); |