Re: [patch] QHttp and QFtp forbidden in KDE

2008-08-29 Thread Thiago Macieira
On Sexta 29 Agosto 2008 13:23:52 Rafael Fernández López wrote: > Hi Thiago and all, > > Just a probably stupid question. Can you just do on QHttp and QFtp code > something like: > > Q_ASSERT_X(!qobject_cast(qApp()), "Whatever", "You shouldn't > use this code in KDE code, use KIO instead"); > > I th

[patch] QHttp and QFtp forbidden in KDE

2008-08-29 Thread Thiago Macieira
Those two classes are not allowed in KDE code. They won't follow the KDE settings, so using KIO is mandatory. The attached patch will accomplish this by causing any code using them to fail to compile. I will commit it next week. I know that the twitter plasmoid is using QHttp and will thus bre

Re: [patch] QHttp and QFtp forbidden in KDE

2008-08-29 Thread Rafael Fernández López
Hi Thiago and all, Just a probably stupid question. Can you just do on QHttp and QFtp code something like: Q_ASSERT_X(!qobject_cast(qApp()), "Whatever", "You shouldn't use this code in KDE code, use KIO instead"); I think this would fix the problem when Marble is Qt-only based. Regards, Rafa