Initial changes to support Qt5

Added a new flag called PARAVIEW_QT_VERSION that can be set to either 4 or 5.
Depending on the value of this flag, the appropriate Qt version is looked for
and built against.

If PARAVIEW_QT_VERSION==5, the necessary Qt5 modules can be
imported by including the script "ParaViewQt5.cmake". This script also sets
important Qt variables used throughout the project.

Setting the officially supported version of Qt5 to 5.0.2. Although, paraview
compiles fine against Qt-5.0.0, there are known issues that prevent it from
being fully functional (https://bugreports.qt-project.org/browse/QTBUG-28872).
Setting the minimum Qt5 version to 5.0.0.

Change-Id: I152529ef3da9492a44094c1e08444398a022d047
Modified ParaView macros to use both Qt4 and Qt5

Depending on the PARAVIEW_QT_VERSION variable value, the appropriate Qt version
is used.

Change-Id: I296dbc87a4ad05426bdf65e16e4bafa7bcdb8074
Obsoleted methods from QHeaderView

Replaced all instances:
QHeaderView::setClickable --> QHeaderView::setSectionsClickable
QHeaderView::setResizeMode --> QHeaderView::setSectionResizeMode
QHeaderView::setMovable --> QHeaderView::setSectionsMovable

Change-Id: I537f7148abfccf4564d375475ec76b8485c31777
Qt5 obsoletes global typedef qInstallMsgHandler and QtMsgHandler

Using qInstallMessageHander and QtMessageHandler
QtMessageHandler has a different signature than QtMsgHandler providing
information about context. Incorporated that information in the vtkOutputWindow
message printout.

Change-Id: Icd94f6fc411e0761c0254a0e11784543b0cf0bd7
QAbstractItemModel::reset() and QAbstractItemModel::createIndex

QAbstractItemModel::reset -
The deprecated function emitted two signals, namely modelAboutToBeReset and
modelReset. Using beginResetModel and endResetModel to emit these signals
instead.

QAbstractItemModel::createIndex -
Ambiguity when compiling with gcc.
When the last parameter is either NULL or 0, GCC fails to resolve
which path to follow. Use the default value (void* ptr = 0) provided in the
function declaration.

Change-Id: I45760b1cc9d9afc183a2aed9100d7ab398f0ab65
Compile flags (-fPIE) for position independent code

Qt5 is built and packaged with the -reduce-relocations configure option as
default. This causes compilations to run with the -Bsymbolic-functions option,
which makes function pointer comparison ineffective, unless the -fPIE flag is
also supplied.

Change-Id: Ic1dead333d25b2ff17eda049b57d08db3a27f8b4
Qt5 obsoletes toAscii and fromAscii methods

Replaced all instances:
QString::toAscii --> QString::toLatin1
QString::fromAscii --> QString::fromLatin1
QChar::fromAscii --> QLatin1Char

Change-Id: I5107bbd7b5550ded121310314f0569246ff8bf2c
Multiple Qt5 related minor changes

1. QCursor constructor needs QPixmap instead of const char*
2. Qt::WFlags obsoleted. Replaced by Qt::WindowFlags
3. QPixmap::serialNumber() deprecated. Replaced by QPixmap::cacheKey()
4. QVariant(Qt::GlobalColor) is now private. Use QVariant(QColor(Qt::GlobalColor)) instead.
5. QMetaMethod::signature obsoleted. Replaced by QMetaMethod::methodSignature().
   To avoid runtime issues get the pointer to data using methodSignature().constData()
6. QDir::convertSeparators obsoleted. Replaced by
   toNativeSeparators/fromNativeSeparators
7. QRegion::unite deprecated. Replaced by QRegion::united
8. QCoreApplication::UnicodeUTF8 is deprecated.
9. Missing includes

Change-Id: I1a5b889b01178f030ed97a65bb7c5ff006949bef
Obsoleted constructor for QGraphicsItem

Removed the use of QGraphicsScene from the constructor argument.

Change-Id: Ib257adc90fbd8b810baa4d65dcbd78d5e66da9d1
QtGui library -> include QtGui/* files directly

Change-Id: Ia0d1e6510c014fb67986f330cd98c81f73aa17c3
QWindowsStyle and QPlastiqueStyle obsoleted

Replaced with the Fusion style and the new QStyleFactory::create() API.
Use style depending on Qt version used

Change-Id: I3bb01c883025122a9de40b98866de6a757def047
Use the new Qt5 plugin architecture

Q_EXPORT_PLUGIN2 deprecated. Replaced by Q_PLUGIN_METADATA
Find the Qt5 RCC executable to generate qrc_* files.

Change-Id: I407ac783071895e2f01d51d0ddd71635e54813f3
Updated QtTesting to use Qt5

QtTesting should use user selected Qt version

Change-Id: I55379c00655595e567ae393d42a25baa8635b916
Import Qt5Widgets module at the top level

This ensures all the required Qt5 variables can be found.
For example, just importing Qt5Core does not help find QT_UIC_EXECUTABLE using
the macro "get_target_property(QT_UIC_EXECUTABLE Qt5::uic LOCATION)".

Change-Id: I8756ce9468c5134693d256a9755f1217bc24ae29
Merge topic '14511-qt5-support' into next

7db74014 Import Qt5Widgets module at the top level
0fb21b1d Updated QtTesting to use Qt5
6fa66ba5 Use the new Qt5 plugin architecture
a59a868b QWindowsStyle and QPlastiqueStyle obsoleted
785695c0 QtGui library -> include QtGui/* files directly
20c9a634 Obsoleted constructor for QGraphicsItem
88cbb1f4 Multiple Qt5 related minor changes
dd2a9104 Qt5 obsoletes toAscii and fromAscii methods
44530d07 Compile flags (-fPIE) for position independent code
7aa49510 QAbstractItemModel::reset() and QAbstractItemModel::createIndex
eb421899 Qt5 obsoletes global typedef qInstallMsgHandler and QtMsgHandler
f3b59483 Obsoleted methods from QHeaderView
9ed056a1 Modified ParaView macros to use both Qt4 and Qt5
eed7ccd3 Initial changes to support Qt5