From kde-kimageshop Wed Aug 30 14:45:43 2006 From: Boudewijn Rempt Date: Wed, 30 Aug 2006 14:45:43 +0000 To: kde-kimageshop Subject: Adrian on Painters and Qt4 Message-Id: <200608301645.43740.boud () valdyas ! org> X-MARC-Message: https://marc.info/?l=kde-kimageshop&m=115694922004402 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============1575587163==" --===============1575587163== Content-Type: multipart/signed; boundary="nextPart11836645.clkPENkLkb"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart11836645.clkPENkLkb Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =46or archival purposes: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The way the paint system currently works is that you have either a=20 KisQPaintDeviceCanvas (based on a QWidget) or a KisOpenGLCanvas (based=20 on a QGLWidget) and you paint on these using a KisCanvasPainter.=20 KisCanvasPainter has mostly the same API as QPainter, so you can work=20 with it much as you would a QPainter on a normal widget.=20 KisQPaintDeviceCanvasPainter implements KisCanvasPainter using a=20 QPainter internally. In Qt 3, since you can't paint with a QPainter on a=20 QGLWidget, KisOpenGLCanvasPainter implements the KisCanvasPainter=20 functions using the direct OpenGL interface. However, since in Qt 4=20 QPainter can paint on a QGLWidget, KisCanvasPainter should be able to=20 simply inherit QPainter and there should be no need for=20 KisOpenGLCanvasPainter or KisQPaintDeviceCanvasPainter. That's how I saw=20 it going. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =2D-=20 Boudewijn Rempt=20 http://www.valdyas.org/fading/index.cgi --nextPart11836645.clkPENkLkb Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBE9aSXdaCcgCmN5d8RApzCAKCaNJrlbWZ6ACNnJ1tIeZ0ROVw4pACfcLAs zvgni8mneYbNq+0Q/4qT8eA= =h7Bi -----END PGP SIGNATURE----- --nextPart11836645.clkPENkLkb-- --===============1575587163== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kimageshop mailing list kimageshop@kde.org https://mail.kde.org/mailman/listinfo/kimageshop --===============1575587163==--