diff -r 8f987e376035 -r 0bba81dde1bc mapitem.cpp --- a/mapitem.cpp Mon Jan 04 20:36:06 2010 +0000 +++ b/mapitem.cpp Fri Feb 19 13:47:03 2010 +0000 @@ -3,6 +3,8 @@ #include "linkablemapobj.h" #include "ornamentedobj.h" +#include + MapItem::MapItem() { init(); @@ -62,7 +64,12 @@ void MapItem::setHideLinkUnselected (bool b) { hideLinkUnselected=b; - if (lmo) lmo->setHideLinkUnselected(); + if (lmo) + { + //lmo->setHideLinkUnselected(); + lmo->setVisibility (lmo->isVisibleObj()); + lmo->updateLinkGeometry(); + } } bool MapItem::getHideLinkUnselected() @@ -104,6 +111,17 @@ return s; } +QRectF MapItem::getBBoxURLFlag () +{ + QStringList list=systemFlags.activeFlagNames().filter ("system-url"); + if (list.count()>1) + { + qWarning()<<"MapItem::getBBoxURLFlag found more than one system-url*"; + return QRectF (); + } + return getBBoxFlag (list.first()); +} + QRectF MapItem::getBBoxFlag (const QString &fname) { if (lmo)