[Marble-devel] Review Request 124579: Prefer iconPath to QImage instances in GeoDataIconStyle

Torsten Rahn tackat at kde.org
Fri Aug 7 12:12:00 UTC 2015


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

Ship it!


Ship It!

- Torsten Rahn


On Aug. 1, 2015, 4:49 nachm., Dennis Nienhüser wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/124579/
> -----------------------------------------------------------
> 
> (Updated Aug. 1, 2015, 4:49 nachm.)
> 
> 
> Review request for Marble.
> 
> 
> Repository: marble
> 
> 
> Description
> -------
> 
> Prefers passing a file path to instantiate GeoDataIconStyle instead of passing a QImage directly. This leads to slightly faster startup times (the icons of the static default styles are now lazy-loaded) and allows querying the iconPath in more cases. The latter is beneficial for QML images. Icon paths are also exported in MarblePlacemarkModel.
> 
> 
> Diffs
> -----
> 
>   src/lib/marble/BookmarkManagerDialog.cpp 72f716c 
>   src/lib/marble/EditBookmarkDialog.cpp 2f7e80f 
>   src/lib/marble/MarblePlacemarkModel.h 1eacbb4 
>   src/lib/marble/MarblePlacemarkModel.cpp fd96f35 
>   src/lib/marble/TourWidget.cpp 95d6891 
>   src/lib/marble/geodata/data/GeoDataFeature.cpp 6f330fb 
>   src/lib/marble/geodata/data/GeoDataFeature_p.h 496c356 
>   src/lib/marble/geodata/data/GeoDataIconStyle.h 09f8a7c 
>   src/lib/marble/geodata/data/GeoDataIconStyle.cpp 349db42 
>   src/lib/marble/geodata/data/GeoDataStyle.h 4cef3a9 
>   src/lib/marble/geodata/data/GeoDataStyle.cpp 76da532 
>   src/plugins/render/annotate/PlacemarkTextAnnotation.cpp 64336da 
>   src/plugins/render/satellites/SatellitesModel.cpp 8cdf8de 
> 
> Diff: https://git.reviewboard.kde.org/r/124579/diff/
> 
> 
> Testing
> -------
> 
> Icons still show up nicely on the map and in the search list view. Startup is slightly faster (e.g. GeoDataFeaturePrivate::initializeDefaultStyles() is reduced from 15 ms to 5 ms on my laptop. It is called three times during startup. Not sure why it is called more than once, possibly due to different libraries using it, i.e. marblewidget and some plugins).
> 
> 
> Thanks,
> 
> Dennis Nienhüser
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20150807/78b38ee2/attachment.html>


More information about the Marble-devel mailing list