DiveLocationManagement rewrite

Tomaz Canabrava tcanabrava at kde.org
Tue Sep 22 13:50:45 PDT 2015


Uffs, so:

This patch series completely rewrites the LocationManagement *lineedit +
combobox* that we used to have.

It is stetically identical to the old one, everything beneath the UI has
changed.

it currently *doesn't* works ( the line edit + selection *works* , but it
doesn't *sets* the dive site ) - I need a bit of help on that as my time
just runned out.

but basically:
after a dive site is choosed on the new location line edit, you have:
currentDiveSiteUuid and text()
if location.currentDiveSiteUuid() == 1, this means that we need to create a
new dive site and set the text() as dive_site.name

if location.currentDiveSiteUuid() > 1, it's an existing dive site. just set
it on the dive.

Please test: I'm doing this in berseker mode for two days trying to remove
the old system that's completely broken ( because we where abusing
QCompleter, it works very well in all other cases that we use it. )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150922/009fe020/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Skeleton-of-the-new-LocationCombobox.patch
Type: text/x-patch
Size: 7244 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150922/009fe020/attachment-0014.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Stabilize-the-location-model-proxy-model.patch
Type: text/x-patch
Size: 7838 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150922/009fe020/attachment-0015.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Readd-the-plus-button-on-the-delegate.patch
Type: text/x-patch
Size: 896 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150922/009fe020/attachment-0016.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Display-the-popup-in-the-correct-place.patch
Type: text/x-patch
Size: 3606 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150922/009fe020/attachment-0017.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Start-to-handle-keypresses.patch
Type: text/x-patch
Size: 3452 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150922/009fe020/attachment-0018.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-Made-it-possible-to-keypress-again.patch
Type: text/x-patch
Size: 1827 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150922/009fe020/attachment-0019.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-Handle-dive_site-activation.patch
Type: text/x-patch
Size: 2029 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150922/009fe020/attachment-0020.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-Fix-correct-size-of-the-Popup.patch
Type: text/x-patch
Size: 1137 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150922/009fe020/attachment-0021.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009-Space-fix.patch
Type: text/x-patch
Size: 2918 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150922/009fe020/attachment-0022.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0010-Random-Fixes-and-improvements.patch
Type: text/x-patch
Size: 4081 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150922/009fe020/attachment-0023.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0011-Block-focus-out-event.patch
Type: text/x-patch
Size: 1732 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150922/009fe020/attachment-0024.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0012-Correctly-handle-space-and-tab.patch
Type: text/x-patch
Size: 1454 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150922/009fe020/attachment-0025.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0013-Set-the-current-dive-site-uid-text.patch
Type: text/x-patch
Size: 1762 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150922/009fe020/attachment-0026.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0014-Fix-New-Existing-dive-site-choices.patch
Type: text/x-patch
Size: 1500 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150922/009fe020/attachment-0027.bin>


More information about the subsurface mailing list