tests/auto/uic3/baseline/metric.ui
changeset 0 1918ee327afb
equal deleted inserted replaced
-1:000000000000 0:1918ee327afb
       
     1 <!DOCTYPE UI><UI version="3.1" stdsetdef="1">
       
     2 <class>ConversionForm</class>
       
     3 <widget class="QDialog">
       
     4     <property name="name">
       
     5         <cstring>ConversionForm</cstring>
       
     6     </property>
       
     7     <property name="geometry">
       
     8         <rect>
       
     9             <x>0</x>
       
    10             <y>0</y>
       
    11             <width>320</width>
       
    12             <height>217</height>
       
    13         </rect>
       
    14     </property>
       
    15     <property name="caption">
       
    16         <string>Metric Conversion</string>
       
    17     </property>
       
    18     <property name="sizeGripEnabled">
       
    19         <bool>true</bool>
       
    20     </property>
       
    21     <vbox>
       
    22         <property name="name">
       
    23             <cstring>unnamed</cstring>
       
    24         </property>
       
    25         <widget class="QLayoutWidget">
       
    26             <property name="name">
       
    27                 <cstring>Layout4</cstring>
       
    28             </property>
       
    29             <grid>
       
    30                 <property name="name">
       
    31                     <cstring>unnamed</cstring>
       
    32                 </property>
       
    33                 <widget class="QLayoutWidget" row="4" column="1">
       
    34                     <property name="name">
       
    35                         <cstring>Layout3</cstring>
       
    36                     </property>
       
    37                     <hbox>
       
    38                         <property name="name">
       
    39                             <cstring>unnamed</cstring>
       
    40                         </property>
       
    41                         <spacer>
       
    42                             <property name="name">
       
    43                                 <cstring>Spacer3</cstring>
       
    44                             </property>
       
    45                             <property name="orientation">
       
    46                                 <enum>Horizontal</enum>
       
    47                             </property>
       
    48                             <property name="sizeType">
       
    49                                 <enum>Expanding</enum>
       
    50                             </property>
       
    51                             <property name="sizeHint">
       
    52                                 <size>
       
    53                                     <width>0</width>
       
    54                                     <height>20</height>
       
    55                                 </size>
       
    56                             </property>
       
    57                         </spacer>
       
    58                         <widget class="QSpinBox">
       
    59                             <property name="name">
       
    60                                 <cstring>decimalsSpinBox</cstring>
       
    61                             </property>
       
    62                             <property name="maxValue">
       
    63                                 <number>6</number>
       
    64                             </property>
       
    65                             <property name="value">
       
    66                                 <number>3</number>
       
    67                             </property>
       
    68                         </widget>
       
    69                     </hbox>
       
    70                 </widget>
       
    71                 <widget class="QComboBox" row="1" column="1">
       
    72                     <item>
       
    73                         <property name="text">
       
    74                             <string>Kilometers</string>
       
    75                         </property>
       
    76                     </item>
       
    77                     <item>
       
    78                         <property name="text">
       
    79                             <string>Meters</string>
       
    80                         </property>
       
    81                     </item>
       
    82                     <item>
       
    83                         <property name="text">
       
    84                             <string>Centimeters</string>
       
    85                         </property>
       
    86                     </item>
       
    87                     <item>
       
    88                         <property name="text">
       
    89                             <string>Millimeters</string>
       
    90                         </property>
       
    91                     </item>
       
    92                     <property name="name">
       
    93                         <cstring>fromComboBox</cstring>
       
    94                     </property>
       
    95                 </widget>
       
    96                 <widget class="QLabel" row="3" column="0">
       
    97                     <property name="name">
       
    98                         <cstring>TextLabel4</cstring>
       
    99                     </property>
       
   100                     <property name="text">
       
   101                         <string>Result:</string>
       
   102                     </property>
       
   103                 </widget>
       
   104                 <widget class="QLabel" row="1" column="0">
       
   105                     <property name="name">
       
   106                         <cstring>TextLabel2</cstring>
       
   107                     </property>
       
   108                     <property name="text">
       
   109                         <string>Convert &amp;From:</string>
       
   110                     </property>
       
   111                     <property name="buddy" stdset="0">
       
   112                         <cstring>fromComboBox</cstring>
       
   113                     </property>
       
   114                 </widget>
       
   115                 <widget class="QLabel" row="2" column="0">
       
   116                     <property name="name">
       
   117                         <cstring>TextLabel3</cstring>
       
   118                     </property>
       
   119                     <property name="text">
       
   120                         <string>Convert &amp;To:</string>
       
   121                     </property>
       
   122                     <property name="buddy" stdset="0">
       
   123                         <cstring>toComboBox</cstring>
       
   124                     </property>
       
   125                 </widget>
       
   126                 <widget class="QLabel" row="4" column="0">
       
   127                     <property name="name">
       
   128                         <cstring>TextLabel1_2</cstring>
       
   129                     </property>
       
   130                     <property name="text">
       
   131                         <string>&amp;Decimals:</string>
       
   132                     </property>
       
   133                     <property name="buddy" stdset="0">
       
   134                         <cstring>decimalsSpinBox</cstring>
       
   135                     </property>
       
   136                 </widget>
       
   137                 <widget class="QLabel" row="0" column="0">
       
   138                     <property name="name">
       
   139                         <cstring>TextLabel1</cstring>
       
   140                     </property>
       
   141                     <property name="text">
       
   142                         <string>Enter &amp;Number:</string>
       
   143                     </property>
       
   144                     <property name="buddy" stdset="0">
       
   145                         <cstring>numberLineEdit</cstring>
       
   146                     </property>
       
   147                 </widget>
       
   148                 <widget class="QLabel" row="3" column="1">
       
   149                     <property name="name">
       
   150                         <cstring>resultLineEdit</cstring>
       
   151                     </property>
       
   152                     <property name="paletteBackgroundColor">
       
   153                         <color>
       
   154                             <red>255</red>
       
   155                             <green>255</green>
       
   156                             <blue>0</blue>
       
   157                         </color>
       
   158                     </property>
       
   159                     <property name="font">
       
   160                         <font>
       
   161                             <bold>1</bold>
       
   162                         </font>
       
   163                     </property>
       
   164                     <property name="frameShape">
       
   165                         <enum>WinPanel</enum>
       
   166                     </property>
       
   167                     <property name="frameShadow">
       
   168                         <enum>Sunken</enum>
       
   169                     </property>
       
   170                     <property name="text">
       
   171                         <string></string>
       
   172                     </property>
       
   173                     <property name="alignment">
       
   174                         <set>AlignVCenter|AlignRight</set>
       
   175                     </property>
       
   176                 </widget>
       
   177                 <widget class="QLineEdit" row="0" column="1">
       
   178                     <property name="name">
       
   179                         <cstring>numberLineEdit</cstring>
       
   180                     </property>
       
   181                     <property name="font">
       
   182                         <font>
       
   183                             <bold>1</bold>
       
   184                         </font>
       
   185                     </property>
       
   186                     <property name="alignment">
       
   187                         <set>AlignRight</set>
       
   188                     </property>
       
   189                 </widget>
       
   190                 <widget class="QComboBox" row="2" column="1">
       
   191                     <item>
       
   192                         <property name="text">
       
   193                             <string>Miles</string>
       
   194                         </property>
       
   195                     </item>
       
   196                     <item>
       
   197                         <property name="text">
       
   198                             <string>Yards</string>
       
   199                         </property>
       
   200                     </item>
       
   201                     <item>
       
   202                         <property name="text">
       
   203                             <string>Feet</string>
       
   204                         </property>
       
   205                     </item>
       
   206                     <item>
       
   207                         <property name="text">
       
   208                             <string>Inches</string>
       
   209                         </property>
       
   210                     </item>
       
   211                     <property name="name">
       
   212                         <cstring>toComboBox</cstring>
       
   213                     </property>
       
   214                 </widget>
       
   215             </grid>
       
   216         </widget>
       
   217         <spacer>
       
   218             <property name="name">
       
   219                 <cstring>Spacer2</cstring>
       
   220             </property>
       
   221             <property name="orientation">
       
   222                 <enum>Vertical</enum>
       
   223             </property>
       
   224             <property name="sizeType">
       
   225                 <enum>Expanding</enum>
       
   226             </property>
       
   227             <property name="sizeHint">
       
   228                 <size>
       
   229                     <width>20</width>
       
   230                     <height>0</height>
       
   231                 </size>
       
   232             </property>
       
   233         </spacer>
       
   234         <widget class="QLayoutWidget">
       
   235             <property name="name">
       
   236                 <cstring>Layout3</cstring>
       
   237             </property>
       
   238             <hbox>
       
   239                 <property name="name">
       
   240                     <cstring>unnamed</cstring>
       
   241                 </property>
       
   242                 <widget class="QPushButton">
       
   243                     <property name="name">
       
   244                         <cstring>clearButton</cstring>
       
   245                     </property>
       
   246                     <property name="text">
       
   247                         <string>&amp;Clear</string>
       
   248                     </property>
       
   249                 </widget>
       
   250                 <widget class="QPushButton">
       
   251                     <property name="name">
       
   252                         <cstring>calculateButton</cstring>
       
   253                     </property>
       
   254                     <property name="text">
       
   255                         <string>Calculate</string>
       
   256                     </property>
       
   257                     <property name="default">
       
   258                         <bool>true</bool>
       
   259                     </property>
       
   260                 </widget>
       
   261                 <spacer>
       
   262                     <property name="name">
       
   263                         <cstring>Spacer27</cstring>
       
   264                     </property>
       
   265                     <property name="orientation">
       
   266                         <enum>Horizontal</enum>
       
   267                     </property>
       
   268                     <property name="sizeType">
       
   269                         <enum>Expanding</enum>
       
   270                     </property>
       
   271                     <property name="sizeHint">
       
   272                         <size>
       
   273                             <width>0</width>
       
   274                             <height>20</height>
       
   275                         </size>
       
   276                     </property>
       
   277                 </spacer>
       
   278                 <widget class="QPushButton">
       
   279                     <property name="name">
       
   280                         <cstring>quitButton</cstring>
       
   281                     </property>
       
   282                     <property name="text">
       
   283                         <string>&amp;Quit</string>
       
   284                     </property>
       
   285                 </widget>
       
   286             </hbox>
       
   287         </widget>
       
   288     </vbox>
       
   289 </widget>
       
   290 <connections>
       
   291     <connection>
       
   292         <sender>clearButton</sender>
       
   293         <signal>clicked()</signal>
       
   294         <receiver>numberLineEdit</receiver>
       
   295         <slot>clear()</slot>
       
   296     </connection>
       
   297     <connection>
       
   298         <sender>quitButton</sender>
       
   299         <signal>clicked()</signal>
       
   300         <receiver>ConversionForm</receiver>
       
   301         <slot>close()</slot>
       
   302     </connection>
       
   303     <connection>
       
   304         <sender>calculateButton</sender>
       
   305         <signal>clicked()</signal>
       
   306         <receiver>ConversionForm</receiver>
       
   307         <slot>convert()</slot>
       
   308     </connection>
       
   309     <connection>
       
   310         <sender>clearButton</sender>
       
   311         <signal>clicked()</signal>
       
   312         <receiver>resultLineEdit</receiver>
       
   313         <slot>clear()</slot>
       
   314     </connection>
       
   315     <connection>
       
   316         <sender>decimalsSpinBox</sender>
       
   317         <signal>valueChanged(int)</signal>
       
   318         <receiver>ConversionForm</receiver>
       
   319         <slot>convert()</slot>
       
   320     </connection>
       
   321     <connection>
       
   322         <sender>fromComboBox</sender>
       
   323         <signal>activated(int)</signal>
       
   324         <receiver>ConversionForm</receiver>
       
   325         <slot>convert()</slot>
       
   326     </connection>
       
   327     <connection>
       
   328         <sender>toComboBox</sender>
       
   329         <signal>activated(int)</signal>
       
   330         <receiver>ConversionForm</receiver>
       
   331         <slot>convert()</slot>
       
   332     </connection>
       
   333     <connection>
       
   334         <sender>clearButton</sender>
       
   335         <signal>released()</signal>
       
   336         <receiver>numberLineEdit</receiver>
       
   337         <slot>setFocus()</slot>
       
   338     </connection>
       
   339     <connection>
       
   340         <sender>calculateButton</sender>
       
   341         <signal>clicked()</signal>
       
   342         <receiver>numberLineEdit</receiver>
       
   343         <slot>setFocus()</slot>
       
   344     </connection>
       
   345 </connections>
       
   346 <tabstops>
       
   347     <tabstop>numberLineEdit</tabstop>
       
   348     <tabstop>fromComboBox</tabstop>
       
   349     <tabstop>toComboBox</tabstop>
       
   350     <tabstop>decimalsSpinBox</tabstop>
       
   351     <tabstop>clearButton</tabstop>
       
   352     <tabstop>calculateButton</tabstop>
       
   353     <tabstop>quitButton</tabstop>
       
   354 </tabstops>
       
   355 <includes>
       
   356     <include location="local" impldecl="in implementation">metric.ui.h</include>
       
   357 </includes>
       
   358 <slots>
       
   359     <slot>convert()</slot>
       
   360 </slots>
       
   361 <functions>
       
   362     <function access="private">init()</function>
       
   363 </functions>
       
   364 <pixmapinproject/>
       
   365 <layoutdefaults spacing="6" margin="11"/>
       
   366 </UI>