fixes #952 Add interface label to the tooltip

This commit is contained in:
Vadim Kurland
2009-12-19 05:05:48 +00:00
parent c1f4a77c1d
commit c2bf2b0be9
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
#define BUILD_NUM 2201
#define BUILD_NUM 2202
+5
View File
@@ -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()) << "<br>";
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("<b>Path:</b> ")+ path +"<br>\n";
str += "<b>Label: </b>";
str += QString::fromUtf8(intf->getLabel().c_str());
str += "<br>";
FWObjectTypedChildIterator j = obj->findByType(IPv4::TYPENAME);
for ( ; j!=j.end(); ++j)