Details
-
Type:
Suggestion
-
Status: Closed
-
Priority:
Not Evaluated
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 5.12.0 Beta 1
-
Component/s: Widgets: Itemviews
-
Labels:None
-
Commits: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); } };
Attachments
For Gerrit Dashboard: QTBUG-18113 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
239807,4 | QSFPM: setFilterRegExp and setFilterRegularExpression overloads to slots | 5.12 | qt/qtbase | Status: MERGED | +2 | 0 |