issue #0002031: show object name when hovering tree view

This commit is contained in:
wmayer 2017-02-05 09:56:35 +01:00
parent 36b7e0338b
commit 60ae927fcb

View File

@ -1524,7 +1524,10 @@ void DocumentObjectItem::displayStatusInfo()
QString info = QString::fromLatin1(Obj->getStatusString());
if ( Obj->mustExecute() == 1 )
info += QString::fromLatin1(" (but must be executed)");
getMainWindow()->showMessage( info );
QString status = TreeWidget::tr("%1, Internal name: %2")
.arg(info)
.arg(QString::fromLatin1(Obj->getNameInDocument()));
getMainWindow()->showMessage(status);
if (Obj->isError()) {
QTreeWidget* tree = this->treeWidget();