diff --git a/src/Gui/Tree.cpp b/src/Gui/Tree.cpp index 9dcb8321b2..188819d91d 100644 --- a/src/Gui/Tree.cpp +++ b/src/Gui/Tree.cpp @@ -36,6 +36,7 @@ # include # include # include +# include # include #endif @@ -1313,7 +1314,12 @@ void DocumentObjectItem::displayStatusInfo() if ( Obj->mustExecute() == 1 ) info += QString::fromAscii(" (but must be executed)"); getMainWindow()->showMessage( info ); - + + if (Obj->isError()) { + QTreeWidget* tree = this->treeWidget(); + QPoint pos = tree->visualItemRect(this).topRight(); + QToolTip::showText(tree->mapToGlobal(pos), info); + } } void DocumentObjectItem::setExpandedStatus(bool on)