diff -r 325958acb69b -r 494e8f40f0f7 flagrowobj.cpp --- a/flagrowobj.cpp Mon Oct 10 11:20:25 2005 +0000 +++ b/flagrowobj.cpp Tue Jan 03 09:44:41 2006 +0000 @@ -86,8 +86,8 @@ void FlagRowObj::positionBBox() { - bbox.setX (absPos.x() ); - bbox.setY (absPos.y() ); + bbox.moveTopLeft(absPos ); + clickBox.moveTopLeft(absPos ); } void FlagRowObj::calcBBoxSize() @@ -104,15 +104,19 @@ if (size.height() > boxsize.height() ) boxsize.setHeight(size.height() ); } - bbox.setSize (QSize(boxsize.width(), boxsize.height() )); + bbox.setSize (boxsize); + clickBox.setSize (boxsize); } QString FlagRowObj::getFlagName (const QPoint &p) { - if (!inBBox (p)) return ""; + if (!inBox (p)) return ""; FlagObj *fo; for (fo=flag.first();fo; fo=flag.next() ) - if (fo->inBBox (p)) return fo->getName(); + { + cout << " "<getName()<inBox (p)) return fo->getName(); + } return ""; @@ -178,7 +182,6 @@ fo->activate(); fo->setVisibility (visible); calcBBoxSize(); - positionBBox(); } else qWarning ("FlagRowObj ("+name+")::activate ("+foname+") failed - could not find it in parentRow"); }