From kde-commits Sun Dec 05 20:40:12 2010 From: =?utf-8?q?Aaron=20J=2E=20Seigo?= Date: Sun, 05 Dec 2010 20:40:12 +0000 To: kde-commits Subject: KDE/kdelibs/plasma/private Message-Id: <20101205204012.6C251AC8A5 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=129158166717859 SVN commit 1203978 by aseigo: repaint when the svgs change M +7 -0 applethandle.cpp M +1 -0 applethandle_p.h --- trunk/KDE/kdelibs/plasma/private/applethandle.cpp #1203977:1203978 @@ -102,9 +102,11 @@ m_configureIcons = new Svg(this); m_configureIcons->setImagePath("widgets/configuration-icons"); m_configureIcons->setContainsMultipleImages(true); + connect(m_configureIcons, SIGNAL(repaintNeeded()), this, SLOT(scheduleUpdate())); m_background = new FrameSvg(this); m_background->setImagePath("widgets/background"); + connect(m_background, SIGNAL(repaintNeeded()), this, SLOT(scheduleUpdate())); m_applet->installSceneEventFilter(this); } @@ -382,6 +384,11 @@ emit disappearDone(this); } +void AppletHandle::scheduleUpdate() +{ + update(); +} + AppletHandle::ButtonType AppletHandle::mapToButton(const QPointF &point) const { int iconMargin = m_iconSize / 2; --- trunk/KDE/kdelibs/plasma/private/applethandle_p.h #1203977:1203978 @@ -92,6 +92,7 @@ void hoverTimeout(); void leaveTimeout(); void emitDisappear(); + void scheduleUpdate(); private: static const int HANDLE_MARGIN = 3;