[kdevplatform] 4c56ce7 Provide aboutData information for the plugins. Its

Andreas Pakulat apaku at gmx.de
Sun Aug 29 20:12:49 UTC 2010


commit 4c56ce7f85f554cd1f4ebe0b3946faa64148f76a
Author: Andreas Pakulat <apaku at gmx.de>
Date:   Fri Oct 3 18:16:25 2008 +0000

    Provide aboutData information for the plugins. Its not much work to set this up and it will (hopefully soon) allow a nice tree in the shortcuts editor just like in KDE3.
    
    Everybody who's code I touched should check wether the descriptions are right
    and the license is correct too (its all GPL I think, but better double-check).
    
    What I'm not sure about is wether we also want to add the authors, it would
    need a createAboutData function as you can't provide authors within the
    constructor. Opinions?
    
    If somebody feels he's up for some non-thinking work, feel free to actually
    copy the description from the .desktop files. It would be nice to have .desktop
    and aboutData information in sync, but I'm not going to require that as its a
    pretty tedious job that doesn't buy us anything.
    
    Going to do kdevelop now.
    
    CCMAIL:kdevelop-devel at kdevelop.org

diff --git a/gitplugin.cpp b/gitplugin.cpp
index 0c7722f..90b4ec3 100644
--- a/gitplugin.cpp
+++ b/gitplugin.cpp
@@ -23,6 +23,7 @@
 #include <KPluginFactory>
 #include <KPluginLoader>
 #include <klocalizedstring.h>
+#include <kaboutdata.h>
 #include <QDebug>
 
 #include <interfaces/icore.h>
@@ -36,7 +37,7 @@
 #include "gitexecutor.h"
 
 K_PLUGIN_FACTORY(KDevGitFactory, registerPlugin<GitPlugin>(); )
-K_EXPORT_PLUGIN(KDevGitFactory("kdevgit"))
+K_EXPORT_PLUGIN(KDevGitFactory(KAboutData("kdevgit","kdevgit",ki18n("Git"),"0.1",ki18n("A plugin to support git version control systems"), KAboutData::License_GPL)))
 
 GitPlugin::GitPlugin( QObject *parent, const QVariantList & )
     : DistributedVersionControlPlugin(parent, KDevGitFactory::componentData())




More information about the KDevelop-devel mailing list