From b2f8a4ed2a74c13f2966f7cb3e2e986cf7dee8bf Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 30 Dec 2014 22:44:29 +0100 Subject: [PATCH] + fixes #0001723: Display errormessage in tree in tooltip --- src/Gui/Tree.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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)