Some code cleanup and experimental stuff to support animations later
authorinsilmaril
Mon, 05 May 2008 13:46:42 +0000
changeset 692c5e3cb54b9db
parent 691 058b0e70f5ec
child 693 07fead1e540b
Some code cleanup and experimental stuff to support animations later
mapeditor.h
mapobj.cpp
mapobj.h
     1.1 --- a/mapeditor.h	Mon May 05 13:46:42 2008 +0000
     1.2 +++ b/mapeditor.h	Mon May 05 13:46:42 2008 +0000
     1.3 @@ -381,7 +381,6 @@
     1.4  	void dragLeaveEvent (QDragLeaveEvent *);
     1.5  	void dropEvent (QDropEvent *);
     1.6  
     1.7 -	void timerEvent(QTimerEvent *event);
     1.8  
     1.9  protected:
    1.10  	void sendSelection();
    1.11 @@ -489,10 +488,6 @@
    1.12  	int port;					// server port of this client
    1.13  	void displayClientError(QAbstractSocket::SocketError socketError);
    1.14  
    1.15 -
    1.16 -	// Animation data **experimental**
    1.17 -	int timerId;				// animation timer
    1.18 -	QList <MapObj*> animObjList;// list with animated objects
    1.19  };
    1.20  #endif
    1.21  
     2.1 --- a/mapobj.cpp	Mon May 05 13:46:42 2008 +0000
     2.2 +++ b/mapobj.cpp	Mon May 05 13:46:42 2008 +0000
     2.3 @@ -129,6 +129,3 @@
     2.4      visible=v;
     2.5  }
     2.6  
     2.7 -void MapObj::animate()
     2.8 -{
     2.9 -}
     3.1 --- a/mapobj.h	Mon May 05 13:46:42 2008 +0000
     3.2 +++ b/mapobj.h	Mon May 05 13:46:42 2008 +0000
     3.3 @@ -43,7 +43,6 @@
     3.4      virtual void setVisibility(bool);
     3.5      virtual void positionBBox()=0;       
     3.6  	virtual void calcBBoxSize()=0;
     3.7 -	virtual void animate();						// called by timer for animated objects
     3.8  protected:  
     3.9      QGraphicsScene* scene;
    3.10      QRectF bbox;									// bounding box of MO itself