<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/profile-widget, branch v5.0.2</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom?h=v5.0.2</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom?h=v5.0.2'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2021-06-29T21:05:13Z</updated>
<entry>
<title>cleanup: remove unused item in ProfileWidget2's ItemPos</title>
<updated>2021-06-29T21:05:13Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2021-06-29T19:23:04Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=48c2b4b1bd8c23dacc52fff48b338784d7f2520e'/>
<id>urn:sha1:48c2b4b1bd8c23dacc52fff48b338784d7f2520e</id>
<content type='text'>
This is most likely an artifact from a long time ago.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>cleanup: remove dead code in ToolTipItem::refresh()</title>
<updated>2021-06-28T16:53:23Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2021-06-28T15:54:09Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=080834c6f228536562d6d0f9f332a8d2ad821cb5'/>
<id>urn:sha1:080834c6f228536562d6d0f9f332a8d2ad821cb5</id>
<content type='text'>
The code was downcasting the QGraphicsScene to ProfileWidget2,
but then didn't use the result. *shrug*

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>cleanup: factor out duplicate axis-initialization code</title>
<updated>2021-06-27T17:05:20Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2021-06-15T16:16:44Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=248976bf11df2437aa4ceb437e79cb3a7fed27c4'/>
<id>urn:sha1:248976bf11df2437aa4ceb437e79cb3a7fed27c4</id>
<content type='text'>
The axes of the profile are setup when switching into
the "ProfileState" and also when the preferences are
changed. The same code existed twice for both cases.

Let's factor it out into a single function to avoid
future divergence and confusion.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>profile: remove internal event-copy (fix deleting/renaming events)</title>
<updated>2021-06-05T18:29:00Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2021-06-05T07:29:41Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=0b190243dd4463f3c944037b8688372f9cce1c5d'/>
<id>urn:sha1:0b190243dd4463f3c944037b8688372f9cce1c5d</id>
<content type='text'>
The DiveEventItem had an internal copy of the event. It passed
that copy to the undo-machinery, which of course didn't work.

Simply keep a pointer to the event. All changes to a dive no
pass via the undo-machinery, which causes a reload of the profile,
so this should be safe.

Reported-by: Willem Ferguson &lt;willemferguson@zoology.up.ac.za&gt;
Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>profile: pass axes and model to DiveEventItem on construction</title>
<updated>2021-06-05T18:29:00Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2021-06-05T07:15:51Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=fd2862042b1aa925bd842f512ee6260865e2f5b1'/>
<id>urn:sha1:fd2862042b1aa925bd842f512ee6260865e2f5b1</id>
<content type='text'>
Firstly, there is no point in supporting DiveEventItems without
model and axis. Secondly, this avoid pointless position-
recalculations.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>profile: pass event at construction time to DiveEventItem</title>
<updated>2021-06-05T18:29:00Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2021-06-05T07:05:46Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=c93fb83edfe4bfab6bd2c01e2c54cfe7b39f0506'/>
<id>urn:sha1:c93fb83edfe4bfab6bd2c01e2c54cfe7b39f0506</id>
<content type='text'>
There is no point in having a dive event without an event.
Let's pass the event at construction time to avoid having
to handle "invalid" events.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>profile: remove unused function ProfileWidget2::getPrintMode()</title>
<updated>2021-06-04T15:45:32Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2021-06-04T13:19:54Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=4462ae5aee15d21c4dcaa04eac60288d485fe30e'/>
<id>urn:sha1:4462ae5aee15d21c4dcaa04eac60288d485fe30e</id>
<content type='text'>
The last user was removed in the previous commit.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>profile: use printMode flag directly in DiveCartesianAxis</title>
<updated>2021-06-04T15:45:32Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2021-06-04T13:15:37Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=1ddb55dcad5ee91d4612941eb2eeda9415971b0f'/>
<id>urn:sha1:1ddb55dcad5ee91d4612941eb2eeda9415971b0f</id>
<content type='text'>
The axis has a print-mode flag. There is no point in querying
the widget.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>profile: remove DiveCartesianAxis::maxChanged signal</title>
<updated>2021-06-04T15:45:32Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2021-06-04T08:21:30Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=b2b24665e7a838cd471fe657cf847571158bd03f'/>
<id>urn:sha1:b2b24665e7a838cd471fe657cf847571158bd03f</id>
<content type='text'>
The last listener was removed in 0104b0a91588.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>cleanup: strongly type DepthAxis::unitSystem</title>
<updated>2021-06-01T16:25:32Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2021-06-01T05:50:54Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=622abc5afde7b37493d46b63a99c1a9e46b86ff5'/>
<id>urn:sha1:622abc5afde7b37493d46b63a99c1a9e46b86ff5</id>
<content type='text'>
This takes an enum of units::LENGTH, therefore declare it as
such. Yes, this is kind of superfluous bike shedding, but since
we have a strongly typed language, let's use it.

On a side note, the enum should probably not be named with
all-caps.

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