QSFPM: setFilterRegExp and setFilterRegularExpression overloads to slots
The setters of both filterRegExp and filterRegularExpression are currently normal functions. This patch moves them to slots to make them usable using the old syntax. This can be done since there are already overloads for both of them so people using the new connect syntax would have needed to use qOverload already therefore there is no SIC. [ChangeLog][QtCore][QSortFilterProxyModel] Setters of both the filterRegExp and filterRegularExpression properties are now slots and can be used with the old as well as the new syntax. Change-Id: Id5cd9a50fa4a62e2bbd6bd665b44bd25a0402852 Fixes: QTBUG-18113 Reviewed-by: David Faure <david.faure@kdab.com>
This commit is contained in:
parent
b6022eccc4
commit
933df86bbc
@ -88,11 +88,9 @@ public:
|
||||
QItemSelection mapSelectionFromSource(const QItemSelection &sourceSelection) const override;
|
||||
|
||||
QRegExp filterRegExp() const;
|
||||
void setFilterRegExp(const QRegExp ®Exp);
|
||||
|
||||
#if QT_CONFIG(regularexpression)
|
||||
QRegularExpression filterRegularExpression() const;
|
||||
void setFilterRegularExpression(const QRegularExpression ®ularExpression);
|
||||
#endif
|
||||
|
||||
int filterKeyColumn() const;
|
||||
@ -124,8 +122,10 @@ public:
|
||||
|
||||
public Q_SLOTS:
|
||||
void setFilterRegExp(const QString &pattern);
|
||||
void setFilterRegExp(const QRegExp ®Exp);
|
||||
#if QT_CONFIG(regularexpression)
|
||||
void setFilterRegularExpression(const QString &pattern);
|
||||
void setFilterRegularExpression(const QRegularExpression ®ularExpression);
|
||||
#endif
|
||||
void setFilterWildcard(const QString &pattern);
|
||||
void setFilterFixedString(const QString &pattern);
|
||||
|
Loading…
x
Reference in New Issue
Block a user