itom 1.0.14
|
00001 //leaffilterproxymodel.h 00002 #ifndef LEAFFILTERPROXYMODEL_H 00003 #define LEAFFILTERPROXYMODEL_H 00004 00005 #include <QSortFilterProxyModel> 00006 00007 class LeafFilterProxyModel : public QSortFilterProxyModel 00008 { 00009 Q_OBJECT 00010 public: 00011 explicit LeafFilterProxyModel(QObject *parent = 0); 00012 00013 signals: 00014 00015 public slots: 00016 00017 protected: 00018 bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const; 00019 bool filterAcceptsRowItself(int source_row, const QModelIndex &source_parent) const; 00020 bool hasAcceptedChildren(int source_row, const QModelIndex &source_parent) const; 00021 00022 }; 00023 #endif // LEAFFILTERPROXYMODEL_H