diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-04-24 19:04:09 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-04-24 19:04:09 (GMT) |
commit | 69b88e97a02b41f3ffb88cbac09a5096da6c520d (patch) | |
tree | a009b26774699be83b0a944ee0587805023b9689 /qmake/generators/xmloutput.h | |
parent | c5212670f20f07733f16f00a318e0945b2721d22 (diff) | |
parent | 9af9e1d92504647e41d27c1229a2572a90bf4fd7 (diff) | |
download | Qt-69b88e97a02b41f3ffb88cbac09a5096da6c520d.zip Qt-69b88e97a02b41f3ffb88cbac09a5096da6c520d.tar.gz Qt-69b88e97a02b41f3ffb88cbac09a5096da6c520d.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-multimedia-staging into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-multimedia-staging: (28 commits)
Fix all qmake Makefiles to include the MSBuild backend
Remove trace code from directshowaudioendpointcontrol.h.
New configure.exe binary
Add support for MSBuild, which is the project format for MSVC 2010
Only add qvideowidget test once.
Multimedia causes build failure when Qt is configured with -embedded
Player demo: load not only local files but playlists and urls passed as
Gstreamer media backend: preserve playback rate after seeks and media
QT7 mediaservice; fix leaking strings.
Fixed Qt build with mediaservices disabled.
Multimedia tests; fix for missing dependency
Disabled QMediaPlayer states debug output.
Fixed typo in QMediaPlayer::play() error reporting
Fixed QVideoWidget test, waiting for video surface painted.
Tests; Fix media tests, make sure they are using mediaservies.
Fix warning about illegal empty declaration.
Three fixes from Shane after QtMultimedia was split into two dlls.
Fix compile errors in Direct Show media service.
Add EXPORT defines for QtMediaServices library.
Fixed configure check for gstreamer.
...
Diffstat (limited to 'qmake/generators/xmloutput.h')
-rw-r--r-- | qmake/generators/xmloutput.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/qmake/generators/xmloutput.h b/qmake/generators/xmloutput.h index a472c99..7c0667c 100644 --- a/qmake/generators/xmloutput.h +++ b/qmake/generators/xmloutput.h @@ -69,9 +69,13 @@ public: tRaw, // Raw text (no formating) tDeclaration, // <?xml version="x.x" encoding="xxx"?> tTag, // <tagname attribute1="value" + tTagValue, // <tagname>value</tagname> + tValueTag, // value</tagname> tCloseTag, // Closes an open tag tAttribute, // attribute2="value"> + tAttributeTag, // attribute on the same line as a tag tData, // Tag data (formating done) + tImport, // <import "type"="path" /> tComment, // <!-- Comment --> tCDATA // <![CDATA[ ... ]]> }; @@ -85,6 +89,7 @@ public: void setIndentLevel(int level); int indentLevel(); void setState(XMLState state); + void setFormat(XMLFormat newFormat); XMLState state(); @@ -121,6 +126,7 @@ private: void addDeclaration(const QString &version, const QString &encoding); void addRaw(const QString &rawText); void addAttribute(const QString &attribute, const QString &value); + void addAttributeTag(const QString &attribute, const QString &value); void addData(const QString &data); // Data @@ -163,6 +169,22 @@ inline XmlOutput::xml_output tag(const QString &name) return XmlOutput::xml_output(XmlOutput::tTag, name, QString()); } + +inline XmlOutput::xml_output valueTag(const QString &value) +{ + return XmlOutput::xml_output(XmlOutput::tValueTag, value, QString()); +} + +inline XmlOutput::xml_output tagValue(const QString &tagName, const QString &value) +{ + return XmlOutput::xml_output(XmlOutput::tTagValue, tagName, value); +} + +inline XmlOutput::xml_output import(const QString &tagName, const QString &value) +{ + return XmlOutput::xml_output(XmlOutput::tImport, tagName, value); +} + inline XmlOutput::xml_output closetag() { return XmlOutput::xml_output(XmlOutput::tCloseTag, QString(), QString()); @@ -184,12 +206,24 @@ inline XmlOutput::xml_output attribute(const QString &name, return XmlOutput::xml_output(XmlOutput::tAttribute, name, value); } +inline XmlOutput::xml_output attributeTag(const QString &name, + const QString &value) +{ + return XmlOutput::xml_output(XmlOutput::tAttributeTag, name, value); +} + inline XmlOutput::xml_output attr(const QString &name, const QString &value) { return attribute(name, value); } +inline XmlOutput::xml_output attrTag(const QString &name, + const QString &value) +{ + return attributeTag(name, value); +} + inline XmlOutput::xml_output data(const QString &text = QString()) { return XmlOutput::xml_output(XmlOutput::tData, text, QString()); |