[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.6/kdelibs/plasma
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2011-01-18 23:06:47
Message-ID: 20110118230647.92295AC8B8 () svn ! kde ! org
[Download RAW message or body]
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()
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic