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

List:       kde-commits
Subject:    playground/office/flake/lib
From:       Thomas Zander <zander () kde ! org>
Date:       2006-05-14 20:23:06
Message-ID: 1147638186.065035.5285.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 540855 by zander:

Add hasTransparancy() method to KoShape

 M  +6 -0      KoShape.h  


--- trunk/playground/office/flake/lib/KoShape.h #540854:540855
@@ -207,6 +207,12 @@
     const QBrush& background () { return m_backgroundBrush; }
 
     /**
+     * Returns true if there is some transparancy, false if the shape is fully opaque.
+     * @return if the shape is (partly) transparant.
+     */
+    bool hasTransparancy() { return !m_backgroundBrush.isOpaque(); }
+
+    /**
      * Retrieve the z-coordinate of this graphics object.
      * The zIndex property is used to determine which object lies on top of other objects.
      * An object with a higher z-order is on top, and can obscure, another object.
[prev in list] [next in list] [prev in thread] [next in thread] 

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