diff -r 1591614dbf89 -r 31a1a9e11046 hgwidgets_plat/ganeswidgets_api/inc/hggrid.h --- a/hgwidgets_plat/ganeswidgets_api/inc/hggrid.h Fri Sep 17 08:35:50 2010 +0300 +++ b/hgwidgets_plat/ganeswidgets_api/inc/hggrid.h Mon Oct 04 02:07:13 2010 +0300 @@ -26,6 +26,8 @@ { Q_OBJECT Q_PROPERTY(bool effect3dEnabled READ effect3dEnabled WRITE setEffect3dEnabled ) + Q_PROPERTY(bool pinchEnabled READ pinchEnabled WRITE setPinchEnabled ) + Q_PROPERTY(int rowCount READ rowCount WRITE setRowCount ) public: explicit HgGrid(Qt::Orientation scrollDirection, QGraphicsItem *parent = 0 ); @@ -34,6 +36,19 @@ bool effect3dEnabled() const; void setEffect3dEnabled(bool effect3dEnabled); + bool pinchEnabled() const; + void setPinchEnabled(bool pinchEnabled); + + void setPinchLevels(QPair levels, Qt::Orientation scrollDirection); + QPair pinchLevels(Qt::Orientation scrollDirection) const; + + void setRowCount(int count, Qt::Orientation scrollDirection = Qt::Horizontal); + int rowCount(Qt::Orientation scrollDirection = Qt::Horizontal) const; + +signals: + + void emptySpacePressed(); + protected: HgGrid(Qt::Orientation scrollDirection, HgGridPrivate &dd, QGraphicsItem *parent);