diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-01-08 20:10:32 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-01-08 20:10:32 +0100 |
commit | f628f4a2b1560e174a5a62ab54fa84365db3fecd (patch) | |
tree | 2fd67eb7b851a19eca93c036e61f14424cd61f8d /lib/bookmarks/bookmarksmodel.h | |
parent | Address bar completer doesn't show up if there's nothing to suggest (diff) | |
download | smolbote-f628f4a2b1560e174a5a62ab54fa84365db3fecd.tar.xz |
BookmarksModel::insertItem
Diffstat (limited to 'lib/bookmarks/bookmarksmodel.h')
-rw-r--r-- | lib/bookmarks/bookmarksmodel.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/bookmarks/bookmarksmodel.h b/lib/bookmarks/bookmarksmodel.h index baf2ba9..986a195 100644 --- a/lib/bookmarks/bookmarksmodel.h +++ b/lib/bookmarks/bookmarksmodel.h @@ -33,9 +33,15 @@ public: QModelIndex index(BookmarkItem *node, int column = 0) const; QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override; QModelIndex parent(const QModelIndex &index) const override; + int rowCount(const QModelIndex &parent = QModelIndex()) const override; + QModelIndex insertItem(BookmarkItem::BookmarkItemType type, const QModelIndex &parent); + int columnCount(const QModelIndex &parent = QModelIndex()) const override; + + Qt::ItemFlags flags(const QModelIndex &index) const override; QVariant data(const QModelIndex &index, int role) const override; + bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) override; bool hasChildren(const QModelIndex &parent) const override; |