mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-07 05:42:19 -04:00
Added Qt dependent macro for QString::SkipEmptyParts/Qt::SkipEmptyParts
This commit is contained in:
parent
f38b72e7a3
commit
e2e1a431ff
11 changed files with 23 additions and 17 deletions
|
@ -20,6 +20,7 @@
|
|||
* *
|
||||
*******************************************************************************/
|
||||
#include "expressionwidget.h"
|
||||
#include "util/QtVersion.h"
|
||||
|
||||
ExpressionWidget::ExpressionWidget(QWidget * parent, bool initial)
|
||||
: QWidget(parent)
|
||||
|
@ -109,11 +110,7 @@ RsRegularExpression::Expression* ExpressionWidget::getRsExpression()
|
|||
if (isStringSearchExpression())
|
||||
{
|
||||
QString txt = exprParamElem->getStrSearchValue();
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5,15,0)
|
||||
QStringList words = txt.split(" ", QString::SkipEmptyParts);
|
||||
#else
|
||||
QStringList words = txt.split(" ", Qt::SkipEmptyParts);
|
||||
#endif
|
||||
QStringList words = txt.split(" ", QtSkipEmptyParts);
|
||||
for (int i = 0; i < words.size(); ++i)
|
||||
wordList.push_back(words.at(i).toUtf8().constData());
|
||||
} else if (inRangedConfig){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue