Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/maps/KReportItemMaps.cpp
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Line(s) | |||||
62 | KReportItemMaps::~KReportItemMaps() | 62 | KReportItemMaps::~KReportItemMaps() | ||
63 | { | 63 | { | ||
64 | } | 64 | } | ||
65 | 65 | | |||
66 | void KReportItemMaps::createProperties() | 66 | void KReportItemMaps::createProperties() | ||
67 | { | 67 | { | ||
68 | m_controlSource = new KProperty("item-data-source", QStringList(), QStringList(), QString(), tr("Data Source")); | 68 | m_controlSource = new KProperty("item-data-source", QStringList(), QStringList(), QString(), tr("Data Source")); | ||
69 | 69 | | |||
70 | m_latitudeProperty = new KProperty("latitude", 0.0, tr("Latitude"), tr("Latitude"), KProperty::Double); | 70 | m_latitudeProperty = new KProperty("latitude", 0.0, tr("Latitude"), QString(), KProperty::Double); | ||
71 | m_latitudeProperty->setOption("min", -90); | 71 | m_latitudeProperty->setOption("min", -90); | ||
72 | m_latitudeProperty->setOption("max", 90); | 72 | m_latitudeProperty->setOption("max", 90); | ||
73 | m_latitudeProperty->setOption("unit", QString::fromUtf8("°")); | 73 | m_latitudeProperty->setOption("unit", QString::fromUtf8("°")); | ||
74 | m_latitudeProperty->setOption("precision", 7); | 74 | m_latitudeProperty->setOption("precision", 7); | ||
75 | 75 | | |||
76 | m_longitudeProperty = new KProperty("longitude", 0.0, tr("Longitude"), tr("Longitude"), KProperty::Double); | 76 | m_longitudeProperty = new KProperty("longitude", 0.0, tr("Longitude"), QString(), KProperty::Double); | ||
77 | m_longitudeProperty->setOption("min", -180); | 77 | m_longitudeProperty->setOption("min", -180); | ||
78 | m_longitudeProperty->setOption("max", 180); | 78 | m_longitudeProperty->setOption("max", 180); | ||
79 | m_longitudeProperty->setOption("unit", QString::fromUtf8("°")); | 79 | m_longitudeProperty->setOption("unit", QString::fromUtf8("°")); | ||
80 | m_longitudeProperty->setOption("precision", 7); | 80 | m_longitudeProperty->setOption("precision", 7); | ||
81 | 81 | | |||
82 | m_zoomProperty = new KProperty("zoom", 1000, tr("Zoom"), tr("Zoom") ); | 82 | m_zoomProperty = new KProperty("zoom", 1000, tr("Zoom") ); | ||
83 | m_zoomProperty->setOption("min", 0); | 83 | m_zoomProperty->setOption("min", 0); | ||
84 | m_zoomProperty->setOption("max", 4000); | 84 | m_zoomProperty->setOption("max", 4000); | ||
85 | m_zoomProperty->setOption("step", 100); | 85 | m_zoomProperty->setOption("step", 100); | ||
86 | m_zoomProperty->setOption("slider", true); | 86 | m_zoomProperty->setOption("slider", true); | ||
87 | 87 | | |||
88 | QStringList mapThemIds(m_themeManager.mapThemeIds()); | 88 | QStringList mapThemIds(m_themeManager.mapThemeIds()); | ||
89 | m_themeProperty = new KProperty("theme", | 89 | m_themeProperty = new KProperty("theme", mapThemIds, mapThemIds, mapThemIds[1], tr("Theme")); | ||
staniek: Missing caption param: tr("Theme") here | |||||
90 | mapThemIds, | | |||
91 | mapThemIds, | | |||
92 | mapThemIds[1]); | | |||
93 | 90 | | |||
94 | if (mapThemIds.contains(QLatin1String("earth/srtm/srtm.dgml"))) { | 91 | if (mapThemIds.contains(QLatin1String("earth/srtm/srtm.dgml"))) { | ||
95 | m_themeProperty->setValue(QLatin1String("earth/srtm/srtm.dgml"), KProperty::DefaultValueOptions & ~KProperty::ValueOptions(KProperty::ValueOption::RememberOld)); | 92 | m_themeProperty->setValue(QLatin1String("earth/srtm/srtm.dgml"), KProperty::DefaultValueOptions & ~KProperty::ValueOptions(KProperty::ValueOption::RememberOld)); | ||
96 | } | 93 | } | ||
97 | 94 | | |||
98 | propertySet()->addProperty(m_controlSource); | 95 | propertySet()->addProperty(m_controlSource); | ||
99 | propertySet()->addProperty(m_latitudeProperty); | 96 | propertySet()->addProperty(m_latitudeProperty); | ||
100 | propertySet()->addProperty(m_longitudeProperty); | 97 | propertySet()->addProperty(m_longitudeProperty); | ||
▲ Show 20 Lines • Show All 128 Lines • Show Last 20 Lines |
Missing caption param: tr("Theme") here