[Development] Prefix includes with module name

André Pönitz andre.poenitz at mathematik.tu-chemnitz.de
Thu Nov 7 00:16:49 CET 2013


On Wed, Nov 06, 2013 at 12:55:52PM +0100, Olivier Goffart wrote:
> Other than that, there is no real rules.

The rules for user code have always been "don't add the module name"

> The private header from other sub-directories need to specify the "private/".
> In QtCreator, one does not include the module name so it compiles both with 
> Qt4 and Qt5 despite the move to QtWidgets.

Just for the historical data point: Qt Creator sources used the
<module/class> style initially (for some valid, but comparatively minor
reasons), and then it turned out that sticking to the "user code" rules
paves the way the Qt 4 to 5 transition. Consequently the module part was
removed in the sources, and that was the "big" part of the transition.

But I don't think this applies here, and I would see a "recognized" addon
rather close to the Qt "Core" rules, i.e. "normally" would expect the
module in the include.

Andre'



More information about the Development mailing list