[Marble-devel] Review Request 124541: [MarbleMaps] Added search completion

Dennis Nienhüser dennis at nienhueser.de
Fri Jul 31 12:03:20 UTC 2015


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/124541/#review83222
-----------------------------------------------------------


Works like a charme :-)
The suggestions arrive much quicker than I thought they'd do, very nice.

For the colors: I wonder if it's time now to move towards the "floating" search input and use a color scheme that fits well with the (soon to come) button for ego positioning. Here's a quick mockup how that could look like: http://nienhueser.de/marble/android-search-completer.png
![Floating search field](http://nienhueser.de/marble/android-search-completer.png)


src/apps/marble-maps/Completion.qml (line 8)
<https://git.reviewboard.kde.org/r/124541/#comment57463>

    What about using
    `property alias model: results.model`
    instead (and remove `model: root.model` inside `SearchResuls {...}` below)?



src/apps/marble-maps/Completion.qml (line 22)
<https://git.reviewboard.kde.org/r/124541/#comment57469>

    This means we get two highlighted fields at the same time (search field input and completer). I'd rather go for a non-highlight.



src/apps/marble-maps/SearchField.qml (line 81)
<https://git.reviewboard.kde.org/r/124541/#comment57468>

    I kinda prefer bringing it closer to the search field input.



src/apps/marble-maps/SearchField.qml (line 83)
<https://git.reviewboard.kde.org/r/124541/#comment57467>

    parent.height isn't really identical to the height of the elements, so this cuts things off somewhere in the middle of the result list (at least on the Desktop). Ideally we'd have access to the size of result items and use that.



src/lib/marble/declarative/SearchBackend.h (line 51)
<https://git.reviewboard.kde.org/r/124541/#comment57464>

    const QVariant &


- Dennis Nienhüser


On July 31, 2015, 7:25 a.m., Mihail Ivchenko wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/124541/
> -----------------------------------------------------------
> 
> (Updated July 31, 2015, 7:25 a.m.)
> 
> 
> Review request for Marble and Gábor Péterffy.
> 
> 
> Repository: marble
> 
> 
> Description
> -------
> 
> Added search completion for Marble Maps.
> 
> 
> Diffs
> -----
> 
>   src/apps/marble-maps/Completion.qml PRE-CREATION 
>   src/apps/marble-maps/MainScreen.qml 2cc996a 
>   src/apps/marble-maps/MarbleMaps.qrc d027af9 
>   src/apps/marble-maps/Search.qml 896f266 
>   src/apps/marble-maps/SearchField.qml 5830098 
>   src/apps/marble-maps/SearchResults.qml a910038 
>   src/lib/marble/declarative/SearchBackend.h b041de3 
>   src/lib/marble/declarative/SearchBackend.cpp 5c80cc3 
> 
> Diff: https://git.reviewboard.kde.org/r/124541/diff/
> 
> 
> Testing
> -------
> 
> Works on Nexus 5 and Nexus 9 (both are Android 5.1.1)
> 
> I'm not sure about color for background so I created a screenshot which shows all available colors from SystemPalette with default Holo Dark theme on stock Android 5.1.1.
> 
> 
> File Attachments
> ----------------
> 
> Screenshot_2015-07-30-22-54-35.png
>   https://git.reviewboard.kde.org/media/uploaded/files/2015/07/31/dea46243-b94d-42d2-b875-9b10ba8aa878__Screenshot_2015-07-30-22-54-35.png
> Screenshot_2015-07-30-22-54-40.png
>   https://git.reviewboard.kde.org/media/uploaded/files/2015/07/31/ad18ee94-de67-4270-a2a6-4b51617151d9__Screenshot_2015-07-30-22-54-40.png
> Screenshot_2015-07-30-22-54-44.png
>   https://git.reviewboard.kde.org/media/uploaded/files/2015/07/31/1384d028-7ce9-4e90-badf-37c3959c3506__Screenshot_2015-07-30-22-54-44.png
> Screenshot_2015-07-31-11-23-06.png
>   https://git.reviewboard.kde.org/media/uploaded/files/2015/07/31/bb227912-4acb-4083-b7ff-ea5704aec909__Screenshot_2015-07-31-11-23-06.png
> 
> 
> Thanks,
> 
> Mihail Ivchenko
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20150731/7e895480/attachment.html>


More information about the Marble-devel mailing list