src/hbwidgets/itemviews/hbgridview_p.h
changeset 34 ed14f46c0e55
parent 6 c3690ec91ef8
equal deleted inserted replaced
31:7516d6d86cf5 34:ed14f46c0e55
    57     inline int getScrollDirectionRowCount() const;
    57     inline int getScrollDirectionRowCount() const;
    58     inline HbScrollBar *getScrollDirectionScrollBar() const;
    58     inline HbScrollBar *getScrollDirectionScrollBar() const;
    59     inline qreal getScrollDirectionContainerPos() const;
    59     inline qreal getScrollDirectionContainerPos() const;
    60     inline qreal getScrollDirectionItemSize() const;
    60     inline qreal getScrollDirectionItemSize() const;
    61 
    61 
    62     inline QModelIndex indexInTheCenter() const;
    62     QModelIndex firstFullyVisibleIndex() const;
    63     QModelIndex indexInTheCenter(Qt::Orientations scrollDirection) const;
       
    64 
    63 
    65 public:
    64 public:
    66     bool mIconVisible;
    65     bool mIconVisible;
    67     bool mTextVisible;
    66     bool mTextVisible;
    68     bool mSwapDimensionsOnOrientationChange;
    67     bool mSwapDimensionsOnOrientationChange;
   117     return (mScrollDirections == Qt::Vertical) ?
   116     return (mScrollDirections == Qt::Vertical) ?
   118         mContainer->items().first()->size().height()
   117         mContainer->items().first()->size().height()
   119         : mContainer->items().first()->size().width();
   118         : mContainer->items().first()->size().width();
   120 }
   119 }
   121 
   120 
   122 QModelIndex HbGridViewPrivate::indexInTheCenter() const
       
   123 {
       
   124     return indexInTheCenter(mScrollDirections);
       
   125 }
       
   126 
       
   127 #endif /*HBGRIDVIEW_P_H*/
   121 #endif /*HBGRIDVIEW_P_H*/