Qt5: Compile when Qt Designer library not found
Qt5: Remove QT_{BEGIN,END}_HEADER macro usage

See:
http://lists.qt-project.org/pipermail/development/2013-January/009284.html
Qt5: Fix warnings

The signature of QItemEditorFactory::createEditor(...) now wants an int
instead of a QVariant::Type argument