From f0ade121f9cef3b39c41816536f4e400f43dd4af Mon Sep 17 00:00:00 2001 From: Renaud Guezennec Date: Tue, 28 Nov 2017 11:26:09 +0100 Subject: -fix copy of if operator Compare method was not shared. --- booleancondition.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'booleancondition.cpp') diff --git a/booleancondition.cpp b/booleancondition.cpp index 2a3e1b5..09140f7 100644 --- a/booleancondition.cpp +++ b/booleancondition.cpp @@ -41,7 +41,6 @@ qint64 BooleanCondition::hasValid(Die* b,bool recursive,bool unhighlight) const qint64 sum= 0; for(qint64 value: listValues) { - qDebug() << "value" << value << m_value; switch(m_operator) { case Equal: @@ -87,29 +86,29 @@ void BooleanCondition::setValue(qint64 v) } QString BooleanCondition::toString() { - QString str(QStringLiteral("")); + QString str(QStringLiteral("")); switch (m_operator) { case Equal: - str.append(QStringLiteral("=")); + str.append(QStringLiteral("=")); break; case GreaterThan: - str.append(QStringLiteral(">")); + str.append(QStringLiteral(">")); break; case LesserThan: - str.append(QStringLiteral("<")); + str.append(QStringLiteral("<")); break; case GreaterOrEqual: - str.append(QStringLiteral(">=")); + str.append(QStringLiteral(">=")); break; case LesserOrEqual: - str.append(QStringLiteral("<=")); + str.append(QStringLiteral("<=")); break; case Different: str.append(QStringLiteral("!=")); break; } - return QStringLiteral("[%1%2]").arg(str).arg(m_value); + return QStringLiteral("[%1%2]").arg(str).arg(m_value); } quint64 BooleanCondition::getValidRangeSize(quint64 faces) const { -- cgit v1.2.3-70-g09d2