Simplifying QtGui includes?

Stephen Kelly steveire at gmail.com
Wed Feb 1 17:02:17 UTC 2012


Hi,

One of the big changes in Qt5 is the split of parts of QtGui into QtWidgets.

That means for example that includes such as

#include <QtGui/QDialog>

will no longer work. Includes with the module will have to look like:

#include <QtWidgets/QDialog>

However, 

#include <QDialog>

works in both cases (Qt 4 and 5).

I would like to remove the 'QtGui/' en-masse from kdelibs. This will allow 
me and others to easy test porting to Qt5. As the QtModule directories are 
always part of our include_directories, I see no disadvantage.

Any objections?

Thanks,

Steve.




More information about the Kde-frameworks-devel mailing list