summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qabstractitemmodel.h
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2010-02-02 09:50:49 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2010-02-02 09:54:50 (GMT)
commite9b0c9a1d25a2260bd7c0e7ead840cacb31ce424 (patch)
tree86a1352c70acdc73e6db50f1757695d2b3ec6ab7 /src/corelib/kernel/qabstractitemmodel.h
parent364ecfa36d6d4dc0aa917a223e88869028d8219c (diff)
downloadQt-e9b0c9a1d25a2260bd7c0e7ead840cacb31ce424.zip
Qt-e9b0c9a1d25a2260bd7c0e7ead840cacb31ce424.tar.gz
Qt-e9b0c9a1d25a2260bd7c0e7ead840cacb31ce424.tar.bz2
Revert "add QModelIndex::rowCount() and QModelIndex::ColumnCount convenience methods"
This reverts commit c74deadf4b7eeb2800b318e0952dac8f700d9236. The convinience method are missleading because it does not work for the root model index. Also, the test is missing, and the function should have been added in the mirror class QPersistentModelIndex Reviewed-by: Thierry Reviewed-by: Leo
Diffstat (limited to 'src/corelib/kernel/qabstractitemmodel.h')
-rw-r--r--src/corelib/kernel/qabstractitemmodel.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/corelib/kernel/qabstractitemmodel.h b/src/corelib/kernel/qabstractitemmodel.h
index d91c383..63d9e6f 100644
--- a/src/corelib/kernel/qabstractitemmodel.h
+++ b/src/corelib/kernel/qabstractitemmodel.h
@@ -68,8 +68,6 @@ public:
inline int column() const { return c; }
inline void *internalPointer() const { return p; }
inline qint64 internalId() const { return reinterpret_cast<qint64>(p); }
- inline int rowCount() const;
- inline int columnCount() const;
inline QModelIndex parent() const;
inline QModelIndex sibling(int row, int column) const;
inline QModelIndex child(int row, int column) const;
@@ -387,12 +385,6 @@ inline QModelIndex::QModelIndex(int arow, int acolumn, void *adata,
const QAbstractItemModel *amodel)
: r(arow), c(acolumn), p(adata), m(amodel) {}
-inline int QModelIndex::rowCount() const
-{ return m ? m->rowCount(*this) : 0; }
-
-inline int QModelIndex::columnCount() const
-{ return m ? m->columnCount(*this) : 0; }
-
inline QModelIndex QModelIndex::parent() const
{ return m ? m->parent(*this) : QModelIndex(); }