From kde-commits Tue Jan 18 23:06:47 2011 From: =?utf-8?q?Aaron=20J=2E=20Seigo?= Date: Tue, 18 Jan 2011 23:06:47 +0000 To: kde-commits Subject: branches/KDE/4.6/kdelibs/plasma Message-Id: <20110118230647.92295AC8B8 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=129539205907360 SVN commit 1215517 by aseigo: update the borders when the svg signals us to M +3 -5 dialog.cpp --- branches/KDE/4.6/kdelibs/plasma/dialog.cpp #1215516:1215517 @@ -100,6 +100,7 @@ // when we aren't compositing q->setAttribute(Qt::WA_NoSystemBackground, !translucency); updateMask(); + q->update(); } void DialogPrivate::updateMask() @@ -386,11 +387,13 @@ : QWidget(parent, f | Qt::FramelessWindowHint), d(new DialogPrivate(this)) { + setMouseTracking(true); setAttribute(Qt::WA_TranslucentBackground); d->background = new FrameSvg(this); d->background->setImagePath("dialogs/background"); d->background->setEnabledBorders(FrameSvg::AllBorders); d->background->resizeFrame(size()); + connect(d->background, SIGNAL(repaintNeeded()), this, SLOT(themeChanged())); QPalette pal = palette(); pal.setColor(backgroundRole(), Qt::transparent); @@ -405,12 +408,7 @@ d->adjustSizeTimer->setSingleShot(true); connect(d->adjustSizeTimer, SIGNAL(timeout()), this, SLOT(delayedAdjustSize())); - connect(d->background, SIGNAL(repaintNeeded()), this, SLOT(update())); - - connect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()), this, SLOT(themeChanged())); d->themeChanged(); - - setMouseTracking(true); } Dialog::~Dialog()