<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/desktop-widgets, branch v4.9.8</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom?h=v4.9.8</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom?h=v4.9.8'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2020-11-07T23:23:53Z</updated>
<entry>
<title>desktop: minor tweak for dark modes</title>
<updated>2020-11-07T23:23:53Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2020-11-07T22:37:59Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=58ea21588152a34cace3fc70838e0d9d46cf599d'/>
<id>urn:sha1:58ea21588152a34cace3fc70838e0d9d46cf599d</id>
<content type='text'>
This ensures that the BT/BLE devices are legible, regardless of light or dark
mode.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>filter: don't escape '&amp;' in filter-preset menu</title>
<updated>2020-11-07T22:08:39Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-11-07T20:06:54Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=41c0fb4039a48ceab76261fc675d767fb30c949f'/>
<id>urn:sha1:41c0fb4039a48ceab76261fc675d767fb30c949f</id>
<content type='text'>
When constructing an action, '&amp;' is used as the keyboard shortcut
marker. Since this mangles preset names, use the setIconText()
function of the action instead.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>filter: don't render filter preset name as HTML text</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:56:28Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=5caac4c480bee6d471118101ef10eca7575dd092'/>
<id>urn:sha1:5caac4c480bee6d471118101ef10eca7575dd092</id>
<content type='text'>
QLabels must be explicitly set to not accept HTML input.

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>desktop: maximize size of last column in filter-preset table</title>
<updated>2020-11-07T19:37:51Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-11-07T10:25:42Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=68b63534a34a6e0b2af4a99919a439acd3d8be08'/>
<id>urn:sha1:68b63534a34a6e0b2af4a99919a439acd3d8be08</id>
<content type='text'>
This was just ugly: the column with the "trash" symbol and the
name had the same size. On creation of the object, make the last
column expand and adapt the size of the "trash" column according
to its content.

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>
</feed>
