<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<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>
<br>
<blockquote
cite="mid:116833D3-BF54-409F-89AB-1FF463573000@hohndel.org"
type="cite">
<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="3">
<li class="">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.</li>
</ol>
</div>
</blockquote>
</div>
</div>
</div>
<div><br class="">
<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>
<br>
<blockquote
cite="mid:116833D3-BF54-409F-89AB-1FF463573000@hohndel.org"
type="cite">
<div>Aligning with spaces is a non-starter because it gets messed
up with translations. We need to programmatically line things up
correctly. Again, this is a Qt issue.</div>
<div><br class="">
<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>
<br>
<blockquote
cite="mid:116833D3-BF54-409F-89AB-1FF463573000@hohndel.org"
type="cite">
<div>Thanks</div>
<div><br class="">
</div>
<div>/D</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
subsurface mailing list
<a class="moz-txt-link-abbreviated" href="mailto:subsurface@subsurface-divelog.org">subsurface@subsurface-divelog.org</a>
<a class="moz-txt-link-freetext" href="http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface">http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface</a>
</pre>
</blockquote>
<br>
</body>
</html>