<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/tests, branch v4.8.0</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom?h=v4.8.0</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom?h=v4.8.0'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2018-05-14T20:47:00Z</updated>
<entry>
<title>Add planner infra structure for bailout</title>
<updated>2018-05-14T20:47:00Z</updated>
<author>
<name>Robert C. Helling</name>
<email>helling@atdotde.de</email>
</author>
<published>2018-03-28T20:50:28Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=69de9d8f988aecc59b53c5bf1a1ec55d6529c59e'/>
<id>urn:sha1:69de9d8f988aecc59b53c5bf1a1ec55d6529c59e</id>
<content type='text'>
Add a divemode column to the planner model and a
corresponding field to struct divepoint and fill it
in the corresponding functions.

Signed-off-by: Robert C. Helling &lt;helling@atdotde.de&gt;
</content>
</entry>
<entry>
<title>Core: remove dive.h from files that don't need it</title>
<updated>2018-05-14T17:13:39Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2018-05-13T23:51:26Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=ea83b5ed371bbfb1e5ffb0b501c8bf652cae35bb'/>
<id>urn:sha1:ea83b5ed371bbfb1e5ffb0b501c8bf652cae35bb</id>
<content type='text'>
Of course, quite a few of them indirectly get it through other header
files.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Core: introduce new subsurface-string header</title>
<updated>2018-05-14T17:13:39Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2018-05-11T15:25:41Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=d577467f97e262d52ed2e1d1da94c14168480844'/>
<id>urn:sha1:d577467f97e262d52ed2e1d1da94c14168480844</id>
<content type='text'>
First small step to shrinking dive.h.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>CSV import: fix setpoint (typo)</title>
<updated>2018-04-19T12:09:02Z</updated>
<author>
<name>Miika Turkia</name>
<email>miika.turkia@gmail.com</email>
</author>
<published>2018-04-18T17:28:30Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=4186733740b1b73a762a9995bf36099051bf6dd5'/>
<id>urn:sha1:4186733740b1b73a762a9995bf36099051bf6dd5</id>
<content type='text'>
Signed-off-by: Miika Turkia &lt;miika.turkia@gmail.com&gt;
</content>
</entry>
<entry>
<title>Change taglist_get_tagstring to support 'unlimited' tag list size</title>
<updated>2018-04-09T14:59:51Z</updated>
<author>
<name>Jeremie Guichard</name>
<email>djebrest@gmail.com</email>
</author>
<published>2018-04-09T08:09:34Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=7753352e6210ae69c2a79bdf2387eaca46becc64'/>
<id>urn:sha1:7753352e6210ae69c2a79bdf2387eaca46becc64</id>
<content type='text'>
Previous taglist_get_tagstring signature/implementation did not allow
handling of cases where inputted buffer could not contain all tags.
New implementation allocates buffer based on pre-computed size allowing to
insert all tags in the returned string.

Added get_taglist_string in qthelper to handle conversion to QString
Added TestTagList with tests for taglist_get_tagstring

Signed-off-by: Jeremie Guichard &lt;djebrest@gmail.com&gt;
</content>
</entry>
<entry>
<title>CSV import/export: Sort parameter list and add comment</title>
<updated>2018-03-19T18:59:58Z</updated>
<author>
<name>Stefan Fuchs</name>
<email>sfuchs@gmx.de</email>
</author>
<published>2018-03-14T20:38:38Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=5c9345976c22df23197423c37fd50e7d23b2f06d'/>
<id>urn:sha1:5c9345976c22df23197423c37fd50e7d23b2f06d</id>
<content type='text'>
Signed-off-by: Stefan Fuchs &lt;sfuchs@gmx.de&gt;
</content>
</entry>
<entry>
<title>Cleanup: introduce copy_qstring() function</title>
<updated>2018-03-14T11:55:36Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-02-28T22:37:09Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=d1572a8d9574e80955796b8667317c8dbd376081'/>
<id>urn:sha1:d1572a8d9574e80955796b8667317c8dbd376081</id>
<content type='text'>
strdup(qPrintable(s)) and copy_string(qPrintable(s)) were such common
occurrences that they seem worthy of a short helper-function.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Cleanup: consistently use qPrintable()</title>
<updated>2018-03-14T11:55:36Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-02-25T12:51:41Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=b72cc1f31784346884c8552c22f1e4c3c6d5ed1d'/>
<id>urn:sha1:b72cc1f31784346884c8552c22f1e4c3c6d5ed1d</id>
<content type='text'>
Replace constructs of the kind
  s.toUtf8().data(),
  s.toUtf8().constData(),
  s.toLocal8Bit().data(),
  s.toLocal8Bit.constData() or
  qUtf8Printable(s)
by
  qPrintable(s).

This is concise, consistent and - in principle - more performant than
the .data() versions.

Sadly, owing to a suboptimal implementation, qPrintable(s) currently
is a pessimization compared to s.toUtf8().data(). A fix is scheduled for
new Qt versions: https://codereview.qt-project.org/#/c/221331/

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Cleanup: Remove hash field from picture-structure</title>
<updated>2018-03-05T16:04:57Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-02-18T15:22:34Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=bdc470a80e0260011e3dfc4d949df8f9e222f73f'/>
<id>urn:sha1:bdc470a80e0260011e3dfc4d949df8f9e222f73f</id>
<content type='text'>
The hash field in the picture-structure was in principle non-operational.
It was set on loading, but never actually changed. The authoritative
hash comes from the filename-&gt;hash map.

Therefore, make this explicit by removing the hash field from the
picture structure.

Instead of filling the picture structure on loading, add the
hash directly to the filename-&gt;hash map. This is done in the
register_hash() function, which does not overwrite old entries.
I.e. the local hash has priority over the save-file. This
policy might be refined in the future.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Cleanup: Fold add_hash() call into learnHash() function</title>
<updated>2018-03-05T16:04:57Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-02-18T13:57:42Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=f5eafe2a713998b345027373a26ad73af9e060b5'/>
<id>urn:sha1:f5eafe2a713998b345027373a26ad73af9e060b5</id>
<content type='text'>
learnHash() was always called in conjunction with add_hash(). The
pattern was that a local filename and a hash were connected in
the hash-to-filename and the filename-to-hash maps. Then, the
original picture-filename or url were registered in the filename-to-hash
map.

This commit changes learnHash() to take three parameters (original-filename,
local-filename and hash) and do all of the above. The new code is
simpler because no dummy picture struct has to be generated in
DiveListView::loadImageFromURL().

The tests were extended to check for all hash&lt;-&gt;filename associations.

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