diff --git a/src/common/KReportItemLine.cpp b/src/common/KReportItemLine.cpp --- a/src/common/KReportItemLine.cpp +++ b/src/common/KReportItemLine.cpp @@ -76,7 +76,7 @@ m_lineWeight = new KProperty("line-weight", 1.0, tr("Line Weight")); m_lineWeight->setOption("step", 1.0); m_lineColor = new KProperty("line-color", QColor(Qt::black), tr("Line Color")); - m_lineStyle = new KProperty("line-style", (int)Qt::SolidLine, tr("Line Style"), tr("Line Style"), KProperty::LineStyle); + m_lineStyle = new KProperty("line-style", (int)Qt::SolidLine, tr("Line Style"), QString(), KProperty::LineStyle); //Remove the unused properies from KReportItemBase propertySet()->removeProperty("size"); diff --git a/src/items/check/KReportItemCheck.cpp b/src/items/check/KReportItemCheck.cpp --- a/src/items/check/KReportItemCheck.cpp +++ b/src/items/check/KReportItemCheck.cpp @@ -86,7 +86,7 @@ m_lineWeight = new KProperty("line-weight", 1.0, tr("Line Weight")); m_lineWeight->setOption("step", 1.0); m_lineColor = new KProperty("line-color", QColor(Qt::black), tr("Line Color")); - m_lineStyle = new KProperty("line-style", static_cast(Qt::SolidLine), tr("Line Style"), tr("Line Style"), KProperty::LineStyle); + m_lineStyle = new KProperty("line-style", static_cast(Qt::SolidLine), tr("Line Style"), QString(), KProperty::LineStyle); m_staticValue = new KProperty("value", QVariant(false), tr("Value"), tr("Value used if not bound to a field")); propertySet()->addProperty(m_controlSource); diff --git a/src/items/field/KReportItemField.cpp b/src/items/field/KReportItemField.cpp --- a/src/items/field/KReportItemField.cpp +++ b/src/items/field/KReportItemField.cpp @@ -115,7 +115,7 @@ m_lineWeight = new KProperty("line-weight", 1.0, tr("Line Weight")); m_lineWeight->setOption("step", 1.0); m_lineColor = new KProperty("line-color", QColor(Qt::black), tr("Line Color")); - m_lineStyle = new KProperty("line-style", static_cast(Qt::NoPen), tr("Line Style"), tr("Line Style"), KProperty::LineStyle); + m_lineStyle = new KProperty("line-style", static_cast(Qt::NoPen), tr("Line Style"), QString(), KProperty::LineStyle); m_wordWrap = new KProperty("word-wrap", QVariant(false), tr("Word Wrap")); m_canGrow = new KProperty("can-grow", QVariant(false), tr("Can Grow")); diff --git a/src/items/label/KReportItemLabel.cpp b/src/items/label/KReportItemLabel.cpp --- a/src/items/label/KReportItemLabel.cpp +++ b/src/items/label/KReportItemLabel.cpp @@ -113,7 +113,7 @@ m_lineWeight = new KProperty("line-weight", 1.0, tr("Line Weight")); m_lineWeight->setOption("step", 1.0); m_lineColor = new KProperty("line-color", QColor(Qt::black), tr("Line Color")); - m_lineStyle = new KProperty("line-style", static_cast(Qt::NoPen), tr("Line Style"), tr("Line Style"), KProperty::LineStyle); + m_lineStyle = new KProperty("line-style", static_cast(Qt::NoPen), tr("Line Style"), QString(), KProperty::LineStyle); propertySet()->addProperty(m_text); propertySet()->addProperty(m_horizontalAlignment); diff --git a/src/items/text/KReportItemText.cpp b/src/items/text/KReportItemText.cpp --- a/src/items/text/KReportItemText.cpp +++ b/src/items/text/KReportItemText.cpp @@ -133,7 +133,7 @@ m_lineWeight = new KProperty("line-weight", 1.0, tr("Line Weight")); m_lineWeight->setOption("step", 1.0); m_lineColor = new KProperty("line-color", QColor(Qt::black), tr("Line Color")); - m_lineStyle = new KProperty("line-style", static_cast(Qt::NoPen), tr("Line Style"), tr("Line Style"), KProperty::LineStyle); + m_lineStyle = new KProperty("line-style", static_cast(Qt::NoPen), tr("Line Style"), QString(), KProperty::LineStyle); m_backgroundOpacity = new KProperty("background-opacity", QVariant(0), tr("Background Opacity")); m_backgroundOpacity->setOption("max", 100); m_backgroundOpacity->setOption("min", 0); diff --git a/src/plugins/chart/KReportItemChart.cpp b/src/plugins/chart/KReportItemChart.cpp --- a/src/plugins/chart/KReportItemChart.cpp +++ b/src/plugins/chart/KReportItemChart.cpp @@ -124,10 +124,10 @@ tr("3D", "Three dimensions")); m_aa = new KProperty("antialiased", QVariant(false), tr("Antialiased")); - m_xTitle = new KProperty("title-x-axis", QString(), tr("X Axis Title"), tr("X Axis Title")); - m_yTitle = new KProperty("title-y-axis", QString(), tr("Y Axis Title"), tr("Y Axis Title")); + m_xTitle = new KProperty("title-x-axis", QString(), tr("X Axis Title")); + m_yTitle = new KProperty("title-y-axis", QString(), tr("Y Axis Title")); - m_displayLegend = new KProperty("display-legend", true, tr("Display Legend"), tr("Display Legend")); + m_displayLegend = new KProperty("display-legend", true, tr("Display Legend")); keys.clear(); strings.clear(); @@ -150,7 +150,7 @@ m_legendOrientation = new KProperty("legend-orientation", subData, Qt::Vertical, tr("Legend Orientation")); m_backgroundColor = new KProperty("background-color", Qt::white, - tr("Background Color"), tr("Background Color")); + tr("Background Color")); m_linkMaster = new KProperty("link-master", QString(), tr("Link Master"), tr("Fields from master data source")); diff --git a/src/plugins/maps/KReportItemMaps.cpp b/src/plugins/maps/KReportItemMaps.cpp --- a/src/plugins/maps/KReportItemMaps.cpp +++ b/src/plugins/maps/KReportItemMaps.cpp @@ -67,29 +67,26 @@ { m_controlSource = new KProperty("item-data-source", QStringList(), QStringList(), QString(), tr("Data Source")); - m_latitudeProperty = new KProperty("latitude", 0.0, tr("Latitude"), tr("Latitude"), KProperty::Double); + m_latitudeProperty = new KProperty("latitude", 0.0, tr("Latitude"), QString(), KProperty::Double); m_latitudeProperty->setOption("min", -90); m_latitudeProperty->setOption("max", 90); m_latitudeProperty->setOption("unit", QString::fromUtf8("°")); m_latitudeProperty->setOption("precision", 7); - m_longitudeProperty = new KProperty("longitude", 0.0, tr("Longitude"), tr("Longitude"), KProperty::Double); + m_longitudeProperty = new KProperty("longitude", 0.0, tr("Longitude"), QString(), KProperty::Double); m_longitudeProperty->setOption("min", -180); m_longitudeProperty->setOption("max", 180); m_longitudeProperty->setOption("unit", QString::fromUtf8("°")); m_longitudeProperty->setOption("precision", 7); - m_zoomProperty = new KProperty("zoom", 1000, tr("Zoom"), tr("Zoom") ); + m_zoomProperty = new KProperty("zoom", 1000, tr("Zoom") ); m_zoomProperty->setOption("min", 0); m_zoomProperty->setOption("max", 4000); m_zoomProperty->setOption("step", 100); m_zoomProperty->setOption("slider", true); QStringList mapThemIds(m_themeManager.mapThemeIds()); - m_themeProperty = new KProperty("theme", - mapThemIds, - mapThemIds, - mapThemIds[1]); + m_themeProperty = new KProperty("theme", mapThemIds, mapThemIds, mapThemIds[1], tr("Theme")); if (mapThemIds.contains(QLatin1String("earth/srtm/srtm.dgml"))) { m_themeProperty->setValue(QLatin1String("earth/srtm/srtm.dgml"), KProperty::DefaultValueOptions & ~KProperty::ValueOptions(KProperty::ValueOption::RememberOld));