Merge remote-tracking branch 'origin/5.12.0' into 5.12
Change-Id: I54b4c14bed5150d3034ac87907a09254fd78face
This commit is contained in:
commit
aec026fe1e
@ -231,7 +231,7 @@ for(ever) {
|
|||||||
!isEmpty(MODULE_MODULE) {
|
!isEmpty(MODULE_MODULE) {
|
||||||
contains(MODULE_CONFIG, lib_bundle) {
|
contains(MODULE_CONFIG, lib_bundle) {
|
||||||
framework = $$MODULE_MODULE
|
framework = $$MODULE_MODULE
|
||||||
qtConfig(debug_and_release):!macx-xcode {
|
qtConfig(debug_and_release):qt_link_suffixed_framework:!macx-xcode {
|
||||||
platform_target_suffix = $$qtPlatformTargetSuffix()
|
platform_target_suffix = $$qtPlatformTargetSuffix()
|
||||||
!isEmpty(platform_target_suffix): \
|
!isEmpty(platform_target_suffix): \
|
||||||
# The -framework linker argument supports a name[,suffix] version,
|
# The -framework linker argument supports a name[,suffix] version,
|
||||||
|
@ -21,6 +21,9 @@ testcase_lowdpi {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Make sure we explicitly link to the debug version of the Qt libraries if needed
|
||||||
|
macos: CONFIG += qt_link_suffixed_framework
|
||||||
|
|
||||||
benchmark: type = benchmark
|
benchmark: type = benchmark
|
||||||
else: type = check
|
else: type = check
|
||||||
|
|
||||||
|
@ -674,6 +674,13 @@ public class QtActivityDelegate
|
|||||||
Bundle extras = m_activity.getIntent().getExtras();
|
Bundle extras = m_activity.getIntent().getExtras();
|
||||||
if (extras != null) {
|
if (extras != null) {
|
||||||
try {
|
try {
|
||||||
|
// do NOT remove !!!!
|
||||||
|
final String dc = "--Added-by-androiddeployqt--/debugger.command";
|
||||||
|
new BufferedReader(new InputStreamReader(m_activity.getAssets().open(dc))).readLine();
|
||||||
|
// do NOT remove !!!!
|
||||||
|
// The previous lines are needed to check if the debug mode is enabled.
|
||||||
|
// We are not allowed to use extraenvvars or extraappparams in a non debuggable environment.
|
||||||
|
|
||||||
if (extras.containsKey("extraenvvars")) {
|
if (extras.containsKey("extraenvvars")) {
|
||||||
try {
|
try {
|
||||||
m_environmentVariables += "\t" + new String(Base64.decode(extras.getString("extraenvvars"), Base64.DEFAULT), "UTF-8");
|
m_environmentVariables += "\t" + new String(Base64.decode(extras.getString("extraenvvars"), Base64.DEFAULT), "UTF-8");
|
||||||
|
@ -564,6 +564,7 @@ bool QWindowsPointerHandler::translateTouchEvent(QWindow *window, HWND hwnd,
|
|||||||
QList<QWindowSystemInterface::TouchPoint> touchPoints;
|
QList<QWindowSystemInterface::TouchPoint> touchPoints;
|
||||||
|
|
||||||
bool primaryPointer = false;
|
bool primaryPointer = false;
|
||||||
|
bool pressRelease = false;
|
||||||
|
|
||||||
if (QWindowsContext::verbose > 1)
|
if (QWindowsContext::verbose > 1)
|
||||||
qCDebug(lcQpaEvents).noquote().nospace() << showbase
|
qCDebug(lcQpaEvents).noquote().nospace() << showbase
|
||||||
@ -600,9 +601,11 @@ bool QWindowsPointerHandler::translateTouchEvent(QWindow *window, HWND hwnd,
|
|||||||
if (touchInfo[i].pointerInfo.pointerFlags & POINTER_FLAG_DOWN) {
|
if (touchInfo[i].pointerInfo.pointerFlags & POINTER_FLAG_DOWN) {
|
||||||
touchPoint.state = Qt::TouchPointPressed;
|
touchPoint.state = Qt::TouchPointPressed;
|
||||||
m_lastTouchPositions.insert(touchPoint.id, touchPoint.normalPosition);
|
m_lastTouchPositions.insert(touchPoint.id, touchPoint.normalPosition);
|
||||||
|
pressRelease = true;
|
||||||
} else if (touchInfo[i].pointerInfo.pointerFlags & POINTER_FLAG_UP) {
|
} else if (touchInfo[i].pointerInfo.pointerFlags & POINTER_FLAG_UP) {
|
||||||
touchPoint.state = Qt::TouchPointReleased;
|
touchPoint.state = Qt::TouchPointReleased;
|
||||||
m_lastTouchPositions.remove(touchPoint.id);
|
m_lastTouchPositions.remove(touchPoint.id);
|
||||||
|
pressRelease = true;
|
||||||
} else {
|
} else {
|
||||||
touchPoint.state = stationaryTouchPoint ? Qt::TouchPointStationary : Qt::TouchPointMoved;
|
touchPoint.state = stationaryTouchPoint ? Qt::TouchPointStationary : Qt::TouchPointMoved;
|
||||||
m_lastTouchPositions.insert(touchPoint.id, touchPoint.normalPosition);
|
m_lastTouchPositions.insert(touchPoint.id, touchPoint.normalPosition);
|
||||||
@ -615,7 +618,7 @@ bool QWindowsPointerHandler::translateTouchEvent(QWindow *window, HWND hwnd,
|
|||||||
// Avoid getting repeated messages for this frame if there are multiple pointerIds
|
// Avoid getting repeated messages for this frame if there are multiple pointerIds
|
||||||
QWindowsContext::user32dll.skipPointerFrameMessages(touchInfo[i].pointerInfo.pointerId);
|
QWindowsContext::user32dll.skipPointerFrameMessages(touchInfo[i].pointerInfo.pointerId);
|
||||||
}
|
}
|
||||||
if (primaryPointer) {
|
if (primaryPointer && !pressRelease) {
|
||||||
// Postpone event delivery to avoid hanging inside DoDragDrop().
|
// Postpone event delivery to avoid hanging inside DoDragDrop().
|
||||||
// Only the primary pointer will generate mouse messages.
|
// Only the primary pointer will generate mouse messages.
|
||||||
enqueueTouchEvent(window, touchPoints, QWindowsKeyMapper::queryKeyboardModifiers());
|
enqueueTouchEvent(window, touchPoints, QWindowsKeyMapper::queryKeyboardModifiers());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user