[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/plasma
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2011-01-18 23:04:07
Message-ID: 20110118230407.C977CAC8B7 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1215513 by aseigo:

connect to the svg's signal, not the theme's. this ensures the svg is ready for us when we check it


 M  +3 -5      dialog.cpp  


--- trunk/KDE/kdelibs/plasma/dialog.cpp #1215512:1215513
@@ -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