bug in template KModule

JES yez at home.nl
Fri Oct 19 10:48:10 BST 2001


Hi,
In the template for building a kmodule, there's is an error in :
extern "C"
{

        KCModule *create_Module(QWidget *parent, const char *name)
        {
                KGlobal::locale()->insertCatalogue("Module");
                return new Module(parent, name);
        }
}

At least in KDE 2.2, kcmshell is expecting create_module instead of 
create_Module
I guess it must be ( in skel.cpp )
extern "C"
{

        KCModule *create_|NAMETITLE|(QWidget *parent, const char *name)
        {
                KGlobal::locale()->insertCatalogue("|NAME|");
                return new |NAME|(parent, name);
        }
}

instead of
extern "C"
{

        KCModule *create_|NAME|(QWidget *parent, const char *name)
        {
                KGlobal::locale()->insertCatalogue("|NAME|");
                return new |NAME|(parent, name);
        }
}

isn't it ?

With kind regards,
Edwin.

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list