1 #ifndef GOTOFILTERMODEL_H 2 #define GOTOFILTERMODEL_H 3 4 #include <QSortFilterProxyModel> 5 #include "gotomodel.h" 6 7 class GotoFilterModel : public QSortFilterProxyModel 8 { 9 Q_OBJECT 10 11 public: 12 explicit GotoFilterModel(QObject *parent = nullptr); 13 void setDisassembler(const REDasm::DisassemblerPtr &disassembler); 14 15 protected: 16 bool filterAcceptsRow(int sourcerow, const QModelIndex &sourceparent) const override; 17 }; 18 19 #endif // GOTOFILTERMODEL_H 20