mapcenterobj.cpp
changeset 86 0ed77eb5d1cd
parent 0 7a96bd401351
child 91 855c486b9360
     1.1 --- a/mapcenterobj.cpp	Sun Jan 30 12:58:47 2005 +0000
     1.2 +++ b/mapcenterobj.cpp	Sun Jan 30 23:28:08 2005 +0000
     1.3 @@ -32,6 +32,7 @@
     1.4  
     1.5  void MapCenterObj::init () 
     1.6  {
     1.7 +	BranchObj::init();
     1.8      orientation=OrientUndef;
     1.9      absPos=QPoint (canvas->width()/2, canvas->height()/2);
    1.10  
    1.11 @@ -39,15 +40,9 @@
    1.12  	QFont font ("Sans Serif,16,-1,5,50,0,0,0,0,0");		
    1.13  	heading->setFont(font);
    1.14  
    1.15 -	branch.setAutoDelete (TRUE);
    1.16 -	floatimage.setAutoDelete (TRUE);
    1.17 -
    1.18  	move (absPos.x(), absPos.y() );
    1.19  	depth=0;
    1.20  
    1.21 -	scrolled=false;
    1.22 -	tmpUnscrolled=false;
    1.23 -
    1.24  	frame->setFrameType (Rectangle);
    1.25  }
    1.26  
    1.27 @@ -233,3 +228,4 @@
    1.28  {
    1.29  	return QDate::currentDate().toString ("yyyy-MM-dd");
    1.30  }
    1.31 +