Merge remote-tracking branch 'origin/5.10' into dev
Change-Id: I644cd82b0d952b7d139e0228bf5017f147db77e7bb10
commit
79dfc08437
Binary file not shown.
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 34 KiB |
|
|
@ -3751,8 +3751,7 @@ void QGuiApplication::restoreOverrideCursor()
|
|||
} else {
|
||||
if (QPlatformCursor::capabilities().testFlag(QPlatformCursor::OverrideCursor))
|
||||
clearOverrideCursor(QGuiApplicationPrivate::screen_list);
|
||||
else
|
||||
applyWindowCursor(QGuiApplicationPrivate::window_list);
|
||||
applyWindowCursor(QGuiApplicationPrivate::window_list);
|
||||
}
|
||||
}
|
||||
#endif// QT_NO_CURSOR
|
||||
|
|
|
|||
|
|
@ -886,6 +886,8 @@ Q_GLOBAL_STATIC(QCocoaTabletDeviceDataHash, tabletDeviceDataHash)
|
|||
|
||||
- (bool)handleTabletEvent: (NSEvent *)theEvent
|
||||
{
|
||||
static bool ignoreButtonMapping = qEnvironmentVariableIsSet("QT_MAC_TABLET_IGNORE_BUTTON_MAPPING");
|
||||
|
||||
if (!m_platformWindow)
|
||||
return false;
|
||||
|
||||
|
|
@ -934,14 +936,15 @@ Q_GLOBAL_STATIC(QCocoaTabletDeviceDataHash, tabletDeviceDataHash)
|
|||
rotation -= 360.0;
|
||||
|
||||
Qt::KeyboardModifiers keyboardModifiers = [QNSView convertKeyModifiers:[theEvent modifierFlags]];
|
||||
Qt::MouseButtons buttons = ignoreButtonMapping ? static_cast<Qt::MouseButtons>(static_cast<uint>([theEvent buttonMask])) : m_buttons;
|
||||
|
||||
qCDebug(lcQpaTablet, "event on tablet %d with tool %d type %d unique ID %lld pos %6.1f, %6.1f root pos %6.1f, %6.1f buttons 0x%x pressure %4.2lf tilt %d, %d rotation %6.2lf",
|
||||
deviceId, deviceData.device, deviceData.pointerType, deviceData.uid,
|
||||
windowPoint.x(), windowPoint.y(), screenPoint.x(), screenPoint.y(),
|
||||
static_cast<uint>(m_buttons), pressure, xTilt, yTilt, rotation);
|
||||
static_cast<uint>(buttons), pressure, xTilt, yTilt, rotation);
|
||||
|
||||
QWindowSystemInterface::handleTabletEvent(m_platformWindow->window(), timestamp, windowPoint, screenPoint,
|
||||
deviceData.device, deviceData.pointerType, m_buttons, pressure, xTilt, yTilt,
|
||||
deviceData.device, deviceData.pointerType, buttons, pressure, xTilt, yTilt,
|
||||
tangentialPressure, rotation, z, deviceData.uid,
|
||||
keyboardModifiers);
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ QT += \
|
|||
qtConfig(accessibility): QT += accessibility_support-private
|
||||
qtConfig(vulkan): QT += vulkan_support-private
|
||||
|
||||
LIBS += -ldwmapi -ld2d1 -ld3d11 -ldwrite -lVersion -lgdi32
|
||||
LIBS += -ldwmapi -ld2d1 -ld3d11 -ldwrite -lversion -lgdi32
|
||||
|
||||
include(../windows/windows.pri)
|
||||
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ Q_LOGGING_CATEGORY(lcQpaTablet, "qt.qpa.input.tablet")
|
|||
|
||||
+ (void)load
|
||||
{
|
||||
#ifndef Q_OS_TVOS
|
||||
if (QOperatingSystemVersion::current() < QOperatingSystemVersion(QOperatingSystemVersion::IOS, 11)) {
|
||||
// iOS 11 handles this though [UIView safeAreaInsetsDidChange], but there's no signal for
|
||||
// the corresponding top and bottom layout guides that we use on earlier versions. Note
|
||||
|
|
@ -73,6 +74,7 @@ Q_LOGGING_CATEGORY(lcQpaTablet, "qt.qpa.input.tablet")
|
|||
}
|
||||
];
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
+ (Class)layerClass
|
||||
|
|
|
|||
|
|
@ -141,19 +141,17 @@ static QSet<QByteArray> keywords()
|
|||
#endif
|
||||
#ifdef Q_CC_MSVC
|
||||
<< "msvc"
|
||||
#ifdef _MSC_VER
|
||||
#if _MSC_VER == 1910
|
||||
<< "msvc-2017"
|
||||
#elif _MSC_VER == 1900
|
||||
<< "msvc-2015"
|
||||
#elif _MSC_VER == 1800
|
||||
<< "msvc-2013"
|
||||
#elif _MSC_VER == 1700
|
||||
<< "msvc-2012"
|
||||
#elif _MSC_VER == 1600
|
||||
# if _MSC_VER <= 1600
|
||||
<< "msvc-2010"
|
||||
#endif
|
||||
#endif
|
||||
# elif _MSC_VER <= 1700
|
||||
<< "msvc-2012"
|
||||
# elif _MSC_VER <= 1800
|
||||
<< "msvc-2013"
|
||||
# elif _MSC_VER <= 1900
|
||||
<< "msvc-2015"
|
||||
# else
|
||||
<< "msvc-2017"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef Q_PROCESSOR_X86
|
||||
|
|
@ -163,7 +161,7 @@ static QSet<QByteArray> keywords()
|
|||
<< "arm"
|
||||
#endif
|
||||
|
||||
#ifdef Q_AUTOTEST_EXPORT
|
||||
#ifdef QT_BUILD_INTERNAL
|
||||
<< "developer-build"
|
||||
#endif
|
||||
;
|
||||
|
|
|
|||
|
|
@ -3514,7 +3514,7 @@ int QTreeViewPrivate::itemAtCoordinate(int coordinate) const
|
|||
const int contentsCoordinate = coordinate + vbar->value();
|
||||
for (int viewItemIndex = 0; viewItemIndex < viewItems.count(); ++viewItemIndex) {
|
||||
viewItemCoordinate += itemHeight(viewItemIndex);
|
||||
if (viewItemCoordinate >= contentsCoordinate)
|
||||
if (viewItemCoordinate > contentsCoordinate)
|
||||
return (viewItemIndex >= itemCount ? -1 : viewItemIndex);
|
||||
}
|
||||
} else { // ScrollPerItem
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue