<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/desktop-widgets/tab-widgets, branch v4.9.9</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom?h=v4.9.9</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom?h=v4.9.9'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2020-11-12T19:22:12Z</updated>
<entry>
<title>desktop: update completion models if dive was edited</title>
<updated>2020-11-12T19:22:12Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-11-12T16:13:48Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=b390fb368dabfeeb9bc1b800bc7a56b5963c9b94'/>
<id>urn:sha1:b390fb368dabfeeb9bc1b800bc7a56b5963c9b94</id>
<content type='text'>
In the main-tab, when changing tag, buddy or divemaster,
update the corresponding completion model.
This is a quick-fix and the wrong thing to do. It works only
if the currently shown dive is changed, which is not a given.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>desktop: fix saving of column-widths of device and site tables</title>
<updated>2020-11-07T19:37:51Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-11-07T12:20:46Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=396598430ba19416795edc5e1b960efdcafed5c6'/>
<id>urn:sha1:396598430ba19416795edc5e1b960efdcafed5c6</id>
<content type='text'>
Qt's memory management scheme is completely broken and messes
with common expectations.

QObjects are organized as a tree. The children are destroyed
in the destructor of QObject. This means that they are destructed
after the destructor of the parent object has run and its
sub-object were destructed. Obviously, this makes no sense as
the child objects should be able to access their parent at
any time.

To restore the commonly expected deterministic order of
construction and destruction, one might simply do away with
Qt's silly object tree and organise things using classical
subobjects. However, that breaks with the Qt-generated UI
classes: The objects generated by these classes are *not*
destructed with the UI class. Instead, they are attached
to the widget's QObject tree. Thus these are again destructed
*after* the widget! Who comes up with such a scheme?

In our case this means that we cannot have models used for
TableViews as subobjects, because the TableView needs the
model to save the column widths in the destructor. Which,
as detailed above is called *after* the desctructor of the
widget! Thus, turn these models into heap-allocated objects
and add them to the QObject tree.

Funilly, this exposes another insanity of Qt's QObject tree:
Children are destructed in order of construction! One would
expect that if objects are constructed in the sequence
A, B, C one can expect that C can, at any time, access B and A.
Not so in Qt: The destruction order is likewise A, B, C!

Thus, take care to init the widgets before the model. Jeez.

Finally, print a warning in the column-saving code of
TableWidget, so that these kind of subtleties are caught
in the future.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>desktop: rename table widget in DiveComputerTab to "devices"</title>
<updated>2020-11-07T19:37:51Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-11-07T11:58:27Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=291768b63cd3443372d47ccc67858c398287d867'/>
<id>urn:sha1:291768b63cd3443372d47ccc67858c398287d867</id>
<content type='text'>
The custom TableView widget saves the table width on destruction.
For that, it uses the "objectName()". Since the table of the
DiveComputerTab was simply called "table" in the UI file, the
widths were saved in that generic section. To avoid future
name-conflicts, rename the widget to "devices".

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>revert preference settings for title color</title>
<updated>2020-11-04T22:51:55Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2020-11-04T22:29:48Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=be3190db8a14fc51d88c65f5359b9b7787acd2a7'/>
<id>urn:sha1:be3190db8a14fc51d88c65f5359b9b7787acd2a7</id>
<content type='text'>
Because of subsequent changes there is no clean way to just revert the changes
introduced in commit 8b36cf1051 ("desktop: offer different colors for info tab
titles"), so this manually removes the parts we don't need anymore.

This also restores a tooltip value that was inadvertantly removed in that
commit.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>desktop: automatically pick a good theme title color</title>
<updated>2020-11-04T22:47:10Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2020-11-04T21:09:44Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=6201ac34b412eb57e0ca03401da22ed9ae683c38'/>
<id>urn:sha1:6201ac34b412eb57e0ca03401da22ed9ae683c38</id>
<content type='text'>
The preference setting seemed far too strange to do this. And not very user
friendly. So instead we figure out if this is a dark theme or not by looking at
text and background colors in the palette, and make sure we get notified if
that changes.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Reorganise the current statistics tab</title>
<updated>2020-11-04T19:34:26Z</updated>
<author>
<name>willemferguson</name>
<email>willemferguson@zoology.up.ac.za</email>
</author>
<published>2020-11-03T07:03:32Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=335d3f9c07ec5d7a053a5699922c3514affecc59'/>
<id>urn:sha1:335d3f9c07ec5d7a053a5699922c3514affecc59</id>
<content type='text'>
As the title above says....

Signed-off-by: willemferguson &lt;willemferguson@zoology.up.ac.za&gt;
</content>
</entry>
<entry>
<title>desktop: generalize the colorization of the tab widget</title>
<updated>2020-11-04T07:08:39Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2020-11-02T20:36:29Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=814cda718365823654c7d13f2e24f31ac58ddb45'/>
<id>urn:sha1:814cda718365823654c7d13f2e24f31ac58ddb45</id>
<content type='text'>
Instead of doing it just for the Information tab, do it for all of the tabs.
There's still room for improvement. But this certainly feels more consistent.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>desktop: allow update of tab widget colors at run time</title>
<updated>2020-11-04T07:08:39Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2020-11-02T20:10:33Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=7d18a525f178c2c47ec72a96fbda92d5595f95d9'/>
<id>urn:sha1:7d18a525f178c2c47ec72a96fbda92d5595f95d9</id>
<content type='text'>
Adding a new virtual function to all of these classes may seem like overkill,
but of course the idea is that likely we'd allow similar changes to all of
them.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>desktop: offer different colors for info tab titles</title>
<updated>2020-11-04T07:08:39Z</updated>
<author>
<name>willemferguson</name>
<email>willemferguson@zoology.up.ac.za</email>
</author>
<published>2020-11-01T18:43:54Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=8b36cf10518c54d76134686a3e079bbde176022b'/>
<id>urn:sha1:8b36cf10518c54d76134686a3e079bbde176022b</id>
<content type='text'>
Add a preference option to set the color of the text on the information tab to
either MediumBlue, LightBlue or Black. The last two of these colors are meant
to enable areadable font contrast on displays with dark mode.
The choice is saved with the other preferences.

[Dirk Hohndel: this isn't really about dark mode, so changed many of the types
	       and variable names, changed the user visible texts, and
               addressed some whitespace issues]

Signed-off-by: willemferguson &lt;willemferguson@zoology.up.ac.za&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>desktop: add label to dive computer table</title>
<updated>2020-10-29T22:00:20Z</updated>
<author>
<name>Doug Junkins</name>
<email>junkins@foghead.com</email>
</author>
<published>2020-10-29T00:26:10Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=e6956b9d57727d886ba7c5432922745a0b10334d'/>
<id>urn:sha1:e6956b9d57727d886ba7c5432922745a0b10334d</id>
<content type='text'>
There was no "title" property on the dive computer table which
was causing an default label of "GroupBox" to appear above the
table. Added a title property to clean up the UI.

Signed-off-by: Doug Junkins &lt;junkins@foghead.com&gt;
</content>
</entry>
</feed>
