Ignore:
Timestamp:
Oct 25, 2017 8:06:06 AM (6 years ago)
Author:
krzywon
Branches:
ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
f629e62f
Parents:
9863343
Message:

Use layouts to eliminate hard-coded sizes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/UI/GPUOptionsUI.ui

    r9863343 rc31d41e7  
    77    <x>0</x> 
    88    <y>0</y> 
    9     <width>438</width> 
    10     <height>206</height> 
     9    <width>432</width> 
     10    <height>241</height> 
    1111   </rect> 
    1212  </property> 
     
    2020   <string>OpenCL Options</string> 
    2121  </property> 
    22   <widget class="QPushButton" name="testButton"> 
     22  <property name="windowIcon"> 
     23   <iconset> 
     24    <normaloff>../../../UI/res/ball.ico</normaloff>../../../UI/res/ball.ico</iconset> 
     25  </property> 
     26  <widget class="QWidget" name="verticalLayoutWidget_2"> 
    2327   <property name="geometry"> 
    2428    <rect> 
    25      <x>120</x> 
    26      <y>170</y> 
    27      <width>93</width> 
    28      <height>28</height> 
     29     <x>0</x> 
     30     <y>0</y> 
     31     <width>431</width> 
     32     <height>241</height> 
    2933    </rect> 
    3034   </property> 
    31    <property name="text"> 
    32     <string>Test</string> 
    33    </property> 
    34   </widget> 
    35   <widget class="QPushButton" name="helpButton"> 
    36    <property name="geometry"> 
    37     <rect> 
    38      <x>320</x> 
    39      <y>170</y> 
    40      <width>93</width> 
    41      <height>28</height> 
    42     </rect> 
    43    </property> 
    44    <property name="text"> 
    45     <string>Help</string> 
    46    </property> 
    47    <property name="autoDefault"> 
    48     <bool>true</bool> 
    49    </property> 
    50   </widget> 
    51   <widget class="QGroupBox" name="openCLCheckBoxGroup"> 
    52    <property name="geometry"> 
    53     <rect> 
    54      <x>20</x> 
    55      <y>20</y> 
    56      <width>391</width> 
    57      <height>111</height> 
    58     </rect> 
    59    </property> 
    60    <property name="title"> 
    61     <string>Available OpenCL Options</string> 
    62    </property> 
    63   </widget> 
    64   <widget class="QPushButton" name="resetButton"> 
    65    <property name="geometry"> 
    66     <rect> 
    67      <x>220</x> 
    68      <y>170</y> 
    69      <width>93</width> 
    70      <height>28</height> 
    71     </rect> 
    72    </property> 
    73    <property name="text"> 
    74     <string>Reset</string> 
    75    </property> 
    76   </widget> 
    77   <widget class="QPushButton" name="okButton"> 
    78    <property name="geometry"> 
    79     <rect> 
    80      <x>20</x> 
    81      <y>170</y> 
    82      <width>93</width> 
    83      <height>28</height> 
    84     </rect> 
    85    </property> 
    86    <property name="text"> 
    87     <string>OK</string> 
    88    </property> 
    89   </widget> 
    90   <widget class="QLabel" name="warningMessage"> 
    91    <property name="geometry"> 
    92     <rect> 
    93      <x>20</x> 
    94      <y>132</y> 
    95      <width>391</width> 
    96      <height>37</height> 
    97     </rect> 
    98    </property> 
    99    <property name="font"> 
    100     <font> 
    101      <pointsize>8</pointsize> 
    102     </font> 
    103    </property> 
    104    <property name="text"> 
    105     <string>WARNING: Running tests can take a few minutes!</string> 
    106    </property> 
    107    <property name="alignment"> 
    108     <set>Qt::AlignCenter</set> 
    109    </property> 
     35   <layout class="QVBoxLayout" name="verticalLayout" stretch="5,1,1"> 
     36    <property name="sizeConstraint"> 
     37     <enum>QLayout::SetMinimumSize</enum> 
     38    </property> 
     39    <property name="margin"> 
     40     <number>10</number> 
     41    </property> 
     42    <item> 
     43     <widget class="QGroupBox" name="openCLCheckBoxGroup"> 
     44      <property name="title"> 
     45       <string>Available OpenCL Options</string> 
     46      </property> 
     47      <widget class="QWidget" name="verticalLayoutWidget"> 
     48       <property name="geometry"> 
     49        <rect> 
     50         <x>0</x> 
     51         <y>10</y> 
     52         <width>411</width> 
     53         <height>131</height> 
     54        </rect> 
     55       </property> 
     56       <layout class="QVBoxLayout" name="optionsLayout"> 
     57        <property name="sizeConstraint"> 
     58         <enum>QLayout::SetMinimumSize</enum> 
     59        </property> 
     60        <property name="bottomMargin"> 
     61         <number>0</number> 
     62        </property> 
     63       </layout> 
     64      </widget> 
     65     </widget> 
     66    </item> 
     67    <item> 
     68     <widget class="QLabel" name="warningMessage"> 
     69      <property name="sizePolicy"> 
     70       <sizepolicy hsizetype="Minimum" vsizetype="Preferred"> 
     71        <horstretch>0</horstretch> 
     72        <verstretch>0</verstretch> 
     73       </sizepolicy> 
     74      </property> 
     75      <property name="font"> 
     76       <font> 
     77        <pointsize>8</pointsize> 
     78       </font> 
     79      </property> 
     80      <property name="text"> 
     81       <string>WARNING: Running tests can take a few minutes!</string> 
     82      </property> 
     83      <property name="alignment"> 
     84       <set>Qt::AlignCenter</set> 
     85      </property> 
     86     </widget> 
     87    </item> 
     88    <item> 
     89     <layout class="QHBoxLayout" name="horizontalLayout"> 
     90      <property name="sizeConstraint"> 
     91       <enum>QLayout::SetMinimumSize</enum> 
     92      </property> 
     93      <item> 
     94       <widget class="QPushButton" name="okButton"> 
     95        <property name="text"> 
     96         <string>OK</string> 
     97        </property> 
     98       </widget> 
     99      </item> 
     100      <item> 
     101       <widget class="QPushButton" name="resetButton"> 
     102        <property name="text"> 
     103         <string>Reset</string> 
     104        </property> 
     105       </widget> 
     106      </item> 
     107      <item> 
     108       <widget class="QPushButton" name="helpButton"> 
     109        <property name="text"> 
     110         <string>Help</string> 
     111        </property> 
     112        <property name="autoDefault"> 
     113         <bool>true</bool> 
     114        </property> 
     115       </widget> 
     116      </item> 
     117      <item> 
     118       <widget class="QPushButton" name="testButton"> 
     119        <property name="text"> 
     120         <string>Test</string> 
     121        </property> 
     122       </widget> 
     123      </item> 
     124     </layout> 
     125    </item> 
     126   </layout> 
    110127  </widget> 
    111128 </widget> 
Note: See TracChangeset for help on using the changeset viewer.