Version 1.7.12
authorinsilmaril
Thu, 23 Mar 2006 12:38:54 +0000
changeset 25842c8cf6dd1c3
parent 257 199f2626fe70
child 259 359217d2a49b
Version 1.7.12
floatimageobj.cpp
     1.1 --- a/floatimageobj.cpp	Thu Mar 23 12:38:54 2006 +0000
     1.2 +++ b/floatimageobj.cpp	Thu Mar 23 12:38:54 2006 +0000
     1.3 @@ -25,7 +25,7 @@
     1.4      depth=-1;
     1.5  }
     1.6  
     1.7 -FloatImageObj::FloatImageObj (QCanvas* c, LinkableMapObj* p):FloatObj(c,p)
     1.8 +FloatImageObj::FloatImageObj (QCanvas* c, OrnamentedObj* p):FloatObj(c,p)
     1.9  {
    1.10   //   cout << "Const FloatImageObj (c,p)\n";
    1.11      init();
    1.12 @@ -49,6 +49,9 @@
    1.13  	filetype="";
    1.14  	saveInMap=true;
    1.15  	useRelPos=true;
    1.16 +
    1.17 +	//Hide flags
    1.18 +	systemFlags->setShowFlags(false);
    1.19  }
    1.20  
    1.21  void FloatImageObj::copy (FloatImageObj* other)
    1.22 @@ -114,7 +117,7 @@
    1.23  
    1.24  void FloatImageObj::setVisibility(bool v)
    1.25  {
    1.26 -    LinkableMapObj::setVisibility(v);
    1.27 +    OrnamentedObj::setVisibility(v);
    1.28  	if (v)
    1.29  	    icon->setVisibility(true);
    1.30  	else
    1.31 @@ -145,6 +148,8 @@
    1.32  
    1.33  QString FloatImageObj::saveToDir (const QString &tmpdir,const QString &prefix, const QPoint &p)
    1.34  {
    1.35 +	if (hidden) return "";
    1.36 +
    1.37  	saveCounter++;
    1.38  	
    1.39  	QString useOrientAttr;