summaryrefslogtreecommitdiff
path: root/examples/browser/history.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/browser/history.cpp')
-rw-r--r--examples/browser/history.cpp6
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