#include <QAbstractItemModel>
#include <QLabel>
+#include <QSortFilterProxyModel>
#include <QSplitter>
#include <QTreeView>
};
+class QCustomSortFilterProxyModel : public QSortFilterProxyModel
+{
+protected:
+ bool filterAcceptsRow(int source_row, const QModelIndex& source_parent) const;
+};
+
class QCustomTreeView : public QTreeView
{
Q_OBJECT
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_;
QLabel* info_label_body_;
QLabel* info_label_footer_;
DecoderCollectionModel* model_;
+ QCustomSortFilterProxyModel* sort_filter_model_;
};
} // decoder_selector