[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: mocking kcontrol infrastructure for quick kontrol module test
From: "Gary L. Greene Jr." <greeneg () phoenuxos ! com>
Date: 2006-08-27 17:08:24
Message-ID: 200608271308.29707.greeneg () phoenuxos ! com
[Download RAW message or body]
On Sunday 27 August 2006 12:45, Andriy Rysin wrote:
> Some time ago I was able to test kcmlayout module quickly without all the
> KCM infrastructure by creating a simple main.cpp file and linking it to the
> module files.
> The source was as simple as this:
>
> ...
> int main(int argc, char *argv[])
> {
> QApplication app(argc, argv);
>
> QWidget window;
>
> KInstance* inst = new KInstance("kcmlayout");
> new LayoutConfig(inst, &window);
>
> window.show();
> return app.exec();
> }
>
>
> Can somebody tell me how that could be done with new KGenericFactory
> approach?
> If I just change to LayoutConfig(window, emptyStringList) it asserts in
> kcmodule.cpp
>
> Thanks,
> Andriy
Why not use kcmshell to test it in?
[Attachment #3 (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic