[Qt5-feedback] The #include directives for Qt Essentials and Qt Add-on modules
marius.storm-olsen at nokia.com
marius.storm-olsen at nokia.com
Tue Jul 5 17:41:29 CEST 2011
On 07/03/2011 05:02 PM, Craig.Scott at csiro.au wrote:
> On 03/07/2011, at 6:00 PM, Andre Somers wrote:
>>> I think the "QtCoreAll" convention would be much clearer to devs
>>> what is being included. Having QtCore/QtCore just looks odd to
>>> me.
>> I like the "All", but why prepend the module name again then? This
>> looks quite clear to me:
>>
>> QtGui/All
>> QtCore/All
>> QtAddons/MyAddon/All
>
> You need to keep the module name to support those people who want
> behaviour like it is now, ie omit the directory part and instead add
> the directory to the include search path. They would end up with
> something like this:
>
> #include "QtCoreAll"
> #include "QtGuiAll"
> #include "MyAddon"
(The above includes are incorrect, they should use <>, not "".)
Neither approaches are source-compatible with the current
#include <QtGui/QtGui>
though. So, either we continue with the current approach, or we have to
support both.
--
..marius
More information about the Qt5-feedback
mailing list