ResourceModel: made setFilter(...) a pure virtual public slot
Making setFilter(QString) a pure virtual public slot forces all derived models to implement this slot. Furthermore it allows external GUI code to connect e.g. QLineEdit::textChanged(QString) signal directly to the setFilter(...) method.
This commit is contained in:
1 parent
13df5c92cf
commit
13e9876b38
2 files changed
+6
-2
No files matched your search
@@ -41,9 +41,9 @@ public:
|
||||
virtual QModelIndex index( int _row, int _col,
|
||||
const QModelIndex & _parent = QModelIndex() ) const;
|
||||
|
||||
virtual QModelIndex parent( const QModelIndex & index ) const;
|
||||
virtual QModelIndex parent( const QModelIndex & _index ) const;
|
||||
|
||||
void setFilter( const QString & _s );
|
||||
virtual void setFilter( const QString & _s );
|
||||
|
||||
|
||||
private:
|
||||
|
||||
Reference in new issue
Block a user