src/hbwidgets/itemviews/hbgridviewitem.cpp
changeset 1 f7ac710697a9
parent 0 16d8024aca5e
child 2 06ff229162e9
equal deleted inserted replaced
0:16d8024aca5e 1:f7ac710697a9
   176     option->icon = d->mIcon;
   176     option->icon = d->mIcon;
   177     option->text = d->mText;
   177     option->text = d->mText;
   178 }
   178 }
   179 
   179 
   180 /*!
   180 /*!
       
   181 
       
   182     \deprecated HbGridViewItem::primitive(HbStyle::Primitive)
       
   183         is deprecated.
       
   184 
   181   Provides access to primitives of HbGridViewItem. 
   185   Provides access to primitives of HbGridViewItem. 
   182   \param primitive is the type of the requested primitive. The available primitives are 
   186   \param primitive is the type of the requested primitive. The available primitives are 
   183   \c P_GridViewItem_text, \c P_GridViewItem_icon, \c P_ItemViewItem_checkbox and
   187   \c P_GridViewItem_text, \c P_GridViewItem_icon, \c P_ItemViewItem_checkbox and
   184   \c P_GridViewItem_background.
   188   \c P_GridViewItem_background.
   185  */
   189  */
   196 
   200 
   197     return HbAbstractViewItem::primitive(primitive);
   201     return HbAbstractViewItem::primitive(primitive);
   198 }
   202 }
   199 
   203 
   200 /*!
   204 /*!
   201     \deprecated QRectF HbGridViewItem::contiguousSelectionArea() const
   205     \deprecated HbGridViewItem::contiguousSelectionArea() const
   202         is deprecated.
   206         is deprecated.
   203 
   207 
   204     \reimp
   208     \reimp
   205  */
   209  */
   206 QRectF HbGridViewItem::contiguousSelectionArea() const
   210 QRectF HbGridViewItem::contiguousSelectionArea() const
   211 }
   215 }
   212 
   216 
   213 /*!
   217 /*!
   214  \reimp
   218  \reimp
   215  */
   219  */
   216 bool HbGridViewItem::selectionAreaContains(const QPointF &scenePosition) const
   220 bool HbGridViewItem::selectionAreaContains(const QPointF &position, 
   217 {
   221                                        SelectionAreaType selectionAreaType) const
   218     HB_SDD(const HbAbstractViewItem);
   222 {
   219     if (    sd->mItemView
   223     if (selectionAreaType == ContiguousSelection ) {
   220         &&  sd->mItemView->selectionMode() == HbAbstractItemView::ContiguousSelection) {
       
   221         return false;
   224         return false;
   222     } 
   225     } 
   223     return HbAbstractViewItem::selectionAreaContains(scenePosition);
   226     return HbAbstractViewItem::selectionAreaContains(position, selectionAreaType);
   224 }
   227 }
   225 
   228 
   226 /*!
   229 /*!
   227  \reimp
   230  \reimp
   228  */
   231  */