Disable Drag/Drop Ride on Windows QT 5

.. it crashes !

.. we need to wait for QT 5.3.1 when this bug is
   fixed: https://bugreports.qt-project.org/browse/QTBUG-37813
This commit is contained in:
Mark Liversedge
2014-06-23 09:32:08 +01:00
parent 1603d62769
commit beeedc4d64

View File

@@ -1212,10 +1212,14 @@ RideNavigator::showTreeContextMenuPopup(const QPoint &pos)
RideTreeView::RideTreeView()
{
#if (defined WIN32) && (QT_VERSION > 0x050000)
// don't allow ride drop on Windows with QT5
#else
setDragDropMode(QAbstractItemView::InternalMove);
setDragEnabled(true);
setDragDropOverwriteMode(false);
setDropIndicatorShown(true);
#endif
#ifdef Q_OS_MAC
setAttribute(Qt::WA_MacShowFocusRect, 0);
#endif