allow changing the reason the applet failed

svn path=/trunk/KDE/kdelibs/; revision=903146
This commit is contained in:
Aaron J. Seigo 2008-12-30 01:00:13 +00:00
parent c1caaba626
commit c7b36c7959

View File

@ -278,6 +278,14 @@ void AppletPrivate::setFocus()
void Applet::setFailedToLaunch(bool failed, const QString &reason)
{
if (d->failed == failed) {
if (failed && !reason.isEmpty()) {
foreach (QGraphicsItem *item, QGraphicsItem::children()) {
Label *l = dynamic_cast<Label *>(item);
if (l) {
l->setText(d->visibleFailureText(reason));
}
}
}
return;
}