diff options
author | mae <qt-info@nokia.com> | 2009-04-24 15:50:28 (GMT) |
---|---|---|
committer | mae <qt-info@nokia.com> | 2009-04-24 15:50:28 (GMT) |
commit | 3ee74e1f66eb8c00857aafcbd05b6130af11507a (patch) | |
tree | ce732b32165edca18d191ae74a641f21154c1bda /tools | |
parent | 732f54672e886ac535ed3af7b46b68d6cf44461c (diff) | |
download | Qt-3ee74e1f66eb8c00857aafcbd05b6130af11507a.zip Qt-3ee74e1f66eb8c00857aafcbd05b6130af11507a.tar.gz Qt-3ee74e1f66eb8c00857aafcbd05b6130af11507a.tar.bz2 |
removed most features
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qmlconv/qmlconv.cpp | 27 |
1 files 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(); |