浏览代码

Removed obsolete property generation, added missing constraints template.

Sascha Zelzer 12 年之前
父节点
当前提交
b69f790339
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      Libs/CommandLineModules/Frontend/QtGui/Resources/ctkCmdLineModuleXmlToQtUi.xsl

+ 1 - 4
Libs/CommandLineModules/Frontend/QtGui/Resources/ctkCmdLineModuleXmlToQtUi.xsl

@@ -110,10 +110,6 @@
     <property name="singleStep">
     <property name="singleStep">
       <xsl:element name="{ctk:mapTypeToQtDesigner(name(../..))}"><xsl:value-of select="text()"/></xsl:element>
       <xsl:element name="{ctk:mapTypeToQtDesigner(name(../..))}"><xsl:value-of select="text()"/></xsl:element>
     </property>
     </property>
-    <!-- Also add the 'step' information under the original name -->
-    <property name="parameter:step">
-      <string><xsl:value-of select="text()"/></string>
-    </property>
   </xsl:template>
   </xsl:template>
 
 
   <!-- A named template which will be called from each parameter (integer, float, image, etc.) element.
   <!-- A named template which will be called from each parameter (integer, float, image, etc.) element.
@@ -154,6 +150,7 @@
 
 
     <!-- add additional (optional) information as properties -->
     <!-- add additional (optional) information as properties -->
     <xsl:apply-templates select="default"/>
     <xsl:apply-templates select="default"/>
+    <xsl:apply-templates select="constraints"/>
   </xsl:template>
   </xsl:template>
   
   
   <!-- A named template for creating a QtDesigner stringlist property -->
   <!-- A named template for creating a QtDesigner stringlist property -->