Commit ea21775a authored by David Edmundson's avatar David Edmundson
Browse files

Handle title/Title disambiguation

For translation reasons the Title has be in upper-camel case in default
files. We use this if a custom written one if not available
parent ebcf8752
......@@ -360,7 +360,13 @@ SensorFaceController::~SensorFaceController()
QString SensorFaceController::title() const
return d->appearanceGroup.readEntry("title", name());
// both Title and title can exist to allow i18n of Title
if (d->appearanceGroup.hasKey("title")) {
return d->appearanceGroup.readEntry("title");
} else {
// if neither exist fall back to name
return d->appearanceGroup.readEntry("Title", name());
void SensorFaceController::setTitle(const QString &title)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment