calendarui/views/inc/calenmonthgrid.h
changeset 32 ea672fcb0ea0
parent 26 a949c2543c15
child 58 ef813d54df51
equal deleted inserted replaced
26:a949c2543c15 32:ea672fcb0ea0
    64 	void setCurrentIdex(int index);
    64 	void setCurrentIdex(int index);
    65 	int getCurrentIndex();
    65 	int getCurrentIndex();
    66 
    66 
    67 protected:
    67 protected:
    68 	void orientationChanged(Qt::Orientation newOrientation);
    68 	void orientationChanged(Qt::Orientation newOrientation);
       
    69 	void gestureEvent(QGestureEvent *event);
    69 		
    70 		
    70 private:
    71 private:
       
    72 	void downGesture();
       
    73     void upGesture();
    71 	void handlePrependingRows(QList<CalenMonthData > &monthDataList);
    74 	void handlePrependingRows(QList<CalenMonthData > &monthDataList);
    72 	void handleAppendingRows(QList<CalenMonthData > &monthDataList);
    75 	void handleAppendingRows(QList<CalenMonthData > &monthDataList);
    73 	void handlePanGestureFinished();
    76 	void handlePanGestureFinished();
    74 	void mousePressEvent(QGraphicsSceneMouseEvent* event);
    77 	void mousePressEvent(QGraphicsSceneMouseEvent* event);
    75 	void mouseReleaseEvent(QGraphicsSceneMouseEvent* event);
    78 	void mouseReleaseEvent(QGraphicsSceneMouseEvent* event);
    81 public slots:
    84 public slots:
    82 	void scrollingFinished();
    85 	void scrollingFinished();
    83 	void prependRows();
    86 	void prependRows();
    84 	void appendRows();
    87 	void appendRows();
    85 	void itemActivated(const QModelIndex &index);
    88 	void itemActivated(const QModelIndex &index);
    86 
       
    87 protected slots:
       
    88 	void downGesture(int value);
       
    89 	void upGesture(int value);
       
    90 	void panGesture(const QPointF &delta);
       
    91 
    89 
    92 private:
    90 private:
    93 	QStandardItemModel *mModel;
    91 	QStandardItemModel *mModel;
    94 	QList<CalenMonthData> mMonthDataArray;
    92 	QList<CalenMonthData> mMonthDataArray;
    95 	scrollDirection mDirection;
    93 	scrollDirection mDirection;