3 modules=`ls $QTDIR/include`
5 files=`find * -name '*.h' -or -name '*.cpp' -or -name '*.C' -or -name '*.cc' -or -name '*.CC'`
9 for module in $modules; do
10 # once we change other things, change the line from == "QtWidgets" to != "Qt" to get everything fixed
11 if [ $module == "QtWidgets" ] || [ $module == "QtPrintSupport" ]; then
13 includes=`ls $QTDIR/include/$module`
14 for i in $includes; do
16 perl -pi -e "s,^#include +<.+/$i>,#include <$module/$i>," $files;
17 # perl -pi -e 's,^#include +".+/$i",#include "$module/$i",' $files;
22 perl -pi -e 's,<QtGui>,<QtWidgets>,' $files
23 perl -pi -e 's,<QtGui/QtGui>,<QtWidgets/QtWidgets>,' $files