diff -r 7a96bd401351 -r 21379539d952 frameobj.cpp --- a/frameobj.cpp Sun Jan 30 12:58:47 2005 +0000 +++ b/frameobj.cpp Wed Jul 05 10:29:54 2006 +0000 @@ -11,7 +11,7 @@ init (); } -FrameObj::FrameObj(QCanvas* c) :MapObj(c) +FrameObj::FrameObj(Q3Canvas* c) :MapObj(c) { // cout << "Const FrameObj\n"; init (); @@ -117,16 +117,13 @@ break; case Rectangle: border=10; - rectFrame = new QCanvasRectangle (canvas); + rectFrame = new Q3CanvasRectangle (canvas); rectFrame->setZ(Z_FRAME); rectFrame->setBrush( QColor("white") ); rectFrame->setPen( QPen(QColor("black") )); - if (visible) - rectFrame->show(); - else - rectFrame->hide(); break; } + setVisibility (visible); } } @@ -141,6 +138,16 @@ void FrameObj::setVisibility (bool v) { MapObj::setVisibility(v); - setFrameType (type); // changes on visibility depend on type... + switch (type) + { + case NoFrame: + break; + case Rectangle: + if (visible) + rectFrame->show(); + else + rectFrame->hide(); + break; + } }