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

List:       kde-commits
Subject:    playground/utils/filelight/src/part/radialMap
From:       Martin Tobias Holmedahl Sandsmark <sandsmark () samfundet ! no>
Date:       2009-05-12 17:07:33
Message-ID: 1242148053.149226.20564.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 967138 by sandsmark:

bring back transparent backgrounds

 M  +5 -2      segmentTip.cpp  


--- trunk/playground/utils/filelight/src/part/radialMap/segmentTip.cpp #967137:967138
@@ -41,6 +41,7 @@
         : QWidget(0, Qt::FramelessWindowHint | Qt::Tool | Qt::WindowStaysOnTopHint | \
Qt::X11BypassWindowManagerHint)  , m_cursorHeight(-h)
 {
+    setAttribute(Qt::WA_TranslucentBackground);
 }
 
 void
@@ -102,8 +103,9 @@
     // Paint
     m_pixmap = QPixmap(size()); //move to updateTip once you are sure it can never \
be null  
-    const QColor bg = QToolTip::palette().color(QPalette::Active, \
QPalette::Background); +    QColor bg = QToolTip::palette().color(QPalette::Active, \
                QPalette::Background);
     const QColor fg = QToolTip::palette().color(QPalette::Active, \
QPalette::WindowText); +    bg.setAlpha(200);
 
     m_pixmap.fill(bg);
 
@@ -136,7 +138,7 @@
         ;
     }
 
-    return false/*QWidget::event(e)*/;
+    return false;
 }
 
 bool
@@ -159,3 +161,4 @@
 }
 
 } //namespace RadialMap
+


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

Configure | About | News | Add a list | Sponsored by KoreLogic