translate items of context menu of tree view

This commit is contained in:
wmayer 2016-08-05 19:20:26 +02:00
parent 1c8734de53
commit 153efa048d

View File

@ -711,6 +711,15 @@ void TreeWidget::changeEvent(QEvent *e)
if (e->type() == QEvent::LanguageChange) {
this->headerItem()->setText(0, tr("Labels & Attributes"));
this->rootItem->setText(0, tr("Application"));
this->createGroupAction->setText(tr("Create group..."));
this->createGroupAction->setStatusTip(tr("Create a group"));
this->relabelObjectAction->setText(tr("Rename"));
this->relabelObjectAction->setStatusTip(tr("Rename object"));
this->finishEditingAction->setText(tr("Finish editing"));
this->finishEditingAction->setStatusTip(tr("Finish editing object"));
}
QTreeWidget::changeEvent(e);