forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/9.0'
Conflicts: src/libs/utils/pathchooser.cpp src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.cpp Change-Id: I7ae3f91618c4a4ccb088679caea72b2a81590960
This commit is contained in:
@@ -391,8 +391,10 @@ int ManhattanStyle::styleHint(StyleHint hint, const QStyleOption *option, const
|
||||
ret = 0;
|
||||
break;
|
||||
case QStyle::SH_ComboBox_AllowWheelScrolling:
|
||||
// Turn this off completely to prevent accidental current index change on a scroll view
|
||||
ret = false;
|
||||
// Turn this on only when simultaneously pressing Ctrl, to prevent accidental current
|
||||
// index change, e.g. on a scroll view
|
||||
ret = QGuiApplication::keyboardModifiers()
|
||||
== (HostOsInfo::isMacHost() ? Qt::MetaModifier : Qt::ControlModifier);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user