diff options
author | David Faure <david.faure@kdab.com> | 2014-11-12 09:56:43 +0100 |
---|---|---|
committer | David Faure <david.faure@kdab.com> | 2014-11-13 19:20:49 +0100 |
commit | 4c1ea8f72ce806a5059ddec1ec1364f9a92294f0 (patch) | |
tree | 13d709c402fd1ffedd542381018369935bc7a03d /src | |
parent | 279317b0673438a3ede3fe38d1c68c7f7ecc5c5f (diff) |
QIdentityProxyModel: add missing default value, compared to base class.
Change-Id: I8e3ff4923834c87a0a8d289e5445346a87542a80
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/itemmodels/qidentityproxymodel.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/itemmodels/qidentityproxymodel.h b/src/corelib/itemmodels/qidentityproxymodel.h index 7eaa1f4e04..0805770aa8 100644 --- a/src/corelib/itemmodels/qidentityproxymodel.h +++ b/src/corelib/itemmodels/qidentityproxymodel.h @@ -57,7 +57,7 @@ public: QModelIndex mapToSource(const QModelIndex& proxyIndex) const; QModelIndex parent(const QModelIndex& child) const; int rowCount(const QModelIndex& parent = QModelIndex()) const; - QVariant headerData(int section, Qt::Orientation orientation, int role) const; + QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; bool dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent); QModelIndex sibling(int row, int column, const QModelIndex &idx) const; |