Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/scripting/kexidb/kexidbschema.cpp
Context not available. | |||||
20 | #include "kexidbschema.h" | 20 | #include "kexidbschema.h" | ||
---|---|---|---|---|---|
21 | #include "kexidbfieldlist.h" | 21 | #include "kexidbfieldlist.h" | ||
22 | 22 | | |||
23 | #include <QRegExp> | 23 | #include <QRegularExpression> | ||
24 | #include <QDebug> | 24 | #include <QDebug> | ||
25 | 25 | | |||
26 | using namespace Scripting; | 26 | using namespace Scripting; | ||
Context not available. | |||||
133 | 133 | | |||
134 | ///@todo use KDbParser for such kind of parser-functionality. | 134 | ///@todo use KDbParser for such kind of parser-functionality. | ||
135 | QString s = whereexpression; | 135 | QString s = whereexpression; | ||
136 | QRegExp re("[\"',]{1,1}"); | 136 | QRegularExpression re("[\"',]{1,1}"); | ||
137 | while (true) { | 137 | while (true) { | ||
138 | s.remove(QRegExp("^[\\s,]+")); | 138 | s.remove(QRegularExpression("^[\\s,]+")); | ||
139 | int pos = s.indexOf('='); | 139 | int pos = s.indexOf('='); | ||
140 | if (pos < 0) break; | 140 | if (pos < 0) break; | ||
141 | QString key = s.left(pos).trimmed(); | 141 | QString key = s.left(pos).trimmed(); | ||
Context not available. |