[Marble-devel] Review Request: patch for i18n
Torsten Rahn
rahn at kde.org
Thu Jun 10 11:33:04 CEST 2010
> On 2010-06-10 08:55:14, Bastian Holst wrote:
> > /trunk/KDE/kdeedu/marble/src/lib/geodata/data/GeoDataExtendedData.h, line 59
> > <http://reviewboard.kde.org/r/4194/diff/5/?file=28234#file28234line59>
> >
> > Why not dataRef?
Because I suggested valueRef ;-)
Ok, Qt is using data() as well as value(...).
Question is: What feels more Qtish in this case?
Looking at the APIs in Qt Assistant I think that:
- data() is used whenever there is some data associated with the object. The data usually is just data "attached" to the actual object or the raw data.
- Looking through some uses of data() in Qt it looks to me like it gets never used to retrieve data for a specific key.
- value() on the other hand is either used in lookup containers (QHash, ...) or to have a numerical representation of the object (QColor).
Of course this difference might be a pure coincidence and just a description of what is currently there. Are there more differences in the Qt API between usage of data() and value()? If this is not the case then I'd say that "value" is a better pick. Opinions?
- Torsten
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/4194/#review6071
-----------------------------------------------------------
On 2010-06-09 12:41:54, hjain wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/4194/
> -----------------------------------------------------------
>
> (Updated 2010-06-09 12:41:54)
>
>
> Review request for marble.
>
>
> Summary
> -------
>
> This patch consists of KML handler and geodata classes for ExtendedData where custom data for Marble can be stored. This patch still requires to write code to use this data.
>
>
> Diffs
> -----
>
> /trunk/KDE/kdeedu/marble/src/lib/geodata/data/GeoDataData.h PRE-CREATION
> /trunk/KDE/kdeedu/marble/src/lib/geodata/data/GeoDataData.cpp PRE-CREATION
> /trunk/KDE/kdeedu/marble/src/lib/geodata/data/GeoDataData_p.h PRE-CREATION
> /trunk/KDE/kdeedu/marble/src/lib/geodata/data/GeoDataExtendedData.h PRE-CREATION
> /trunk/KDE/kdeedu/marble/src/lib/geodata/data/GeoDataExtendedData.cpp PRE-CREATION
> /trunk/KDE/kdeedu/marble/src/lib/geodata/data/GeoDataExtendedData_p.h PRE-CREATION
> /trunk/KDE/kdeedu/marble/src/lib/geodata/data/GeoDataFeature.h 1135207
> /trunk/KDE/kdeedu/marble/src/lib/geodata/data/GeoDataFeature.cpp 1135207
> /trunk/KDE/kdeedu/marble/src/lib/geodata/data/GeoDataFeature_p.h 1135207
> /trunk/KDE/kdeedu/marble/src/lib/geodata/handlers/kml/KmlDataTagHandler.h PRE-CREATION
> /trunk/KDE/kdeedu/marble/src/lib/geodata/handlers/kml/KmlDataTagHandler.cpp PRE-CREATION
> /trunk/KDE/kdeedu/marble/src/lib/geodata/handlers/kml/KmlDisplayNameTagHandler.h PRE-CREATION
> /trunk/KDE/kdeedu/marble/src/lib/geodata/handlers/kml/KmlDisplayNameTagHandler.cpp PRE-CREATION
> /trunk/KDE/kdeedu/marble/src/lib/geodata/handlers/kml/KmlElementDictionary.h 1135187
> /trunk/KDE/kdeedu/marble/src/lib/geodata/handlers/kml/KmlElementDictionary.cpp 1135187
> /trunk/KDE/kdeedu/marble/src/lib/geodata/handlers/kml/KmlExtendedDataTagHandler.h PRE-CREATION
> /trunk/KDE/kdeedu/marble/src/lib/geodata/handlers/kml/KmlExtendedDataTagHandler.cpp PRE-CREATION
> /trunk/KDE/kdeedu/marble/src/lib/geodata/handlers/kml/KmlValueTagHandler.h PRE-CREATION
> /trunk/KDE/kdeedu/marble/src/lib/geodata/handlers/kml/KmlValueTagHandler.cpp PRE-CREATION
> /trunk/KDE/kdeedu/marble/src/lib/geodata/parser/GeoDataTypes.h 1135187
> /trunk/KDE/kdeedu/marble/src/lib/geodata/parser/GeoDataTypes.cpp 1135187
>
> Diff: http://reviewboard.kde.org/r/4194/diff
>
>
> Testing
> -------
>
>
> Thanks,
>
> hjain
>
>
More information about the Marble-devel
mailing list