Implemented data filtering.
This commit is contained in:
@@ -11,7 +11,8 @@ class ExprEvaluator
|
||||
public:
|
||||
ExprEvaluator();
|
||||
|
||||
bool evaluate(const QObject *data, const QString &expression);
|
||||
bool evaluate(QObject *object, const QString &exp);
|
||||
void setCaseSensitive(bool caseSensitive);
|
||||
|
||||
private:
|
||||
#ifdef _MSC_VER
|
||||
@@ -21,6 +22,9 @@ private:
|
||||
#endif
|
||||
|
||||
bool m_caseSensitive;
|
||||
|
||||
bool subEval(const QString &oper, const QString &expresion, QObject *object);
|
||||
void parseExpr(const QString &exp, QVariant &value, QString &oper, QVariant &condition, QObject *object);
|
||||
};
|
||||
|
||||
#endif // EXPREVALUATOR_H
|
||||
|
||||
Reference in New Issue
Block a user