Loading KCModule

Milian Wolff mail at milianw.de
Tue Mar 29 10:11:04 UTC 2011


spencerandrewjackson, 29.03.2011:
> Hi! I'm trying to create a KCModule which will appear for all projects
> under Project->Open Configuration. I created the class in
> kdevplatform/projects, and set X-KDE-ParentApp=kdevplatformproject.
> The constructor for the plugin isn't getting executed, and it's not
> appearing in the Dialog. Further, I can use kcmshell4 and see a blank
> window with my title, comments, and GUI. My thought is that it has
> something to do with the .desktop? I've included the file below. If
> anyone has any thoughts on what's wrong with this, thank you very
> much.
> 
> [Desktop Entry]
> Type=Service
> Icon=kdevelop
> Name=Projectsafdd Editor Settings
> Comment=Magic String
> SeviceTypes=KCModule
> 
> X-KDE-ModuleType=Library
> X-KDE-Library=kcm_kdev_projecteditorsettings
> X-KDE-FactoryName=kcm_kdev_projecteditorsettings
> X-KDE-ParentApp=kdevplatformproject
> X-KDE-ParentComponents=kdevplatformproject
> X-KDE-Weight=7

Have you looked at the other project-specific KCMs? E.g. 
kcm_kdev_makebuilder.desktop has this:

[Desktop Entry]
Icon=kdevelop
Type=Service
ServiceTypes=KCModule

X-KDE-ModuleType=Library
X-KDE-Library=kcm_kdev_makebuilder
X-KDE-FactoryName=kcm_kdev_makebuilder
X-KDE-ParentApp=kdevplatformproject
X-KDE-ParentComponents=KDevMakeBuilder # this is important
X-KDE-CfgDlgHierarchy=BUILDTOOL # not sure how important this is

try to play with these values.

bye
-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20110329/d3eeed4b/attachment.sig>


More information about the KDevelop-devel mailing list