Generalize non-global KComponentData
Matthew Woehlke
mw_triad at users.sourceforge.net
Tue Jul 3 16:59:58 BST 2007
Matthew Woehlke wrote:
> (Please help test this, especially on non-Linux systems. Testing
> instructions coming shortly, in a follow-up message.)
...as promised. In KDE3, there were some serious problems using kdeui in
styles outside of KDE applications. So to test, apply the attached patch
to plastik so that it is using kdeui (obviously, kdeui patched with the
previous patch), and run any Qt-only applications you have with '-style
plastik'. You'll know it's working if mouseover effects are green
instead of blue :-).
David Faure thinks the crash bugs are resolved, and Matthias and I think
the previous patch fixes the KComponentData issue. If there are no other
problems uncovered, then it is now safe for styles to use kdeui :-) (as
long as they don't touch KGlobal).
> This is a collaborative patch with Matthias Kretz (he wrote the KCD
> parts) so that styles can use KComponentData (and thus kdeui, carefully)
> safely. If there are no objections (or better suggestions?), I plan to
> check it in next Monday.
>
> This addresses (but doesn't fix) styles not being able to use KGlobal in
> non-KDE applications, by allowing styles to safely create a
> KComponentData instead and use that where KGlobal would otherwise be
> needed.
--
Matthew
Sending this e-mail does not constitute endorsement of the contents; I
may change my mind later.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plastik-kdeui.patch
Type: text/x-patch
Size: 4048 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070703/f97ef4e9/attachment.bin>
More information about the kde-core-devel
mailing list