cmake-gui: Fix Qt 5.0.0-5.0.3 workaround logic

Check for out-of-range on either end but not both at the same time.
Merge topic 'qt5-fixes' into next

9a5e4a9 cmake-gui: Fix Qt 5.0.0-5.0.3 workaround logic
cmake-gui: Use -fPIE if required by Qt.
cmake-gui: Workaround bug in Qt 5.0.0 to 5.0.3 QStandardItemModel

The commit in qtbase 9dfba89c (Add implementations of QAIM::sibling in
public APIs., 2012-09-26) added a buggy implementation of sibling(), and
the commit f136701b (Use the base implementation of
QAbstractItemModel::sibling in QSIM., 2013-02-21) resolves it.
Workaround the bug for Qt releases that have it.
Merge topic 'qt5-fixes' into next

404e1d6 cmake-gui: Workaround bug in Qt 5.0.0 to 5.0.3 QStandardItemModel
5144f6f cmake-gui: Use -fPIE if required by Qt.