allow changing the reason the applet failed
svn path=/trunk/KDE/kdelibs/; revision=903146
This commit is contained in:
parent
c1caaba626
commit
c7b36c7959
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user