diff options
author | Stephen Kelly <stephen.kelly@kdab.com> | 2012-09-21 10:39:09 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-09-21 13:47:30 +0200 |
commit | 216397f176c14564081dad5f8d7c38d6568fd58b (patch) | |
tree | 9f5cafcd932e13c186e8e72d873ec33ae06e4984 | |
parent | 52638dd841fc6a2dbfa8e916db8d4e710be0380d (diff) | |
download | qtwebkit-examples-216397f176c14564081dad5f8d7c38d6568fd58b.tar.gz |
Remove ambiguous argument to createIndex.
Currently it is a cleanup.
After https://codereview.qt-project.org/#change,33286 it is a build fix.
It's justified as a cleanup anyway.
Change-Id: I2444a59c5eae042d4e4c7fd8dad9830578052431
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
-rw-r--r-- | examples/browser/history.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/browser/history.cpp b/examples/browser/history.cpp index d9efd24..d534824 100644 --- a/examples/browser/history.cpp +++ b/examples/browser/history.cpp @@ -980,7 +980,7 @@ QModelIndex HistoryCompletionModel::index(int row, int column, const QModelIndex if (row < 0 || row >= rowCount(parent) || column < 0 || column >= columnCount(parent)) return QModelIndex(); - return createIndex(row, column, 0); + return createIndex(row, column); } QModelIndex HistoryCompletionModel::parent(const QModelIndex &) const @@ -1130,7 +1130,7 @@ QModelIndex HistoryTreeModel::index(int row, int column, const QModelIndex &pare return QModelIndex(); if (!parent.isValid()) - return createIndex(row, column, 0); + return createIndex(row, column); return createIndex(row, column, parent.row() + 1); } @@ -1139,7 +1139,7 @@ QModelIndex HistoryTreeModel::parent(const QModelIndex &index) const int offset = index.internalId(); if (offset == 0 || !index.isValid()) return QModelIndex(); - return createIndex(offset - 1, 0, 0); + return createIndex(offset - 1, 0); } bool HistoryTreeModel::hasChildren(const QModelIndex &parent) const |