From a5ad6a0675eb7f017b268d35730814c675282c94 Mon Sep 17 00:00:00 2001 From: Jason Stubbs Date: Thu, 27 Dec 2007 15:03:50 +0000 Subject: [PATCH] Switch to a busy cursor while the applet is loading BUG: 154512 svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=753469 --- containment.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/containment.cpp b/containment.cpp index e1961545f..36fec231b 100644 --- a/containment.cpp +++ b/containment.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -393,7 +394,16 @@ void Containment::clearApplets() Applet* Containment::addApplet(const QString& name, const QVariantList& args, uint id, const QRectF& appletGeometry, bool delayInit) { + QGraphicsView *v = view(); + if (v) { + v->setCursor(Qt::BusyCursor); + } + Applet* applet = Applet::loadApplet(name, id, args); + if (v) { + v->unsetCursor(); + } + if (!applet) { kDebug() << "Applet" << name << "could not be loaded."; applet = new Applet;