<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div><br></div><div><br>On Oct 31, 2016, at 09:04, Willem Ferguson <<a href="mailto:willemferguson@zoology.up.ac.za">willemferguson@zoology.up.ac.za</a>> wrote:<br><br></div><blockquote type="cite"><div>
  
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  
  
    <div class="moz-cite-prefix">On 31/10/2016 15:13, Dirk Hohndel
      wrote:<br>
    </div>
    <blockquote cite="mid:116833D3-BF54-409F-89AB-1FF463573000@hohndel.org" type="cite">
      <div>
        <div>Even when the Apply button is selected, the option(s) (e.g.
          VPMB conservatism, GFHigh, GFLow) are not greyed out in the
          appropriate way. This only happens once either the VPMB or the
          Bühlmann radio button is selected.</div>
      </div>
    </blockquote>
    <br>
    <blockquote cite="mid:116833D3-BF54-409F-89AB-1FF463573000@hohndel.org" type="cite">
      <div>That isn’t hard to do in the UI code. Do you need help with
        that?</div>
    </blockquote>
    <br>
    Please give me a pointer or two.<br></div></blockquote><div><br></div>Have a conditional on the 'enable' property that links it to the value of the checkbox.<div>So in the onTriggered() function of the checkbox, enable / disable the other elements accordingly.</div><div><br></div><div><blockquote type="cite"><div><blockquote cite="mid:116833D3-BF54-409F-89AB-1FF463573000@hohndel.org" type="cite"><div><blockquote type="cite" class=""><div class=""><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000" class=""><ol class="" start="4"><li class="">I found it difficult to right-align
                        the text in some fields. At the moment some
                        alignment is done by inserting spaces on the
                        left of the appropriate string properties in the
                        preferences_graph.ui file. This is not optimal
                        at all. There is a Qt::Alignment class member
                        and I tried defining a property in the XML and
                        then setting this alignment property to
                        Qt::AlignRight. This works, but messes up the
                        vertical alignment of the specific text lable. I
                        have not found a better solution than the
                        present one but maybe someone knows of a more
                        elegant solution.</li>
                    </ol>
                  </div>
                </blockquote>
              </div>
            </div>
          </div>
        </blockquote>
        <div><br class="">
        </div>
      </div>
    </blockquote>
    I see on the language preference tab, the construct below is used
    for spacing. But that tab has a vertical layout, not a grid layout.<br>
    <br>
           <spacer name="horizontalSpacer"><br>
            <property name="orientation"><br>
             <enum>Qt::Horizontal</enum><br>
            </property><br>
            <property name="sizeHint" stdset="0"><br>
             <size><br>
              <width>203</width><br>
              <height>20</height><br>
             </size><br>
            </property><br>
           </spacer><br>
    <br>
    Any suggestion of what may work here?<br></div></blockquote><div><br></div>I'm not a layout guru (and am on my iPad, not my computer)... maybe someone else could take a look?</div><div><br><blockquote type="cite"><div>
    
    <blockquote cite="mid:116833D3-BF54-409F-89AB-1FF463573000@hohndel.org" type="cite">
      <div>
        <blockquote type="cite" class="">
          <div class="">
            <div class="gmail_extra">
              <div class="gmail_quote">
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <div bgcolor="#FFFFFF" text="#000000" class="">
                    <ol class="" start="5">
                      <li class="">There are a few small problems with
                        the naming of properties in the XML. This comes
                        from the existing code but can easily be fixed.</li>
                    </ol>
                  </div>
                </blockquote>
              </div>
            </div>
          </div>
        </blockquote>
        <br class="">
      </div>
      <div>Can you say more about that, please?</div>
      <div><br class="">
      </div>
    </blockquote>
    Generating ui_preferences_graph.h<br>
    /home/willem/src/subsurface/desktop-widgets/preferences/preferences_graph.ui:
    Warning: The name 'label_26' (QLabel) is already in use, defaulting
    to 'label_261'.<br>
    /home/willem/src/subsurface/desktop-widgets/preferences/preferences_graph.ui:
    Warning: The name 'label_18' (QLabel) is already in use, defaulting
    to 'label_181'.<br>
    /home/willem/src/subsurface/desktop-widgets/preferences/preferences_graph.ui:
    Warning: The name 'pSCR' (QLabel) is already in use, defaulting to
    'pSCR1'.<br>
    /home/willem/src/subsurface/desktop-widgets/preferences/preferences_graph.ui:
    Warning: The name 'groupBox_5' (QGroupBox) is already in use,
    defaulting to 'groupBox_51'.<br>
    /home/willem/src/subsurface/desktop-widgets/preferences/preferences_graph.ui:
    Warning: The name 'gridLayout_2' (QGridLayout) is already in use,
    defaulting to 'gridLayout_21'.<br>
    <br>
    Duplicate labels. I think trivial to fix.<br></div></blockquote><div><br></div>It auto-fixes it for you, so this should be harmless.</div><div><br></div><div>/D</div></body></html>