less jumping around and desktop assumptions
This commit is contained in:
parent
68a2d5a229
commit
224946e394
@ -319,20 +319,11 @@ QString Applet::title() const
|
|||||||
return d->customTitle;
|
return d->customTitle;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (d->isContainment) {
|
if (d->appletDescription.isValid()) {
|
||||||
const Containment *c = qobject_cast<const Containment*>(this);
|
|
||||||
if (c && c->d->isPanelContainment()) {
|
|
||||||
return i18n("Panel");
|
|
||||||
} else if (!d->appletDescription.isValid()) {
|
|
||||||
return i18n("Unknown");
|
|
||||||
} else {
|
|
||||||
return d->appletDescription.name();
|
return d->appletDescription.name();
|
||||||
}
|
}
|
||||||
} else if (!d->appletDescription.isValid()) {
|
|
||||||
return i18n("Unknown Widget");
|
|
||||||
}
|
|
||||||
|
|
||||||
return d->appletDescription.name();
|
return i18n("Unknown");
|
||||||
}
|
}
|
||||||
|
|
||||||
void Applet::setTitle(const QString &title) const
|
void Applet::setTitle(const QString &title) const
|
||||||
|
Loading…
Reference in New Issue
Block a user