diff --git a/src/lib/marble/MarbleLegendBrowser.cpp b/src/lib/marble/MarbleLegendBrowser.cpp --- a/src/lib/marble/MarbleLegendBrowser.cpp +++ b/src/lib/marble/MarbleLegendBrowser.cpp @@ -292,7 +292,7 @@ // Well is like a block of data with rounded corners customLegendString += "
"; - + const QString heading = QCoreApplication::translate("DGML", section->heading().toUtf8().constData()); QString checkBoxString; if (section->checkable()) { // If it's needed to make a checkbox here, we will @@ -308,22 +308,22 @@ "connectTo() + "\" name=\"" + section->radio() + "\" />" - + section->heading() + + + heading + ""; } else { checkBoxString = "" ""; } customLegendString += checkBoxString; } else { - customLegendString += "

"+section->heading()+"

"; + customLegendString += "

" + heading + "

"; } foreach (const GeoSceneItem *item, section->items()) { @@ -362,11 +362,12 @@ styleDiv = "width: " + QString::number(pixmapWidth) + "px; height: " + QString::number(pixmapHeight) + "px; background-color: " + color.name() + ';'; } + const QString text = QCoreApplication::translate("DGML", item->text().toUtf8().constData()); QString html = "" "
" " " "
"; customLegendString += html;