Adding QtDesigner custom widget plugin for KConfigXT

Andreas Pakulat apaku at gmx.de
Fri Jul 6 14:02:06 UTC 2007


On 06.07.07 08:55:08, dukju ahn wrote:
> I'd like to port kdev3's environment variable widgets into
> current makebuilder project setting page. Currently it uses KEditListBox.

Make sure you choose the one that allows to view the current environment
settings. Not sure which one that is though.

> I found that to be used with kconfig compiler, custom widget should
> have name "kcfg_name" in qtdesigner file. That means, we have
> no way but to add custom widget plugin for designer. kdelibs
> already installs its own designer plugins.
> 
> Is it allowed thing that kdevelop installs widget plugin for
> qt designer?

In general I don't think there's a problem with that, however as I said
this widget (and its plugin if needed) should be in kdevplatform/util
not in kdevelop. 

> Or is there any simpler approach that custom widgets
> are compatible with KConfigXT?

I think the promote to custom widget way should also work, after all
KConfigXT uses the object names in the actual code to find the widgets,
that is it just walks through the object hierarchy and searches for
objects with kcfg prefix. So put in a KEditListBox in the .ui file,
right-click it and select "promote to custom widget" then choose the
class name and header file of the new widget.

Of course as we get more and more widgets in util/ or some widgets/
library in platform we probably should create a plugin that serves all
these widgets (you don't need one plugin per widget).

Andreas

-- 
You look like a million dollars.  All green and wrinkled.




More information about the KDevelop-devel mailing list