projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DecoderSelector: Rework GSList usage to remove unnecessary list copying
[pulseview.git]
/
pv
/
subwindows
/
decoder_selector
/
subwindow.hpp
diff --git
a/pv/subwindows/decoder_selector/subwindow.hpp
b/pv/subwindows/decoder_selector/subwindow.hpp
index dba6f6deed8f72515d58bcd15df5fa0175e2f836..6f6456d3bff16292855cae6dc14bd71c1fb5a9bd 100644
(file)
--- a/
pv/subwindows/decoder_selector/subwindow.hpp
+++ b/
pv/subwindows/decoder_selector/subwindow.hpp
@@
-85,6
+85,12
@@
private:
};
};
+class QCustomSortFilterProxyModel : public QSortFilterProxyModel
+{
+protected:
+ bool filterAcceptsRow(int source_row, const QModelIndex& source_parent) const;
+};
+
class QCustomTreeView : public QTreeView
{
Q_OBJECT
class QCustomTreeView : public QTreeView
{
Q_OBJECT
@@
-127,6
+133,8
@@
public Q_SLOTS:
void on_item_changed(const QModelIndex& index);
void on_item_activated(const QModelIndex& index);
void on_item_changed(const QModelIndex& index);
void on_item_activated(const QModelIndex& index);
+ void on_filter_changed(const QString& text);
+
private:
QSplitter* splitter_;
QCustomTreeView* tree_view_;
private:
QSplitter* splitter_;
QCustomTreeView* tree_view_;
@@
-135,7
+143,7
@@
private:
QLabel* info_label_body_;
QLabel* info_label_footer_;
DecoderCollectionModel* model_;
QLabel* info_label_body_;
QLabel* info_label_footer_;
DecoderCollectionModel* model_;
- QSortFilterProxyModel* sort_filter_model_;
+ Q
Custom
SortFilterProxyModel* sort_filter_model_;
};
} // decoder_selector
};
} // decoder_selector