[dev-qt/qtgui:5] More thorough handling of QCONFIG_DEFINE flags.

Should fix bug 489278.

Package-Manager: portage-2.2.7
Merge branch 'master' into docs