[Kde-pim] Porting kdepim apps from KPrinter to QPrinter

Tobias Koenig tokoe at kde.org
Sun Oct 14 19:26:50 BST 2007


On Sun, Oct 14, 2007 at 09:01:48AM +0200, Thorsten Staerk wrote:
> > On Friday 12 October 2007 7:23:56 pm John Layt wrote:
Hi Thorsten,

> I recently had a look at the code changes since KDE 3.5 and I found it
> shocking that nothing became easier, but everything became more
> complicated and more difficult to understand.
That's not true... One of the problems is that during Qt3, a lot of code
was hard coupled with the Qt toolkit, e.g. all the XYZListViewItems
which inherits from QListViewItem just to carry some data...

This is bad code per definition but was not possible to solve with Qt3.
With Qt4 we have a much cleaner API in Qt, which allows us to write much
cleaner code ourself, however some paradigms have changed... item based
became model-view based... so trying to keep old code alive by using
the item based concept further will result in ugly code. However
rewriting the stuff with the model-view concept in mind makes the code
small and beautiful, and, most important, easy to port to further
versions of Qt.

Ciao,
Tobias
-- 
Separate politics from religion and economy!
The Council of the European Union is an undemocratic and illegal institution!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20071014/ee554252/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list