diff options
| author | Peter LaFosse <peter@vector35.com> | 2020-03-20 08:33:22 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2020-03-20 10:29:02 -0400 |
| commit | 493744a6cd402411dd680b84fb5fee5cb936a95b (patch) | |
| tree | 43c43d37dfa8809e1e83a829b1eec273390f6ed5 | |
| parent | 6fbeb0e96af2a1b61467cf813642329613f573ab (diff) | |
Add apis for getting next index in the xref proxy model
| -rw-r--r-- | ui/xreflist.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/xreflist.h b/ui/xreflist.h index 03498d8c..b89d70c7 100644 --- a/ui/xreflist.h +++ b/ui/xreflist.h @@ -249,11 +249,17 @@ class BINARYNINJAUIAPI CrossReferenceFilterProxyModel : public QSortFilterProxyM public: CrossReferenceFilterProxyModel(QObject* parent, bool table); + QModelIndex nextValidIndex(const QModelIndex& current) const; + QModelIndex getFirstLeaf(const QModelIndex& index) const; + QModelIndex prevValidIndex(const QModelIndex& current) const; + QModelIndex getLastLeaf(const QModelIndex& index) const; + protected: virtual bool filterAcceptsRow(int sourceRow, const QModelIndex& sourceParent) const override; virtual bool lessThan(const QModelIndex& left, const QModelIndex& right) const override; virtual QVariant data(const QModelIndex& index, int role) const override; virtual bool hasChildren(const QModelIndex& parent) const override; + public Q_SLOTS: void directionChanged(int index); void typeChanged(int index); |
