Plugins depending on the standardoutputview with no Ui
Dmitry Risenberg
dmitry.risenberg at gmail.com
Wed Mar 23 10:51:34 UTC 2011
2011/3/23 Andreas Pakulat <apaku at gmx.de>:
> On 23.03.11 11:18:18, Julian Bäume wrote:
>> Hi,
>>
>> Am Mittwoch, 23. März 2011, 09:45:22 schrieb Andreas Pakulat:
>> > PS: The KDevPlatform codebase has not been written with non-gui apps in
>> > mind, hence you can always run into code-paths where suddenly ui is
>> > needed. As the no-ui mode usually is used without KApplication or at
>> > least without X11 connection, that means your app will crash at that
>> > point.
>>
>> What’s the use for KDevelop::Core::NoUi then?
>
> To get kdevplatform loaded into an app that uses KApplication without X11
> connection (or QCoreApplication+KComponentData as the tests do). That
> however is a hack and you've to be rather careful what you do with the
> kdevplatform libs as not all code-paths have been tested or examined for
> necessity of this flag to disable certain things. In particular when errors
> occur the code may still try to show message-boxes or what-not to the user.
Can I check this flag to avoid showing a messagebox when code is
called from a no-gui test suite?
--
Dmitry Risenberg
More information about the KDevelop-devel
mailing list