Core::initialize

Andreas Pakulat apaku at gmx.de
Sat Jul 11 13:06:42 UTC 2009


On 10.07.09 10:39:28, Killerfox wrote:
> -continutation-
> 
> Patch is attached(apply on kdevelop/languages), any thoughts?

> -QTEST_MAIN(TestCppCodegen)
> +QTEST_KDEMAIN(TestCppCodegen, NoGUI )
>  
>  using namespace KDevelop;
>  
>  TestCppCodegen::TestCppCodegen()
>  {
> +}
> +
> +void TestCppCodegen::initTestCase()
> +{
> +  //Initialize KDevelop components
> +  AutoTestShell::init();
> +  Core::initialize(/*KDevelop::Core::NoUi*/);

Uhm, that won't work. You cannot create a gui-core in a non-gui
application. Either you change to use QTEST_KDEMAIN(TestCppCodegen)
or you use KDevelop::Core::NoUi for the core. (Actually I'm not sure
wether you can have a non-gui QApplication/KApplication even with
Core::NoUi).

Andreas

-- 
You have no real enemies.




More information about the KDevelop-devel mailing list