<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/profile-widget, branch master</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom?h=master</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2021-08-18T20:22:02Z</updated>
<entry>
<title>profile: use undo infrastructure for editing nicknames</title>
<updated>2021-08-18T20:22:02Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2021-08-17T18:19:41Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=b1d53481ad5f28290ed932fcb2a34ea827b819ef'/>
<id>urn:sha1:b1d53481ad5f28290ed932fcb2a34ea827b819ef</id>
<content type='text'>
This does the right thing even when removing a nickname by setting it to
an empty string. The oddly named DiveListNotifier handles the need to
redraw the profile when the name changes.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>WIP profile: add UI to edit dc nickname</title>
<updated>2021-08-18T20:22:02Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2021-08-17T07:10:33Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=2c12648156a85efa038e0dfd566cef43f9d46eca'/>
<id>urn:sha1:2c12648156a85efa038e0dfd566cef43f9d46eca</id>
<content type='text'>
This is just a quick first implementation - it will need to use the undo
code in the future, but for now this is a reasonable first step.

It's also missing the code to redraw the profile with the updated DC
name.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Add (nonfunctional) dive computer rename hooks</title>
<updated>2021-08-18T20:22:02Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2021-08-17T05:51:07Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=35adf2d72910d0cb287396b08717067d70c8ceb3'/>
<id>urn:sha1:35adf2d72910d0cb287396b08717067d70c8ceb3</id>
<content type='text'>
This adds the menu item to rename a dive computer (ie create a nickname
for it) when right-clicking on the dive computer name of a dive computer
that has a serial number (indicated by having a non-zero -&gt;deviceid).

It is nonfunctional because it's really just the skeleton code: it needs
the UI to actually ask for a new nickname, and then it needs to actually
do the proper "create_device_node(model,serial,nickname)" to set it (or
remove the nickname if empty).

Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>desktop: avoid crash when changing dive logs</title>
<updated>2021-08-17T01:37:59Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2021-08-15T17:05:59Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=f7e222718a6677912094c1994c1681bed5171b28'/>
<id>urn:sha1:f7e222718a6677912094c1994c1681bed5171b28</id>
<content type='text'>
If the last displayed dive had events, those DiveEventItems had slots connected
that would update those icons if things changed. When closing the dive log and
switching to a different one, those slots were still called and would then access
freed memory (the event structure from that old dive that is long gone by then).
This code explicitly deletes those DiveEventItems which also removes those signal
slot connections.

Fixes #3305

Sugested-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>cleanup: remove DiveCalculatedCeiling::profileWidget</title>
<updated>2021-07-30T15:02:05Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2021-07-29T19:50:30Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=55bc1938adade6488c2deacf6d88b66d0780299e'/>
<id>urn:sha1:55bc1938adade6488c2deacf6d88b66d0780299e</id>
<content type='text'>
The DiveCalculatedCeiling had a back-pointer to the profileWidget.
This was used for weird control-flow shenanigans, which were
removed in 975c123a30de95eafd9b3c2ce2a625a1d05a79dc.

Remove this now useless member variable.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>cleanup: unify the ProfileWidget2::shouldCalculateMax* variables</title>
<updated>2021-07-30T15:02:05Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2021-07-29T15:19:50Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=f16a7c262eabfbfd4c70f866d8ee11b8ebda4269'/>
<id>urn:sha1:f16a7c262eabfbfd4c70f866d8ee11b8ebda4269</id>
<content type='text'>
The shouldCalcluateMaxTime and shouldCalculateMaxDepth member
variables of ProfileWidget2 are set to false during drag-mode to
avoid strange shrinking of the graph. They always adopt the
same value. Therefore, replace by a single shouldCalculateMax
boolean.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>cleanup: replace membuffer by qasprintf_loc()</title>
<updated>2021-07-23T18:22:43Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2021-07-20T05:52:54Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=69914964f66f53c4ce413c780b97e52d015538e2'/>
<id>urn:sha1:69914964f66f53c4ce413c780b97e52d015538e2</id>
<content type='text'>
There is a function to format QString with C-format strings. Let's
use it instead of doing a detour via membuffer.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>cleanup: replace membuffer by membufferpp in C-code</title>
<updated>2021-07-23T18:22:43Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2021-07-20T05:45:31Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=16b31985c3245d5cb3be26f3cc0aa06bc6acb139'/>
<id>urn:sha1:16b31985c3245d5cb3be26f3cc0aa06bc6acb139</id>
<content type='text'>
Thus, the membuffer data is automatically freed when going
out of scope - one thing less to worry about.

This fixes one use-after-free bug in uploadDiveLogsDE.cpp
and one extremely questionable practice in divetooltipitem.cpp:
The membuffer was a shared instance across all instances
of the DiveToolTipItem.

Remves unnecessary #include directives in files that didn't
even use membuffer.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>cleanup: remove function static variables</title>
<updated>2021-07-20T16:27:35Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2021-07-20T06:17:08Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=9f277e65ffd8c6859f0f7d095289159b7007a061'/>
<id>urn:sha1:9f277e65ffd8c6859f0f7d095289159b7007a061</id>
<content type='text'>
There were two function-static variables in ToolTipItem::refresh(),
which is a very scary proposition. Curently, there is only
one ToolTipItem, but this may change on mobile, where there
are multiple profiles at the same time.

Remove this timebomb and make the two objects subobjects.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>printing: remote incorrect scaling of event icons</title>
<updated>2021-07-11T20:02:43Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2021-07-11T19:06:28Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=235ee4803f9ffc3108e1e00b51afeeb86e8d95a6'/>
<id>urn:sha1:235ee4803f9ffc3108e1e00b51afeeb86e8d95a6</id>
<content type='text'>
It appears that this well intended change in commit 52aa7d83b6 ("Increase event
icon size in print mode") actually causes the scaling of the event icons to be
generally wrong. This removes the hard 4* scaling and also adds some debugging
output in verbose mode.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
</feed>
