From kde-panel-devel Fri Aug 29 12:18:06 2008 From: Thiago Macieira Date: Fri, 29 Aug 2008 12:18:06 +0000 To: kde-panel-devel Subject: Re: [patch] QHttp and QFtp forbidden in KDE Message-Id: <200808291418.07234.thiago () kde ! org> X-MARC-Message: https://marc.info/?l=kde-panel-devel&m=122001641615080 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============1925853287==" --===============1925853287== Content-Type: multipart/signed; boundary="nextPart3083415.O6Qsqj6J79"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart3083415.O6Qsqj6J79 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sexta 29 Agosto 2008 13:23:52 Rafael Fern=E1ndez L=F3pez 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 think this would fix the problem when Marble is Qt-only based. No. Reasons: 1) To use qobject_cast, we need to link to libkdeui. Which w= e=20 can't. 2) It's not Qt's place to determine what's good for KDE. But it is KDE's pl= ace=20 to determine what's good for KDE. 3) Qt-only applications shouldn't be doing requires(KDE4) 4) The decision is a compile-time one, not run-time. That is, non-KDE code= =20 that may get loaded into a KDE application is allowed to use QHttp. But KDE= =20 code loaded into a Qt-only application shouldn't be using QHttp. Examples are styles, like Oxygen. =2D-=20 =A0 Thiago Macieira =A0- =A0thiago (AT) macieira.info - thiago (AT) kde.org =A0 =A0 PGP/GPG: 0x6EF45358; fingerprint: =A0 =A0 E067 918B B660 DBD1 105C =A0966C 33F5 F005 6EF4 5358 --nextPart3083415.O6Qsqj6J79 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQBIt+j/M/XwBW70U1gRAjMNAKCwgGVczaCq+JjBygb1ZpjhS6RO+wCfefic F11CMPQ8Kp0I9AxoPREHbdM= =uI2i -----END PGP SIGNATURE----- --nextPart3083415.O6Qsqj6J79-- --===============1925853287== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel --===============1925853287==--