Changeset 846 for trunk/src/gui/itemviews/qproxymodel.h
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/itemviews/qproxymodel.h
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 68 68 // implementing model interface 69 69 70 QModelIndex index(int row, int column, const QModelIndex &parent ) const;70 QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const; 71 71 QModelIndex parent(const QModelIndex &child) const; 72 72 73 int rowCount(const QModelIndex &parent ) const;74 int columnCount(const QModelIndex &parent ) const;75 bool hasChildren(const QModelIndex &parent ) const;73 int rowCount(const QModelIndex &parent = QModelIndex()) const; 74 int columnCount(const QModelIndex &parent = QModelIndex()) const; 75 bool hasChildren(const QModelIndex &parent = QModelIndex()) const; 76 76 77 QVariant data(const QModelIndex &index, int role ) const;78 bool setData(const QModelIndex &index, const QVariant &value, int role );77 QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; 78 bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole); 79 79 80 QVariant headerData(int section, Qt::Orientation orientation, int role ) const;80 QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; 81 81 bool setHeaderData(int section, Qt::Orientation orientation, const QVariant &value, 82 int role );82 int role = Qt::EditRole); 83 83 84 84 QStringList mimeTypes() const; … … 88 88 Qt::DropActions supportedDropActions() const; 89 89 90 bool insertRows(int row, int count, const QModelIndex &parent );91 bool insertColumns(int column, int count, const QModelIndex &parent );90 bool insertRows(int row, int count, const QModelIndex &parent = QModelIndex()); 91 bool insertColumns(int column, int count, const QModelIndex &parent = QModelIndex()); 92 92 93 93 void fetchMore(const QModelIndex &parent); 94 94 Qt::ItemFlags flags(const QModelIndex &index) const; 95 95 96 void sort(int column, Qt::SortOrder order );96 void sort(int column, Qt::SortOrder order = Qt::AscendingOrder); 97 97 98 98 QModelIndexList match(const QModelIndex &start, int role, const QVariant &value, 99 int hits, Qt::MatchFlags flags) const; 99 int hits = 1, Qt::MatchFlags flags = 100 Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const; 100 101 101 102 QSize span(const QModelIndex &index) const;
Note:
See TracChangeset
for help on using the changeset viewer.