1.1 --- a/mapitem.cpp Wed Feb 10 13:48:42 2010 +0000
1.2 +++ b/mapitem.cpp Fri Feb 19 13:47:03 2010 +0000
1.3 @@ -3,6 +3,8 @@
1.4 #include "linkablemapobj.h"
1.5 #include "ornamentedobj.h"
1.6
1.7 +#include <QDebug>
1.8 +
1.9 MapItem::MapItem()
1.10 {
1.11 init();
1.12 @@ -62,7 +64,12 @@
1.13 void MapItem::setHideLinkUnselected (bool b)
1.14 {
1.15 hideLinkUnselected=b;
1.16 - if (lmo) lmo->setHideLinkUnselected();
1.17 + if (lmo)
1.18 + {
1.19 + //lmo->setHideLinkUnselected();
1.20 + lmo->setVisibility (lmo->isVisibleObj());
1.21 + lmo->updateLinkGeometry();
1.22 + }
1.23 }
1.24
1.25 bool MapItem::getHideLinkUnselected()
1.26 @@ -104,6 +111,17 @@
1.27 return s;
1.28 }
1.29
1.30 +QRectF MapItem::getBBoxURLFlag ()
1.31 +{
1.32 + QStringList list=systemFlags.activeFlagNames().filter ("system-url");
1.33 + if (list.count()>1)
1.34 + {
1.35 + qWarning()<<"MapItem::getBBoxURLFlag found more than one system-url*";
1.36 + return QRectF ();
1.37 + }
1.38 + return getBBoxFlag (list.first());
1.39 +}
1.40 +
1.41 QRectF MapItem::getBBoxFlag (const QString &fname)
1.42 {
1.43 if (lmo)