What to do about KColor?
Thiago Macieira
thiago at kde.org
Mon May 28 01:36:37 BST 2007
Andreas Pakulat wrote:
>b) everybody who wants to blend two colors now has to do 3 lines of code
>(as Matthew showed) instead of just one.
Non-issue.
More lines is better if it makes code more readable.
You may even not agree with that statement. But you cannot ignore the fact
that it is the driving force behind Qt 4 and KDE 4.
http://doc.trolltech.com/qq/qq13-apis.html#theconveniencetrap
(I am not judging the API. I have no idea if setAlpha is readable or not)
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070528/b8265e3f/attachment.sig>
More information about the kde-core-devel
mailing list