From 493744a6cd402411dd680b84fb5fee5cb936a95b Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Fri, 20 Mar 2020 08:33:22 -0400 Subject: Add apis for getting next index in the xref proxy model --- ui/xreflist.h | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- cgit v1.3.1