mapeditor.h
changeset 837 5ecd0462f76b
parent 834 0fad394bc330
child 841 46553c106c52
     1.1 --- a/mapeditor.h	Mon Mar 15 15:32:37 2010 +0000
     1.2 +++ b/mapeditor.h	Thu Mar 18 11:31:02 2010 +0000
     1.3 @@ -4,7 +4,7 @@
     1.4  #include <QGraphicsView>
     1.5  #include <QItemSelectionModel>
     1.6  
     1.7 -#include <QtPropertyAnimation>	
     1.8 +#include <QPropertyAnimation>	
     1.9  
    1.10  #include "attribute.h"
    1.11  #include "ornamentedobj.h"
    1.12 @@ -31,7 +31,7 @@
    1.13  protected:
    1.14  	QPointF scrollBarPos;
    1.15  	QPointF scrollBarPosTarget;
    1.16 -	QtPropertyAnimation scrollBarPosAnimation;
    1.17 +	QPropertyAnimation scrollBarPosAnimation;
    1.18  public:
    1.19  	void scrollTo (const QModelIndex &index);
    1.20  	void setScrollBarPosTarget (const QRectF &rect);	//!  ensureVisible of rect
    1.21 @@ -42,7 +42,7 @@
    1.22  protected:
    1.23  	qreal zoomFactor;
    1.24  	qreal zoomFactorTarget;
    1.25 -	QtPropertyAnimation zoomAnimation;
    1.26 +	QPropertyAnimation zoomAnimation;
    1.27  public:
    1.28  	void setZoomFactorTarget (const qreal &zf);
    1.29  	qreal getZoomFactorTarget();
    1.30 @@ -56,6 +56,7 @@
    1.31  	void setAntiAlias (bool);	//!< Set or unset antialiasing
    1.32  	void setSmoothPixmap(bool); //!< Set or unset smoothing of pixmaps
    1.33  	void setHideTmp (bool);		//!< Hide parts temporary
    1.34 +public slots:	
    1.35  	void autoLayout();			//!< Auto layout of map by using collision detection
    1.36  public:
    1.37  	TreeItem *findMapItem (QPointF p,TreeItem *exclude);	//! find item in map at position p. Ignore item exclude