<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/profile-widget, branch v4.9.5</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom?h=v4.9.5</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom?h=v4.9.5'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2020-05-06T20:58:09Z</updated>
<entry>
<title>profile: clear pictures when displaying empty dive</title>
<updated>2020-05-06T20:58:09Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-04-19T17:33:19Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=aeee2a08027b177495635262114374f085351ce7'/>
<id>urn:sha1:aeee2a08027b177495635262114374f085351ce7</id>
<content type='text'>
Since the profile does not listen to DivePictureModel resets anymore,
the pictures weren't cleared when clearing the canvas. Do this
explicitly.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>undo: make picture (media) deletion undoable</title>
<updated>2020-05-06T20:58:09Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-04-17T21:18:58Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=434644b381cb1dc8d2080b19a9725bfe2660a217'/>
<id>urn:sha1:434644b381cb1dc8d2080b19a9725bfe2660a217</id>
<content type='text'>
The code is rather complex. Firstly, we have different representations
of pictures throughout the code. Secondly, this tries to do add the
pictures in batches to the divepicture model and that is always rather
tricky.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>undo: implement undo of setting a picture time by drag&amp;drop</title>
<updated>2020-05-06T20:58:09Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-04-14T20:07:00Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=e61641c79cd57bfa55d2371615a7eef7c73b4eb7'/>
<id>urn:sha1:e61641c79cd57bfa55d2371615a7eef7c73b4eb7</id>
<content type='text'>
Even though the functionality is seemingly trivial, this is a bit
invasive, as the code has to be split into two distinct parts:
1) Post undo command
2) React to changes to the divelist

Don't compile that code on mobile.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>profile: don't interpret NULL as current_dive in plotDive()</title>
<updated>2020-05-03T21:47:49Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-04-13T11:45:52Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=17556cc66cedc84aaf6de2bfabcafbcca8bda53c'/>
<id>urn:sha1:17556cc66cedc84aaf6de2bfabcafbcca8bda53c</id>
<content type='text'>
ProfileWidget2::plotDive() had this weird interface, where passing
in NULL as dive would mean "show current_dive". However, most callers
would already pass in current_dive. Therefore, unify and always pass
in current_dive if the caller wants to draw the current dive.

This allows us to interpret NULL as "show empty profile". Thus,
passing in current_dive when there is no current_dive simply shows
an empty profile. This makes the calling code in
MainWindow::selectionChanged() simpler.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>profile: use member-to-function style connect() statements</title>
<updated>2020-05-03T21:47:49Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-04-12T10:48:38Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=c1963fd5ddd82b5ed0133ce6b04be9d525e27d89'/>
<id>urn:sha1:c1963fd5ddd82b5ed0133ce6b04be9d525e27d89</id>
<content type='text'>
This makes things compile-time instead of run-time checked.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>cleanup: remove parameter to ProfleWidget2::replot()</title>
<updated>2020-05-03T21:47:49Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-04-12T10:20:25Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=d520ac22864fed77f44de9461c3bb5302b22e30f'/>
<id>urn:sha1:d520ac22864fed77f44de9461c3bb5302b22e30f</id>
<content type='text'>
Firstly, the parameter appears conceptually wrong, as replot suggests
that the currently shown dive is replot. Secondly, the only caller that
passed a parameter was passing in current_dive, which is just what happens
if one doesn't pass a parameter. Therefore, change that caller (call
plotDive directly) and remove the parameter.

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