1.1 --- a/XSLForms/XSL/QtDesigner.xsl Mon Oct 24 21:34:09 2005 +0000
1.2 +++ b/XSLForms/XSL/QtDesigner.xsl Mon Oct 24 21:34:51 2005 +0000
1.3 @@ -167,6 +167,11 @@
1.4 </xsl:template>
1.5
1.6 <xsl:template match="widget[@class='QWidget']">
1.7 + <!-- NOTE: Suppress overriding of names. -->
1.8 + <xsl:if test="not(../@class) or ../@class != 'QTabWidget'">
1.9 + <xsl:variable name="name-prop" select="property[@name='name']"/>
1.10 + <xsl:attribute name="template:element"><xsl:value-of select="$name-prop/cstring/text()"/></xsl:attribute>
1.11 + </xsl:if>
1.12 <xsl:apply-templates select="property[@name='geometry']"/>
1.13 <xsl:apply-templates select="*[not(local-name() = 'property') and not(local-name() = 'attribute')]"/>
1.14 </xsl:template>
1.15 @@ -209,7 +214,7 @@
1.16 <input xmlns="http://www.w3.org/1999/xhtml" type="submit">
1.17 <xsl:variable name="name-prop" select="property[@name='name']"/>
1.18 <xsl:variable name="value-prop" select="property[@name='text']"/>
1.19 - <xsl:attribute name="template:attribute-button"><xsl:value-of select="$name-prop/cstring/text()"/></xsl:attribute>
1.20 + <xsl:attribute name="template:selector-field"><xsl:value-of select="$name-prop/cstring/text()"/></xsl:attribute>
1.21 <xsl:attribute name="name"><xsl:value-of select="$name-prop/cstring/text()"/></xsl:attribute>
1.22 <xsl:attribute name="value"><xsl:value-of select="$value-prop/string/text()"/></xsl:attribute>
1.23 </input>