equal
deleted
inserted
replaced
115 virtual void _q_columnsAboutToBeRemoved(const QModelIndex &parent, int start, int end); |
115 virtual void _q_columnsAboutToBeRemoved(const QModelIndex &parent, int start, int end); |
116 virtual void _q_columnsRemoved(const QModelIndex &parent, int start, int end); |
116 virtual void _q_columnsRemoved(const QModelIndex &parent, int start, int end); |
117 virtual void _q_columnsInserted(const QModelIndex &parent, int start, int end); |
117 virtual void _q_columnsInserted(const QModelIndex &parent, int start, int end); |
118 virtual void _q_modelDestroyed(); |
118 virtual void _q_modelDestroyed(); |
119 virtual void _q_layoutChanged(); |
119 virtual void _q_layoutChanged(); |
|
120 void _q_headerDataChanged() { doDelayedItemsLayout(); } |
120 |
121 |
121 void fetchMore(); |
122 void fetchMore(); |
122 |
123 |
123 bool shouldEdit(QAbstractItemView::EditTrigger trigger, const QModelIndex &index) const; |
124 bool shouldEdit(QAbstractItemView::EditTrigger trigger, const QModelIndex &index) const; |
124 bool shouldForwardEvent(QAbstractItemView::EditTrigger trigger, const QEvent *event) const; |
125 bool shouldForwardEvent(QAbstractItemView::EditTrigger trigger, const QEvent *event) const; |
149 const QEvent *event) const; |
150 const QEvent *event) const; |
150 QItemSelectionModel::SelectionFlags contiguousSelectionCommand(const QModelIndex &index, |
151 QItemSelectionModel::SelectionFlags contiguousSelectionCommand(const QModelIndex &index, |
151 const QEvent *event) const; |
152 const QEvent *event) const; |
152 virtual void selectAll(QItemSelectionModel::SelectionFlags command); |
153 virtual void selectAll(QItemSelectionModel::SelectionFlags command); |
153 |
154 |
|
155 void setHoverIndex(const QPersistentModelIndex &index); |
|
156 |
154 void checkMouseMove(const QPersistentModelIndex &index); |
157 void checkMouseMove(const QPersistentModelIndex &index); |
155 inline void checkMouseMove(const QPoint &pos) { checkMouseMove(q_func()->indexAt(pos)); } |
158 inline void checkMouseMove(const QPoint &pos) { checkMouseMove(q_func()->indexAt(pos)); } |
156 |
159 |
157 inline QItemSelectionModel::SelectionFlags selectionBehaviorFlags() const |
160 inline QItemSelectionModel::SelectionFlags selectionBehaviorFlags() const |
158 { |
161 { |
162 case QAbstractItemView::SelectItems: default: return QItemSelectionModel::NoUpdate; |
165 case QAbstractItemView::SelectItems: default: return QItemSelectionModel::NoUpdate; |
163 } |
166 } |
164 } |
167 } |
165 |
168 |
166 #ifndef QT_NO_DRAGANDDROP |
169 #ifndef QT_NO_DRAGANDDROP |
167 QAbstractItemView::DropIndicatorPosition position(const QPoint &pos, const QRect &rect, const QModelIndex &idx) const; |
170 virtual QAbstractItemView::DropIndicatorPosition position(const QPoint &pos, const QRect &rect, const QModelIndex &idx) const; |
|
171 |
168 inline bool canDecode(QDropEvent *e) const { |
172 inline bool canDecode(QDropEvent *e) const { |
169 QStringList modelTypes = model->mimeTypes(); |
173 QStringList modelTypes = model->mimeTypes(); |
170 const QMimeData *mime = e->mimeData(); |
174 const QMimeData *mime = e->mimeData(); |
171 for (int i = 0; i < modelTypes.count(); ++i) |
175 for (int i = 0; i < modelTypes.count(); ++i) |
172 if (mime->hasFormat(modelTypes.at(i)) |
176 if (mime->hasFormat(modelTypes.at(i)) |
341 QPointer<QAbstractItemDelegate> itemDelegate; |
345 QPointer<QAbstractItemDelegate> itemDelegate; |
342 QMap<int, QPointer<QAbstractItemDelegate> > rowDelegates; |
346 QMap<int, QPointer<QAbstractItemDelegate> > rowDelegates; |
343 QMap<int, QPointer<QAbstractItemDelegate> > columnDelegates; |
347 QMap<int, QPointer<QAbstractItemDelegate> > columnDelegates; |
344 QPointer<QItemSelectionModel> selectionModel; |
348 QPointer<QItemSelectionModel> selectionModel; |
345 QItemSelectionModel::SelectionFlag ctrlDragSelectionFlag; |
349 QItemSelectionModel::SelectionFlag ctrlDragSelectionFlag; |
|
350 bool noSelectionOnMousePress; |
346 |
351 |
347 QAbstractItemView::SelectionMode selectionMode; |
352 QAbstractItemView::SelectionMode selectionMode; |
348 QAbstractItemView::SelectionBehavior selectionBehavior; |
353 QAbstractItemView::SelectionBehavior selectionBehavior; |
349 |
354 |
350 QList<QEditorInfo> editors; |
355 QList<QEditorInfo> editors; |
390 bool autoScroll; |
395 bool autoScroll; |
391 QBasicTimer autoScrollTimer; |
396 QBasicTimer autoScrollTimer; |
392 int autoScrollMargin; |
397 int autoScrollMargin; |
393 int autoScrollCount; |
398 int autoScrollCount; |
394 bool shouldScrollToCurrentOnShow; //used to know if we should scroll to current on show event |
399 bool shouldScrollToCurrentOnShow; //used to know if we should scroll to current on show event |
|
400 bool shouldClearStatusTip; //if there is a statustip currently shown that need to be cleared when leaving. |
395 |
401 |
396 bool alternatingColors; |
402 bool alternatingColors; |
397 |
403 |
398 QSize iconSize; |
404 QSize iconSize; |
399 Qt::TextElideMode textElideMode; |
405 Qt::TextElideMode textElideMode; |