<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/qt-ui/profile, branch v4.1</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom?h=v4.1</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom?h=v4.1'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2014-05-08T05:02:21Z</updated>
<entry>
<title>Fix another dangling pointer</title>
<updated>2014-05-08T05:02:21Z</updated>
<author>
<name>Thiago Macieira</name>
<email>thiago@macieira.org</email>
</author>
<published>2014-05-08T04:57:08Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=2e0a51264f2d8dfdb2ffe016742f6dd52b0f15e2'/>
<id>urn:sha1:2e0a51264f2d8dfdb2ffe016742f6dd52b0f15e2</id>
<content type='text'>
Same problem as the previous commit: toStdString() returns a temporary,
and c_str() will return a pointer to internal data, freed at the end of
the statement. So get the pointer to be strcpy'ed in the same statement.

Changed to toUtf8() to be more explicit about the encoding and to avoid
std::string

Signed-off-by: Thiago Macieira &lt;thiago@macieira.org&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Change the profile redraw logic after preferences were changed</title>
<updated>2014-05-05T22:58:25Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2014-05-05T22:58:25Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=223d99f79f3b80bc45a6abc6d510f9250a181363'/>
<id>urn:sha1:223d99f79f3b80bc45a6abc6d510f9250a181363</id>
<content type='text'>
I we are showing a calculated ceiling, then we have to replot the profile
after a preferences change as the gradient factors could have changed
which might change a calculated ceiling.

Also use the rulergraph preference instead of checking the settings
directly.

Fixes #511

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Fix bug in handling of fake SAMPLE_EVENT_PO2 events</title>
<updated>2014-05-05T16:32:13Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2014-05-05T16:28:58Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=3063991e4ed22932c3c66d3970d22f4f9a513bbf'/>
<id>urn:sha1:3063991e4ed22932c3c66d3970d22f4f9a513bbf</id>
<content type='text'>
In commit bcdd6192fe45 ("Show translated event names in tooltip") I was
too aggressive in replacing the checking for event names with checking for
event types. It turns out that we are abusing an existing event type in
the planner (and use a different event name to mark the difference). By
just checking for the type this now caused incorrect information to be
displayed in the info box (a simply "PO2 warning" on a Suunto D9 could
turn into a "Bailing out to OC" notice).

The correct fix is to get our own range of SAMPLE_EVENT_xxx numbers from
libdivecomputer. Once we have those, we can do this the right way. For now
we just fall back to also checking the event name (which is what I wanted
to get away from so translated names don't trip us up).

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Fix test for "air" in tooltip display of gaschange</title>
<updated>2014-04-30T05:39:33Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2014-04-30T05:39:33Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=0e49e61ddc3cf181e318e923403f0927f884c9e1'/>
<id>urn:sha1:0e49e61ddc3cf181e318e923403f0927f884c9e1</id>
<content type='text'>
The "is_air()" test works when we have the gases in permille, but not in
percent. In that case we can just check for He == 0 and O2 == 21.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Show translated event names in tooltip</title>
<updated>2014-04-30T05:38:55Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2014-04-30T05:37:19Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=bcdd6192fe457c878128f07125b32144a3ebe6bd'/>
<id>urn:sha1:bcdd6192fe457c878128f07125b32144a3ebe6bd</id>
<content type='text'>
In order for this to work we need to compare against the event type
instead of the event name - which makes much more sense to do, anyway.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Make heartrate grid less confusing</title>
<updated>2014-04-28T19:45:42Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2014-04-28T19:45:42Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=2d24779b6226f6f9757abe565307d2956b375c0d'/>
<id>urn:sha1:2d24779b6226f6f9757abe565307d2956b375c0d</id>
<content type='text'>
Having all the grid lines in the same color made things visually
confusing. To clean this up a little make the heartrate lines a light gray
color.

Fixes #484

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Renaming the prefs struct members to be consistent with the QSettings.</title>
<updated>2014-04-16T20:09:55Z</updated>
<author>
<name>Gehad Elrobey</name>
<email>gehadelrobey@gmail.com</email>
</author>
<published>2014-04-16T20:03:44Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=8380f096199d4da1e89789c9bd67974e550f2bf3'/>
<id>urn:sha1:8380f096199d4da1e89789c9bd67974e550f2bf3</id>
<content type='text'>
-Renaming prefs members for consistency.
-Changing references of QSettings to the prefs structure instead.
-Removing unused functions in pref.h were left over from an old version.
-Changing the data-type of bool members to short for consistency with other members.

Signed-off-by: Gehad elrobey &lt;gehadelrobey@gmail.com&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Simplify code</title>
<updated>2014-04-15T06:21:09Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2014-04-15T06:21:09Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=f7a327077ba9b93e6f2d696e9bf882f86da750a0'/>
<id>urn:sha1:f7a327077ba9b93e6f2d696e9bf882f86da750a0</id>
<content type='text'>
This seems like a rather obvious optimization...

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Make red ceiling work</title>
<updated>2014-04-15T05:52:22Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2014-04-15T05:52:22Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=e5967dd1933f2ba0511087015f60cf7fae22affa'/>
<id>urn:sha1:e5967dd1933f2ba0511087015f60cf7fae22affa</id>
<content type='text'>
The existing code for toggling the DC reported ceiling in red or "surface
color" clearly had never been tested.

This seems to create a reasonably attractive implementation - not exactly
what we had in the past, but good enough.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Change some references of QSettings to the pref struct.</title>
<updated>2014-04-11T14:21:15Z</updated>
<author>
<name>Gehad elrobey</name>
<email>gehadelrobey@gmail.com</email>
</author>
<published>2014-04-08T11:45:23Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=cdf83f5ef6415eb44cc95e993ab38b4b44f03427'/>
<id>urn:sha1:cdf83f5ef6415eb44cc95e993ab38b4b44f03427</id>
<content type='text'>
After adding the animation member in the preference struct, it is
very resonable to change these references of QSettings to the
preference structure instead.

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