Details
-
Suggestion
-
Resolution: Done
-
Not Evaluated
-
None
-
None
-
933df86bbcb96779b26d888a1e08fddbebbfcfe8 (qt/qtbase/5.12)
Description
Currently there is only the slot:
void setFilterRegExp ( const QString & pattern )
This is restricted because setting this property overwrites the current filterCaseSensitivity.
It would be nice to have the method taking the QRegExp as a slot instead.
Workaround:
class MySortFilterProxyModel: public QSortFilterProxyModel { Q_OBJECT public: MySortFilterProxyModel(QWidget *parent = 0) : QSortFilterProxyModel(parent) { } protected slots: void setMyFilterRegExp(const QRegExp ®Exp) { setFilterRegExp(regExp); } };