Changeset bda1faa7 in sasview


Ignore:
Timestamp:
Feb 8, 2017 2:46:57 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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:
57b7ee2
Parents:
e712ca5
Message:

Another attempt at fixing OSX line edit resizing issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/UI/BoxSumUI.ui

    re712ca5 rbda1faa7  
    77    <x>0</x> 
    88    <y>0</y> 
    9     <width>447</width> 
    10     <height>315</height> 
     9    <width>322</width> 
     10    <height>313</height> 
    1111   </rect> 
    1212  </property> 
     
    2424    <normaloff>:/res/ball.ico</normaloff>:/res/ball.ico</iconset> 
    2525  </property> 
    26   <layout class="QGridLayout" name="gridLayout_7"> 
     26  <layout class="QGridLayout" name="gridLayout_4"> 
    2727   <item row="0" column="0" colspan="2"> 
    2828    <widget class="QGroupBox" name="groupBox"> 
     29     <property name="sizePolicy"> 
     30      <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> 
     31       <horstretch>0</horstretch> 
     32       <verstretch>0</verstretch> 
     33      </sizepolicy> 
     34     </property> 
    2935     <property name="title"> 
    3036      <string>Box dimensions</string> 
    3137     </property> 
    32      <layout class="QGridLayout" name="gridLayout_4"> 
     38     <layout class="QGridLayout" name="gridLayout_3"> 
    3339      <item row="0" column="0"> 
    34        <layout class="QGridLayout" name="gridLayout_3"> 
    35         <item row="0" column="0"> 
    36          <widget class="QGroupBox" name="groupBox_4"> 
    37           <property name="title"> 
    38            <string>Box size</string> 
    39           </property> 
    40           <layout class="QGridLayout" name="gridLayout"> 
    41            <item row="0" column="0"> 
    42             <widget class="QLabel" name="label"> 
    43              <property name="toolTip"> 
    44               <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Height of the box.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
    45              </property> 
    46              <property name="text"> 
    47               <string>Height</string> 
    48              </property> 
    49             </widget> 
    50            </item> 
    51            <item row="0" column="1"> 
    52             <widget class="QLineEdit" name="txtBoxHeight"> 
    53              <property name="toolTip"> 
    54               <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Height of the box.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
    55              </property> 
    56             </widget> 
    57            </item> 
    58            <item row="0" column="2"> 
    59             <widget class="QLabel" name="label_10"> 
    60              <property name="text"> 
    61               <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;A&lt;span style=&quot; vertical-align:super;&quot;&gt;-1&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
    62              </property> 
    63             </widget> 
    64            </item> 
    65            <item row="1" column="0"> 
    66             <widget class="QLabel" name="label_2"> 
    67              <property name="toolTip"> 
    68               <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Width of the box.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
    69              </property> 
    70              <property name="text"> 
    71               <string>Width</string> 
    72              </property> 
    73             </widget> 
    74            </item> 
    75            <item row="1" column="1"> 
    76             <widget class="QLineEdit" name="txtBoxWidth"> 
    77              <property name="toolTip"> 
    78               <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Width of the box.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
    79              </property> 
    80             </widget> 
    81            </item> 
    82            <item row="1" column="2"> 
    83             <widget class="QLabel" name="label_11"> 
    84              <property name="text"> 
    85               <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;A&lt;span style=&quot; vertical-align:super;&quot;&gt;-1&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
    86              </property> 
    87             </widget> 
    88            </item> 
    89           </layout> 
    90          </widget> 
    91         </item> 
    92         <item row="0" column="1"> 
    93          <widget class="QGroupBox" name="groupBox_2"> 
    94           <property name="title"> 
    95            <string>Box center</string> 
    96           </property> 
    97           <layout class="QGridLayout" name="gridLayout_2"> 
    98            <item row="0" column="0"> 
    99             <widget class="QLabel" name="label_3"> 
    100              <property name="toolTip"> 
    101               <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;X coordinate of the center of the box.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
    102              </property> 
    103              <property name="text"> 
    104               <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Q&lt;span style=&quot; vertical-align:sub;&quot;&gt;X&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
    105              </property> 
    106             </widget> 
    107            </item> 
    108            <item row="0" column="1"> 
    109             <widget class="QLineEdit" name="txtCenterX"> 
    110              <property name="toolTip"> 
    111               <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;X coordinate of the center of the box.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
    112              </property> 
    113             </widget> 
    114            </item> 
    115            <item row="0" column="2"> 
    116             <widget class="QLabel" name="label_13"> 
    117              <property name="text"> 
    118               <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;A&lt;span style=&quot; vertical-align:super;&quot;&gt;-1&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
    119              </property> 
    120             </widget> 
    121            </item> 
    122            <item row="1" column="0"> 
    123             <widget class="QLabel" name="label_4"> 
    124              <property name="toolTip"> 
    125               <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Y coordinate of the center of the box.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
    126              </property> 
    127              <property name="text"> 
    128               <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Q&lt;span style=&quot; vertical-align:sub;&quot;&gt;Y&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
    129              </property> 
    130             </widget> 
    131            </item> 
    132            <item row="1" column="1"> 
    133             <widget class="QLineEdit" name="txtCenterY"> 
    134              <property name="toolTip"> 
    135               <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Y coordinate of the center of the box.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
    136              </property> 
    137              <property name="text"> 
    138               <string/> 
    139              </property> 
    140             </widget> 
    141            </item> 
    142            <item row="1" column="2"> 
    143             <widget class="QLabel" name="label_12"> 
    144              <property name="text"> 
    145               <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;A&lt;span style=&quot; vertical-align:super;&quot;&gt;-1&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
    146              </property> 
    147             </widget> 
    148            </item> 
    149           </layout> 
    150          </widget> 
    151         </item> 
    152        </layout> 
     40       <widget class="QGroupBox" name="groupBox_4"> 
     41        <property name="sizePolicy"> 
     42         <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> 
     43          <horstretch>0</horstretch> 
     44          <verstretch>0</verstretch> 
     45         </sizepolicy> 
     46        </property> 
     47        <property name="title"> 
     48         <string>Box size</string> 
     49        </property> 
     50        <layout class="QGridLayout" name="gridLayout"> 
     51         <item row="0" column="0"> 
     52          <widget class="QLabel" name="label"> 
     53           <property name="sizePolicy"> 
     54            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> 
     55             <horstretch>0</horstretch> 
     56             <verstretch>0</verstretch> 
     57            </sizepolicy> 
     58           </property> 
     59           <property name="toolTip"> 
     60            <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Height of the box.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     61           </property> 
     62           <property name="text"> 
     63            <string>Height</string> 
     64           </property> 
     65          </widget> 
     66         </item> 
     67         <item row="0" column="1"> 
     68          <widget class="QLineEdit" name="txtBoxHeight"> 
     69           <property name="sizePolicy"> 
     70            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> 
     71             <horstretch>0</horstretch> 
     72             <verstretch>0</verstretch> 
     73            </sizepolicy> 
     74           </property> 
     75           <property name="minimumSize"> 
     76            <size> 
     77             <width>70</width> 
     78             <height>0</height> 
     79            </size> 
     80           </property> 
     81           <property name="maximumSize"> 
     82            <size> 
     83             <width>70</width> 
     84             <height>16777215</height> 
     85            </size> 
     86           </property> 
     87           <property name="toolTip"> 
     88            <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Height of the box.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     89           </property> 
     90          </widget> 
     91         </item> 
     92         <item row="0" column="2"> 
     93          <widget class="QLabel" name="label_10"> 
     94           <property name="sizePolicy"> 
     95            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> 
     96             <horstretch>0</horstretch> 
     97             <verstretch>0</verstretch> 
     98            </sizepolicy> 
     99           </property> 
     100           <property name="text"> 
     101            <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;à
     102&lt;span style=&quot; vertical-align:super;&quot;&gt;-1&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     103           </property> 
     104          </widget> 
     105         </item> 
     106         <item row="1" column="0"> 
     107          <widget class="QLabel" name="label_2"> 
     108           <property name="sizePolicy"> 
     109            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> 
     110             <horstretch>0</horstretch> 
     111             <verstretch>0</verstretch> 
     112            </sizepolicy> 
     113           </property> 
     114           <property name="toolTip"> 
     115            <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Width of the box.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     116           </property> 
     117           <property name="text"> 
     118            <string>Width</string> 
     119           </property> 
     120          </widget> 
     121         </item> 
     122         <item row="1" column="1"> 
     123          <widget class="QLineEdit" name="txtBoxWidth"> 
     124           <property name="sizePolicy"> 
     125            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> 
     126             <horstretch>0</horstretch> 
     127             <verstretch>0</verstretch> 
     128            </sizepolicy> 
     129           </property> 
     130           <property name="minimumSize"> 
     131            <size> 
     132             <width>70</width> 
     133             <height>0</height> 
     134            </size> 
     135           </property> 
     136           <property name="maximumSize"> 
     137            <size> 
     138             <width>70</width> 
     139             <height>16777215</height> 
     140            </size> 
     141           </property> 
     142           <property name="toolTip"> 
     143            <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Width of the box.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     144           </property> 
     145          </widget> 
     146         </item> 
     147         <item row="1" column="2"> 
     148          <widget class="QLabel" name="label_11"> 
     149           <property name="sizePolicy"> 
     150            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> 
     151             <horstretch>0</horstretch> 
     152             <verstretch>0</verstretch> 
     153            </sizepolicy> 
     154           </property> 
     155           <property name="text"> 
     156            <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;à
     157&lt;span style=&quot; vertical-align:super;&quot;&gt;-1&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     158           </property> 
     159          </widget> 
     160         </item> 
     161        </layout> 
     162       </widget> 
     163      </item> 
     164      <item row="0" column="1"> 
     165       <widget class="QGroupBox" name="groupBox_2"> 
     166        <property name="sizePolicy"> 
     167         <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> 
     168          <horstretch>0</horstretch> 
     169          <verstretch>0</verstretch> 
     170         </sizepolicy> 
     171        </property> 
     172        <property name="title"> 
     173         <string>Box center</string> 
     174        </property> 
     175        <layout class="QGridLayout" name="gridLayout_2"> 
     176         <item row="0" column="0"> 
     177          <widget class="QLabel" name="label_3"> 
     178           <property name="toolTip"> 
     179            <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;X coordinate of the center of the box.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     180           </property> 
     181           <property name="text"> 
     182            <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Q&lt;span style=&quot; vertical-align:sub;&quot;&gt;X&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     183           </property> 
     184          </widget> 
     185         </item> 
     186         <item row="0" column="1"> 
     187          <widget class="QLineEdit" name="txtCenterX"> 
     188           <property name="sizePolicy"> 
     189            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> 
     190             <horstretch>0</horstretch> 
     191             <verstretch>0</verstretch> 
     192            </sizepolicy> 
     193           </property> 
     194           <property name="minimumSize"> 
     195            <size> 
     196             <width>70</width> 
     197             <height>0</height> 
     198            </size> 
     199           </property> 
     200           <property name="maximumSize"> 
     201            <size> 
     202             <width>70</width> 
     203             <height>16777215</height> 
     204            </size> 
     205           </property> 
     206           <property name="toolTip"> 
     207            <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;X coordinate of the center of the box.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     208           </property> 
     209          </widget> 
     210         </item> 
     211         <item row="0" column="2"> 
     212          <widget class="QLabel" name="label_13"> 
     213           <property name="text"> 
     214            <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;à
     215&lt;span style=&quot; vertical-align:super;&quot;&gt;-1&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     216           </property> 
     217          </widget> 
     218         </item> 
     219         <item row="1" column="0"> 
     220          <widget class="QLabel" name="label_4"> 
     221           <property name="toolTip"> 
     222            <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Y coordinate of the center of the box.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     223           </property> 
     224           <property name="text"> 
     225            <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Q&lt;span style=&quot; vertical-align:sub;&quot;&gt;Y&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     226           </property> 
     227          </widget> 
     228         </item> 
     229         <item row="1" column="1"> 
     230          <widget class="QLineEdit" name="txtCenterY"> 
     231           <property name="sizePolicy"> 
     232            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> 
     233             <horstretch>0</horstretch> 
     234             <verstretch>0</verstretch> 
     235            </sizepolicy> 
     236           </property> 
     237           <property name="minimumSize"> 
     238            <size> 
     239             <width>70</width> 
     240             <height>0</height> 
     241            </size> 
     242           </property> 
     243           <property name="maximumSize"> 
     244            <size> 
     245             <width>70</width> 
     246             <height>16777215</height> 
     247            </size> 
     248           </property> 
     249           <property name="toolTip"> 
     250            <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Y coordinate of the center of the box.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     251           </property> 
     252           <property name="text"> 
     253            <string/> 
     254           </property> 
     255          </widget> 
     256         </item> 
     257         <item row="1" column="2"> 
     258          <widget class="QLabel" name="label_12"> 
     259           <property name="text"> 
     260            <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;à
     261&lt;span style=&quot; vertical-align:super;&quot;&gt;-1&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     262           </property> 
     263          </widget> 
     264         </item> 
     265        </layout> 
     266       </widget> 
    153267      </item> 
    154268     </layout> 
     
    157271   <item row="1" column="0" colspan="2"> 
    158272    <widget class="QGroupBox" name="groupBox_3"> 
     273     <property name="sizePolicy"> 
     274      <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> 
     275       <horstretch>0</horstretch> 
     276       <verstretch>0</verstretch> 
     277      </sizepolicy> 
     278     </property> 
    159279     <property name="title"> 
    160280      <string>Box parameters</string> 
Note: See TracChangeset for help on using the changeset viewer.