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

List:       kde-devel
Subject:    Re: Native Widgets for OpenOffice
From:       Maks Orlovich <mo002j () mail ! rochester ! edu>
Date:       2003-12-13 4:27:24
[Download RAW message or body]


> It should not be too hard to do it though, probably the QStyle/KStyle
> classes have all that is needed.

Hardly. QStyle is tied intimately w/the actual Qt widgets (i.e. you can't
draw a combobox unless you have a QComboBox), and drawing code is also
heavily implicitly reliant on the widget sizing.
The best one can do, I think, is to try to keep a hidden copy of a Qt widget
matching the OOo one, and pray very hard that OOo gives it enough room to
draw w/o blowing up. That's likely to break in weird ways, and definitely
would not work quite right (although most people likely wouldn't notice ---
after all there are even folks who insist that Geramik "matches" Keramik).
Of course, this also requires the highly untrivial task of porting the
whole drawing framework to Qt, to make QPainter it possible to call any
style method, although it looks like this task was done already by the
(brilliant) author of Cuckooo. 

-Maks



 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

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