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

List:       kde-commits
Subject:    [calligra] libs/odf: Let's use draw:opacity instead of draw:transparency.
From:       Matus Uzak <matus.uzak () gmail ! com>
Date:       2012-06-12 16:30:50
Message-ID: 20120612163050.908C9A60B9 () git ! kde ! org
[Download RAW message or body]

Git commit 7fd920b02178b3cbe11d874c8ba741fcbc29b998 by Matus Uzak.
Committed on 12/06/2012 at 18:28.
Pushed by uzak into branch 'master'.

Let's use draw:opacity instead of draw:transparency.

The draw:transparency property is not present in ODF 1.2 and ODF 1.1.
REVIEW:105025

M  +7    -7    libs/odf/KoOdfGraphicStyles.cpp

http://commits.kde.org/calligra/7fd920b02178b3cbe11d874c8ba741fcbc29b998

diff --git a/libs/odf/KoOdfGraphicStyles.cpp b/libs/odf/KoOdfGraphicStyles.=
cpp
index 972333d..835e9f1 100644
--- a/libs/odf/KoOdfGraphicStyles.cpp
+++ b/libs/odf/KoOdfGraphicStyles.cpp
@@ -48,37 +48,37 @@ void KoOdfGraphicStyles::saveOdfFillStyle(KoGenStyle &s=
tyleFill, KoGenStyles& ma
                                             ? KoGenStyle::DefaultType : Ko=
GenStyle::GraphicType;
     switch (brush.style()) {
     case Qt::Dense1Pattern:
-        styleFill.addProperty("draw:transparency", "94%", propertyType);
+        styleFill.addProperty("draw:opacity", "6%", propertyType);
         styleFill.addProperty("draw:fill", "solid", propertyType);
         styleFill.addProperty("draw:fill-color", brush.color().name(), pro=
pertyType);
         break;
     case Qt::Dense2Pattern:
-        styleFill.addProperty("draw:transparency", "88%", propertyType);
+        styleFill.addProperty("draw:opacity", "12%", propertyType);
         styleFill.addProperty("draw:fill", "solid", propertyType);
         styleFill.addProperty("draw:fill-color", brush.color().name(), pro=
pertyType);
         break;
     case Qt::Dense3Pattern:
-        styleFill.addProperty("draw:transparency", "63%", propertyType);
+        styleFill.addProperty("draw:opacity", "37%", propertyType);
         styleFill.addProperty("draw:fill", "solid", propertyType);
         styleFill.addProperty("draw:fill-color", brush.color().name(), pro=
pertyType);
         break;
     case Qt::Dense4Pattern:
-        styleFill.addProperty("draw:transparency", "50%", propertyType);
+        styleFill.addProperty("draw:opacity", "50%", propertyType);
         styleFill.addProperty("draw:fill", "solid", propertyType);
         styleFill.addProperty("draw:fill-color", brush.color().name(), pro=
pertyType);
         break;
     case Qt::Dense5Pattern:
-        styleFill.addProperty("draw:transparency", "37%", propertyType);
+        styleFill.addProperty("draw:opacity", "63%", propertyType);
         styleFill.addProperty("draw:fill", "solid", propertyType);
         styleFill.addProperty("draw:fill-color", brush.color().name(), pro=
pertyType);
         break;
     case Qt::Dense6Pattern:
-        styleFill.addProperty("draw:transparency", "12%", propertyType);
+        styleFill.addProperty("draw:opacity", "88%", propertyType);
         styleFill.addProperty("draw:fill", "solid", propertyType);
         styleFill.addProperty("draw:fill-color", brush.color().name(), pro=
pertyType);
         break;
     case Qt::Dense7Pattern:
-        styleFill.addProperty("draw:transparency", "6%", propertyType);
+        styleFill.addProperty("draw:opacity", "94%", propertyType);
         styleFill.addProperty("draw:fill", "solid", propertyType);
         styleFill.addProperty("draw:fill-color", brush.color().name(), pro=
pertyType);
         break;
[prev in list] [next in list] [prev in thread] [next in thread] 

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