X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fcontainer.cpp;h=da491f617b8366ff71bacf1bba6b0ebda26a3bef;hb=bb8d0671717bac2c5350e34024273381be1d8175;hp=757828aad73e064af821d04816807a82fa93702a;hpb=70297ac8ec7453e4196f4b58056bcfe4b04f2aca;p=architektonas diff --git a/src/container.cpp b/src/container.cpp index 757828a..da491f6 100644 --- a/src/container.cpp +++ b/src/container.cpp @@ -25,6 +25,7 @@ Container::Container(Vector p1, Object * p/*= NULL*/): Object(p1, p), dragging(false), draggingHandle1(false), draggingHandle2(false)//, needUpdate(false) { type = OTContainer; + state = OSInactive; } @@ -34,6 +35,7 @@ Container::Container(const Container & copy): Object(copy.position, copy.parent) // Use overloaded assignment operator *this = copy; type = OTContainer; + state = OSInactive; } @@ -85,7 +87,7 @@ Container & Container::operator=(const Container & from) painter->SetPen(QPen(Qt::blue, 2.0, Qt::DashLine)); painter->SetBrush(QBrush(Qt::NoBrush)); - painter->DrawRect(boundary); + painter->DrawPaddedRect(boundary); } }