<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/profile-widget, branch v4.9.4</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom/profile-widget?h=v4.9.4</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom/profile-widget?h=v4.9.4'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2020-05-01T19:44:50Z</updated>
<entry>
<title>profile: properly update lastgasmix when populating events</title>
<updated>2020-05-01T19:44:50Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-05-01T09:30:50Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=f4b948e80d15f986887e647ff4e20de9e0d6453d'/>
<id>urn:sha1:f4b948e80d15f986887e647ff4e20de9e0d6453d</id>
<content type='text'>
When populating the events of a profile, a pointer to the current
gasmix was passed around to properly calculate isobaric_counterdiffusion.
The DiveEventItem::setupToolTipString() function updated this gasmix
when processing gas change events.

I inadvertently broke the code when replacing gasmix-pointers by
values. We could of course simply revert this part of the commit.
However, the data flow was horrible anyway: for example is supposed
that the setup functions were called in the correct order (i.e.
DiveEventItem::setupToolTipString() is called after all other
functions using the gasmix). Not exactly easy to follow.

Therefore, keep passing around the gasmix as value to make it clear
that the functions don't modify it. Keep the gasmix up-to-date at
the caller's site in ProfileWidget2::plotDive().

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>cleanup: replace Q_ASSERT by qWarning</title>
<updated>2020-04-30T23:55:19Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-04-30T23:14:53Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=0c28821d2895e246295884891df02e924eb8e359'/>
<id>urn:sha1:0c28821d2895e246295884891df02e924eb8e359</id>
<content type='text'>
These two Q_ASSERTs made no sense - their expression (a string
literal) always evaluated to true. A qWarning() was intended here.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>profile: set empty state when there is no current dive to show</title>
<updated>2020-04-27T20:19:31Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-04-27T19:42:48Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=142dc6f96fdfdef3132503a9e5f19944ea53325c'/>
<id>urn:sha1:142dc6f96fdfdef3132503a9e5f19944ea53325c</id>
<content type='text'>
The profile data was not properly cleared when not showing a
dive.

Fixes #2787

Reported-by: Robert C. Helling &lt;helling@atdotde.de&gt;
Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>cleanup: move get_dc_nickname from qthelper.cpp to divecomputer.cpp</title>
<updated>2020-04-24T17:40:12Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-04-23T21:17:19Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=9386eb2a0b8bd2540fef524c62b988858c64c445'/>
<id>urn:sha1:9386eb2a0b8bd2540fef524c62b988858c64c445</id>
<content type='text'>
1) qthelper is already huge.
2) set_dc_nickname et al. is already there.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>cleanup: turn protected into private members</title>
<updated>2020-04-14T00:18:37Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-04-13T17:41:30Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=ebb342c969fab99d1c497b24f5511ebb427cdc92'/>
<id>urn:sha1:ebb342c969fab99d1c497b24f5511ebb427cdc92</id>
<content type='text'>
Some profilewidget classes hat protected members which can
be made private as there is no subclassing.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>cleanup: remove protected access specifier in ProfileWidget2</title>
<updated>2020-04-14T00:18:37Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-04-13T17:37:24Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=fc697538faff60bfb72e3bf62d45a7a629fd9640'/>
<id>urn:sha1:fc697538faff60bfb72e3bf62d45a7a629fd9640</id>
<content type='text'>
There were a number of protected member functions in ProfileWidget2.
However no class subclassed ProfileWidget2, so this appears to have
been an artifact. Therefore, make these functions private.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>profile: remove ProfileWidget2::replotEnabled</title>
<updated>2020-04-12T17:32:58Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-04-12T10:05:21Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=a537894553698880f09957fe9b423b280d5df444'/>
<id>urn:sha1:a537894553698880f09957fe9b423b280d5df444</id>
<content type='text'>
The last setter was removed in the previous commit. Let's remove this
complexity.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Merge pull request #2643 from bstoeger/cylinder4</title>
<updated>2020-04-11T18:03:05Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2020-04-11T18:03:05Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=6d187b5f4a3b51043fa3b53b6c73a7e0ec7f0b53'/>
<id>urn:sha1:6d187b5f4a3b51043fa3b53b6c73a7e0ec7f0b53</id>
<content type='text'>
First steps of cylinder-editing undo</content>
</entry>
<entry>
<title>media: move picture function from dive.c to picture.c</title>
<updated>2020-04-10T17:53:03Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-04-10T07:42:14Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=3f3869ff650229e99262ee07b14e1d14ca973d10'/>
<id>urn:sha1:3f3869ff650229e99262ee07b14e1d14ca973d10</id>
<content type='text'>
Currently, move only those functions that do not access dive
structures.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>undo: implement gas switch</title>
<updated>2020-04-06T22:13:35Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-03-04T20:10:05Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=0bd821183d715f709d378e8ac1a75aa0c3d0f2cc'/>
<id>urn:sha1:0bd821183d715f709d378e8ac1a75aa0c3d0f2cc</id>
<content type='text'>
This is a bit hairy as - in theory - one gas switch can remove
other gas switch(es) at the same timestamp. However, I did not
find a way to test it. Moreover, it is not clear whether the
dive-tabs are properly updated on undo/redo.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
</feed>
