From 3ee74e1f66eb8c00857aafcbd05b6130af11507a Mon Sep 17 00:00:00 2001 From: mae Date: Fri, 24 Apr 2009 17:50:28 +0200 Subject: removed most features --- tools/qmlconv/qmlconv.cpp | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/tools/qmlconv/qmlconv.cpp b/tools/qmlconv/qmlconv.cpp index 352b3d2..e9358df 100644 --- a/tools/qmlconv/qmlconv.cpp +++ b/tools/qmlconv/qmlconv.cpp @@ -84,25 +84,25 @@ public: clearPropertyChangeSet(); } - if (xml.name() == "properties") + if (false && xml.name() == "properties") startDeclareProperties(); - else if (xml.name() == "signals") + else if (false && xml.name() == "signals") startDeclareSignals(); - else if (xml.name() == "states") + else if (false && xml.name() == "states") loop(); // ignore - else if (xml.name() == "transitions") + else if (false && xml.name() == "transitions") loop(); // ignore else if (knownListProperties.contains(xml.name().toString())) startList(); - else if (xml.name() == "SetProperties") + else if (false && xml.name() == "SetProperties") startSetProperties(); - else if (xml.name() == "SetProperty") + else if (false && xml.name() == "SetProperty") startSetProperty(); - else if (xml.name() == "ParentChange") + else if (false && xml.name() == "ParentChange") startParentChange(); - else if (xml.name() == "Connection") + else if (false && xml.name() == "Connection") startConnection(); - else if (xml.name() == "Script") + else if (false && xml.name() == "Script") startScript(); else if (xml.name().at(0).isLower() && xml.attributes().isEmpty()) startObjectProperty(); @@ -203,7 +203,14 @@ public: setProperty(attribute.name().toString(), attribute.value().toString()); } - loop(); + if (name == "Script") { + QString text = xml.readElementText(); + if (!text.trimmed().isEmpty()) { + out << text << endl; + } + } else { + loop(); + } if (name == "State") clearPropertyChangeSet(); -- cgit v0.12