[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:       2010-01-25 22:21:02
Message-ID: 1264458062.109864.30293.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1080232 by sandsmark:

undo some experimental transparency testing that accidentally got committed

 M  +1 -3      map.cpp  
 M  +0 -10     widget.cpp  


--- trunk/playground/utils/filelight/src/part/radialMap/map.cpp #1080231:1080232
@@ -277,9 +277,7 @@
     QRect rect = m_rect;
 
     rect.adjust(5, 5, -5, -5);
-    QColor background = m_scheme.background().color();
-    background.setAlpha(0);
-    m_pixmap.fill(background);
+    m_pixmap.fill(m_scheme.background().color());
 
     //m_rect.moveRight(1); // Uncommenting this breaks repainting when recreating map from cache
 
--- trunk/playground/utils/filelight/src/part/radialMap/widget.cpp #1080231:1080232
@@ -48,16 +48,6 @@
     setAcceptDrops(true);
     setMinimumSize(100,100);//TODO: set a sane minimumsize, not just a random one.
 
-    QColor background = palette().background().color();
-    background.setAlpha(50);
-    QPalette pal = palette();
-    pal.setColor(QPalette::Window, background);
-    setPalette(pal);
-    setAttribute(Qt::WA_TranslucentBackground);
-    parent->setAttribute(Qt::WA_TranslucentBackground);
-    parent->parentWidget()->setAttribute(Qt::WA_TranslucentBackground);
-
-
     const QBitmap *cursor = QCursor(Qt::PointingHandCursor).bitmap();
     m_tip = new SegmentTip(cursor ? cursor->height() : 16);
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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