summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qabstractitemmodel.cpp
diff options
context:
space:
mode:
authorRitt Konstantin <ritt.ks@gmail.com>2010-01-21 13:58:48 (GMT)
committerLeonardo Sobral Cunha <leo.cunha@nokia.com>2010-01-21 13:59:11 (GMT)
commitc74deadf4b7eeb2800b318e0952dac8f700d9236 (patch)
tree1ddc63e9c8a7288c1349048ae2b072969dfee172 /src/corelib/kernel/qabstractitemmodel.cpp
parentb739ad7a9f8a81d9f68be53045e3ab9e2ff48ff6 (diff)
downloadQt-c74deadf4b7eeb2800b318e0952dac8f700d9236.zip
Qt-c74deadf4b7eeb2800b318e0952dac8f700d9236.tar.gz
Qt-c74deadf4b7eeb2800b318e0952dac8f700d9236.tar.bz2
add QModelIndex::rowCount() and QModelIndex::ColumnCount convenience methods
Merge-request: 438 Reviewed-by: Leonardo Sobral Cunha <leo.cunha@nokia.com>
Diffstat (limited to 'src/corelib/kernel/qabstractitemmodel.cpp')
-rw-r--r--src/corelib/kernel/qabstractitemmodel.cpp22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/corelib/kernel/qabstractitemmodel.cpp b/src/corelib/kernel/qabstractitemmodel.cpp
index dbf422e..fdbc5ba 100644
--- a/src/corelib/kernel/qabstractitemmodel.cpp
+++ b/src/corelib/kernel/qabstractitemmodel.cpp
@@ -1043,12 +1043,32 @@ void QAbstractItemModelPrivate::columnsRemoved(const QModelIndex &parent,
/*!
+ \since 4.7
+
+ \fn int QModelIndex::rowCount() const
+
+ Returns the number of children of this model index.
+
+ \sa columnCount(), parent(), child(), sibling(), model()
+*/
+
+/*!
+ \since 4.7
+
+ \fn int QModelIndex::columnCount() const
+
+ Returns the number of columns for the children of this model index.
+
+ \sa rowCount(), parent(), child(), sibling(), model()
+*/
+
+/*!
\fn QModelIndex QModelIndex::parent() const
Returns the parent of the model index, or QModelIndex() if it has no
parent.
- \sa child(), sibling(), model()
+ \sa child(), sibling(), rowCount(), columnCount(), model()
*/
/*!