Sync r899162 from Oxygen.
svn path=/trunk/KDE/kdebase/workspace/; revision=904800
This commit is contained in:
parent
65796cc45e
commit
e2e7b64443
1 changed files with 8 additions and 0 deletions
|
@ -51,6 +51,7 @@
|
|||
#include <QPainterPath>
|
||||
#include <QTimer>
|
||||
#include <QCache>
|
||||
#include <QtGui/QApplication>
|
||||
|
||||
#include "math.h"
|
||||
|
||||
|
@ -70,6 +71,12 @@ OxygenHelper *oxygenHelper()
|
|||
return globalHelper;
|
||||
}
|
||||
|
||||
static void oxkwincleanupBefore()
|
||||
{
|
||||
OxygenHelper *h = globalHelper;
|
||||
h->invalidateCaches();
|
||||
}
|
||||
|
||||
void renderDot(QPainter *p, const QPointF &point, qreal diameter)
|
||||
{
|
||||
p->drawEllipse(QRectF(point.x()-diameter/2, point.y()-diameter/2, diameter, diameter));
|
||||
|
@ -81,6 +88,7 @@ OxygenClient::OxygenClient(KDecorationBridge *b, KDecorationFactory *f)
|
|||
, colorCacheInvalid_(true)
|
||||
, helper_(*globalHelper)
|
||||
{
|
||||
qAddPostRoutine(oxkwincleanupBefore);
|
||||
}
|
||||
|
||||
OxygenClient::~OxygenClient()
|
||||
|
|
Loading…
Reference in a new issue