1.1 --- a/XSLForms/XSL/QtDesigner.xsl Sat Oct 22 16:04:13 2005 +0000
1.2 +++ b/XSLForms/XSL/QtDesigner.xsl Mon Oct 24 00:00:21 2005 +0000
1.3 @@ -134,12 +134,42 @@
1.4 <xsl:apply-templates select="*[not(local-name() = 'property')]"/>
1.5 </xsl:template>
1.6
1.7 + <xsl:template match="hbox">
1.8 + <xsl:apply-templates select="*[not(local-name() = 'property')]"/>
1.9 + </xsl:template>
1.10 +
1.11 <xsl:template match="widget">
1.12 <xsl:apply-templates select="property[@name='geometry']"/>
1.13 <xsl:apply-templates select="*[not(local-name() = 'property')]"/>
1.14 </xsl:template>
1.15
1.16 + <!-- Container widgets. -->
1.17
1.18 + <xsl:template match="widget[@class='QFrame']">
1.19 + <xsl:variable name="name-prop" select="property[@name='name']"/>
1.20 + <xsl:attribute name="template:element"><xsl:value-of select="$name-prop/cstring/text()"/></xsl:attribute>
1.21 + <xsl:apply-templates select="property[@name='geometry']"/>
1.22 + <xsl:apply-templates select="*[not(local-name() = 'property')]"/>
1.23 + </xsl:template>
1.24 +
1.25 + <xsl:template match="widget[@class='QTabWidget']">
1.26 + <xsl:variable name="name-prop" select="property[@name='name']"/>
1.27 + <xsl:attribute name="template:element"><xsl:value-of select="$name-prop/cstring/text()"/></xsl:attribute>
1.28 + <xsl:apply-templates select="property[@name='geometry']"/>
1.29 + <xsl:apply-templates select="*[not(local-name() = 'property')]"/>
1.30 + </xsl:template>
1.31 +
1.32 + <xsl:template match="widget[@class='QWidgetStack']">
1.33 + <xsl:variable name="name-prop" select="property[@name='name']"/>
1.34 + <xsl:attribute name="template:element"><xsl:value-of select="$name-prop/cstring/text()"/></xsl:attribute>
1.35 + <xsl:apply-templates select="property[@name='geometry']"/>
1.36 + <xsl:apply-templates select="*[not(local-name() = 'property')]"/>
1.37 + </xsl:template>
1.38 +
1.39 + <xsl:template match="widget[@class='QWidget']">
1.40 + <xsl:apply-templates select="property[@name='geometry']"/>
1.41 + <xsl:apply-templates select="*[not(local-name() = 'property') and not(local-name() = 'attribute')]"/>
1.42 + </xsl:template>
1.43
1.44 <!-- Specific widgets. -->
1.45