[prev in list] [next in list] [prev in thread] [next in thread]
List: kfm-devel
Subject: Fwd: [patch] Re: kdelibs/khtml/dom
From: Rob Kaper <cap () capsi ! com>
Date: 2002-11-06 18:42:42
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Apparently kfm-devel is the better one for this. Was QColor
DOM::RGBColor::color() removed recently? KSVG seems to depend on that. It
doesn't need a real QColor though, but an accessor to the QRgb was necessary
for me to make it compile and run.
Rob
- ---------- Forwarded Message ----------
Subject: [patch] Re: kdelibs/khtml/dom
Date: Wednesday 06 November 2002 15:45
From: Rob Kaper <cap@capsi.com>
To: kde-core-devel@kde.org
- -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday 06 November 2002 15:32, Rob Kaper wrote:
> ... If noone objects, I'd like to add a method to DOM::RGBColor returning
> its QRgb so I can make KSVG work for me again.
Now with patch.
- - --
Rob Kaper | Gimme some love, gimme some skin,
cap@capsi.com | if we ain't got that then we ain't got much
www.capsi.com | and we ain't got nothing, nothing! -- "Nothing" by A
- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE9ySsBtppIl2G1SjcRAkkzAKDIQSYVVDYdt9D+10kADfht0H8UiACgvqQm
OW+tC+quv/8+20aJMaDTb+c=
=pWlG
- -----END PGP SIGNATURE-----
- -------------------------------------------------------
- --
Rob Kaper | Gimme some love, gimme some skin,
cap@capsi.com | if we ain't got that then we ain't got much
www.capsi.com | and we ain't got nothing, nothing! -- "Nothing" by A
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE9yWKitppIl2G1SjcRAoj2AJ9K6NcPPYIeS+h552owf2Bq7RBR8gCgrLsf
7ns+vBoE057a88U4/1L8r30=
=Q8ZF
-----END PGP SIGNATURE-----
["rgbcolor.diff" (text/x-diff)]
Index: css_value.cpp
===================================================================
RCS file: /home/kde/kdelibs/khtml/dom/css_value.cpp,v
retrieving revision 1.21
diff -u -3 -d -p -r1.21 css_value.cpp
--- css_value.cpp 2002/11/03 18:04:04 1.21
+++ css_value.cpp 2002/11/06 14:43:46
@@ -494,6 +494,10 @@ CSSPrimitiveValue RGBColor::blue() const
return new CSSPrimitiveValueImpl(float(qAlpha(m_color) ? qBlue(m_color) : 0), \
CSSPrimitiveValue::CSS_DIMENSION); }
+QRgb RGBColor::rgbColor() const
+{
+ return m_color;
+}
// ---------------------------------------------------------------------
Index: css_value.h
===================================================================
RCS file: /home/kde/kdelibs/khtml/dom/css_value.h,v
retrieving revision 1.15
diff -u -3 -d -p -r1.15 css_value.h
--- css_value.h 2002/10/27 17:13:01 1.15
+++ css_value.h 2002/11/06 14:43:46
@@ -605,6 +605,12 @@ public:
*/
CSSPrimitiveValue blue() const;
+ /**
+ * This attribute is used to represent the RGB Color as QRgb.
+ *
+ */
+ QRgb rgbColor() const;
+
protected:
QRgb m_color;
};
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic