XSLTools

Changeset

344:cb137333219c
2005-10-25 paulb raw files shortlog changelog graph [project @ 2005-10-25 14:52:22 by paulb] Introduced div elements for QFrame widgets since these may be nested, and it is necessary to preserve the names of every one.
XSLForms/XSL/QtDesigner.xsl (file)
     1.1 --- a/XSLForms/XSL/QtDesigner.xsl	Tue Oct 25 01:14:01 2005 +0000
     1.2 +++ b/XSLForms/XSL/QtDesigner.xsl	Tue Oct 25 14:52:22 2005 +0000
     1.3 @@ -146,10 +146,12 @@
     1.4    <!-- Container widgets. -->
     1.5  
     1.6    <xsl:template match="widget[@class='QFrame']">
     1.7 -    <xsl:variable name="name-prop" select="property[@name='name']"/>
     1.8 -    <xsl:attribute name="template:element"><xsl:value-of select="$name-prop/cstring/text()"/></xsl:attribute>
     1.9 -    <xsl:apply-templates select="property[@name='geometry']"/>
    1.10 -    <xsl:apply-templates select="*[not(local-name() = 'property')]"/>
    1.11 +    <div>
    1.12 +      <xsl:variable name="name-prop" select="property[@name='name']"/>
    1.13 +      <xsl:attribute name="template:element"><xsl:value-of select="$name-prop/cstring/text()"/></xsl:attribute>
    1.14 +      <xsl:apply-templates select="property[@name='geometry']"/>
    1.15 +      <xsl:apply-templates select="*[not(local-name() = 'property')]"/>
    1.16 +    </div>
    1.17    </xsl:template>
    1.18  
    1.19    <xsl:template match="widget[@class='QTabWidget']">