diff --git a/src/plugins/qmldesigner/components/connectioneditor/connectionmodel.cpp b/src/plugins/qmldesigner/components/connectioneditor/connectionmodel.cpp index 9b2102bbc3a..f2ef1ca02cc 100644 --- a/src/plugins/qmldesigner/components/connectioneditor/connectionmodel.cpp +++ b/src/plugins/qmldesigner/components/connectioneditor/connectionmodel.cpp @@ -652,7 +652,6 @@ QString generateDefaultStatement(ConnectionModelBackendDelegate::ActionType acti void ConnectionModelBackendDelegate::changeActionType(ActionType actionType) { - qDebug() << Q_FUNC_INFO << actionType; QTC_ASSERT(actionType != ConnectionModelStatementDelegate::Custom, return ); ConnectionModel *model = qobject_cast(parent()); @@ -676,9 +675,9 @@ void ConnectionModelBackendDelegate::changeActionType(ActionType actionType) QString statementSource = generateDefaultStatement(actionType, validId); auto tempHandler = ConnectionEditorEvaluator::parseStatement(statementSource); - qDebug() << ConnectionEditorStatements::toString(tempHandler); + auto newOkStatement = ConnectionEditorStatements::okStatement(tempHandler); - qDebug() << "newOk" << statementSource; + QTC_ASSERT(!ConnectionEditorStatements::isEmptyStatement(newOkStatement), return ); okStatement = newOkStatement; @@ -849,9 +848,6 @@ void ConnectionModelBackendDelegate::update() setupHandlerAndStatements(); - qDebug() << Q_FUNC_INFO << ConnectionEditorStatements::toString(m_handler) - << ConnectionEditorStatements::toJavascript(m_handler); - setupCondition(); QTC_ASSERT(model, return ); @@ -1440,7 +1436,6 @@ void ConnectionModelStatementDelegate::setupCallFunction() void ConnectionModelStatementDelegate::setupChangeState() { - qDebug() << Q_FUNC_INFO; QTC_ASSERT(std::holds_alternative(m_statement), return ); QTC_ASSERT(m_model->connectionView()->isAttached(), return ); @@ -1494,8 +1489,6 @@ void ConnectionModelStatementDelegate::setupStates() const auto stateSet = std::get(m_statement); - qDebug() << Q_FUNC_INFO << stateSet.stateName; - const QString nodeId = m_stateTargets.currentText(); const ModelNode node = m_model->connectionView()->modelNodeForId(nodeId); @@ -1752,20 +1745,16 @@ void ConditionListModel::command(const QString &string) //TODO remove from prodcution code QStringList list = string.split("%", Qt::SkipEmptyParts); - qDebug() << Q_FUNC_INFO << string << list.size(); - if (list.size() < 2) return; if (list.size() == 2) { if (list.first() == "A") { - qDebug() << "Append" << list.last(); appendToken(list.last()); } else if (list.first() == "R") { bool ok = true; int index = list.last().toInt(&ok); - qDebug() << "Remove" << index; if (ok) removeToken(index); } @@ -1778,15 +1767,12 @@ void ConditionListModel::command(const QString &string) if (ok) updateToken(index, list.last()); - qDebug() << "Update" << index << list.last(); } else if (list.first() == "I") { bool ok = true; int index = list.at(1).toInt(&ok); if (ok) insertToken(index, list.last()); - - qDebug() << "Insert" << index << list.last(); } } } diff --git a/src/plugins/qmldesigner/components/connectioneditor/propertytreemodel.cpp b/src/plugins/qmldesigner/components/connectioneditor/propertytreemodel.cpp index 7d4c55fb9d8..f9b9fddd640 100644 --- a/src/plugins/qmldesigner/components/connectioneditor/propertytreemodel.cpp +++ b/src/plugins/qmldesigner/components/connectioneditor/propertytreemodel.cpp @@ -520,7 +520,6 @@ const std::vector PropertyTreeModel::getDynamicProperties( const std::vector PropertyTreeModel::sortedAndFilteredPropertyNames( const NodeMetaInfo &metaInfo, bool recursive) const { - qDebug() << Q_FUNC_INFO << metaInfo.typeName() << recursive; auto filtered = Utils::filtered(metaInfo.properties(), [this, recursive](const PropertyMetaInfo &metaInfo) { // if (!metaInfo.isWritable()) - lhs/rhs