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

List:       kde-pim
Subject:    Re: [Kde-pim] Compile broken in korganizer
From:       Reinhold Kainhofer <reinhold () kainhofer ! com>
Date:       2004-09-30 13:06:37
Message-ID: 200409301506.42055.reinhold () kainhofer ! com
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Thursday 30 September 2004 14:14, you wrote:
> Cornelius already notified me about the problem. It's a bit tricky and the
> only solution I could come up with is adding custom dependencies and UIC
> ala
>
> UIC = @UIC@ -L $(top_builddir)/kdepimwidgets
>
> mycodefile.h: $(top_builddir)/kdepimwidgets/mywidgetplugin.la
>
> You see: it's ugly and error prone

Even simpler. I took a look at how kdelibs does it (e.g. 
kdelibs/kio/kfile/knotifywidgetbase.ui). There, it explicitly specifies the 
include files, and these entries will not be touched by designer.

So, I added 
<includes>
    <include location="global" impldecl="in 
declaration">addresseelineedit.h</include>
</includes>

to the offending .ui file, and not compilation works, even if libkdepim is not 
yet installed (and the plugin cannot be found by uic).

Actually, this means that all .ui files in kdepim, that want to use any of the 
pim widgets, will have to be edited manually to include such a <includes>... 
Otherwise compilation will break.

Reinhold
-- 
------------------------------------------------------------------
Reinhold Kainhofer, Vienna, Austria
email: reinhold@kainhofer.com, http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at
 * K Desktop Environment, http://www.kde.org/, KOrganizer / KPilot maintainer

[Attachment #5 (application/pgp-signature)]

_______________________________________________
kde-pim mailing list
kde-pim@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/

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

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