Skip to content

Commit 9a256a4

Browse files
authored
Merge pull request #10 from keithel/master
Provide default for parent in JsonListModel::index()
2 parents 0494d75 + c414ec6 commit 9a256a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsonlistmodel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class JsonListModel : public QAbstractItemModel
3030
Q_INVOKABLE QJSValue get(const QJSValue&) const;
3131
Q_INVOKABLE QJSValue asArray(bool deepCopy = false) const;
3232

33-
QModelIndex index(int row, int column, const QModelIndex &parent) const;
33+
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
3434
QModelIndex parent(const QModelIndex &child) const;
3535
int rowCount(const QModelIndex &parent = QModelIndex()) const;
3636
int columnCount(const QModelIndex &parent= QModelIndex()) const;

0 commit comments

Comments
 (0)