From c2bf2b0be92ee96b14e598734dbdec6a800a4783 Mon Sep 17 00:00:00 2001 From: Vadim Kurland Date: Sat, 19 Dec 2009 05:05:48 +0000 Subject: [PATCH] fixes #952 Add interface label to the tooltip --- build_num | 2 +- src/gui/FWObjectPropertiesFactory.cpp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/build_num b/build_num index cc0566309..fca33519c 100644 --- a/build_num +++ b/build_num @@ -1 +1 @@ -#define BUILD_NUM 2201 +#define BUILD_NUM 2202 diff --git a/src/gui/FWObjectPropertiesFactory.cpp b/src/gui/FWObjectPropertiesFactory.cpp index f81eb0a13..2e75fdd1d 100644 --- a/src/gui/FWObjectPropertiesFactory.cpp +++ b/src/gui/FWObjectPropertiesFactory.cpp @@ -374,6 +374,8 @@ QString FWObjectPropertiesFactory::getObjectProperties(FWObject *obj) } else if (Interface::isA(obj)) { Interface *intf = Interface::cast(obj); + str << "Label: " + << QString::fromUtf8(intf->getLabel().c_str()) << "
"; FWObjectTypedChildIterator j = obj->findByType(IPv4::TYPENAME); for ( ; j!=j.end(); ++j) { @@ -642,6 +644,9 @@ QString FWObjectPropertiesFactory::getObjectPropertiesDetailed(FWObject *obj, { Interface *intf = Interface::cast(obj); //str += QObject::tr("Path: ")+ path +"
\n"; + str += "Label: "; + str += QString::fromUtf8(intf->getLabel().c_str()); + str += "
"; FWObjectTypedChildIterator j = obj->findByType(IPv4::TYPENAME); for ( ; j!=j.end(); ++j)