Merge "Merge remote-tracking branch 'origin/stable' into dev" into refs/staging/dev
This commit is contained in:
commit
af9910e450
@ -1,4 +1,4 @@
|
|||||||
SOURCES = mtdev.c
|
SOURCES = mtdev.cpp
|
||||||
|
|
||||||
CONFIG += link_pkgconfig
|
CONFIG += link_pkgconfig
|
||||||
PKGCONFIG_PRIVATE += mtdev
|
PKGCONFIG_PRIVATE += mtdev
|
||||||
|
2
configure
vendored
2
configure
vendored
@ -6738,6 +6738,7 @@ report_support_plugin " PNG .................." "$CFG_PNG" "$CFG_LIBPNG" QtGu
|
|||||||
report_support " Glib ..................." "$CFG_GLIB"
|
report_support " Glib ..................." "$CFG_GLIB"
|
||||||
report_support " GTK theme .............." "$CFG_QGTKSTYLE"
|
report_support " GTK theme .............." "$CFG_QGTKSTYLE"
|
||||||
report_support " Large File ............." "$CFG_LARGEFILE"
|
report_support " Large File ............." "$CFG_LARGEFILE"
|
||||||
|
report_support " mtdev .................." "$CFG_MTDEV" yes "system library"
|
||||||
report_support " Networking:"
|
report_support " Networking:"
|
||||||
[ "$XPLATFORM_MAC" = "yes" ] && \
|
[ "$XPLATFORM_MAC" = "yes" ] && \
|
||||||
report_support " CoreWlan ............." "$CFG_COREWLAN"
|
report_support " CoreWlan ............." "$CFG_COREWLAN"
|
||||||
@ -6795,7 +6796,6 @@ report_support " TDS .................." "$CFG_SQL_tds" plugin "plugin" yes "
|
|||||||
report_support " udev ..................." "$CFG_LIBUDEV"
|
report_support " udev ..................." "$CFG_LIBUDEV"
|
||||||
report_support " xkbcommon .............." "$CFG_XKBCOMMON" system "system library" qt "bundled copy"
|
report_support " xkbcommon .............." "$CFG_XKBCOMMON" system "system library" qt "bundled copy"
|
||||||
report_support " zlib ..................." "$CFG_ZLIB" system "system library" yes "bundled copy"
|
report_support " zlib ..................." "$CFG_ZLIB" system "system library" yes "bundled copy"
|
||||||
report_support " mtdev .................." "$CFG_MTDEV" yes "system library"
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
@ -837,7 +837,6 @@ Q_CORE_EXPORT void qFreeAligned(void *ptr);
|
|||||||
# pragma warning(disable: 4097) /* typedef-name 'identifier1' used as synonym for class-name 'identifier2' */
|
# pragma warning(disable: 4097) /* typedef-name 'identifier1' used as synonym for class-name 'identifier2' */
|
||||||
# pragma warning(disable: 4706) /* assignment within conditional expression */
|
# pragma warning(disable: 4706) /* assignment within conditional expression */
|
||||||
# pragma warning(disable: 4786) /* truncating debug info after 255 characters */
|
# pragma warning(disable: 4786) /* truncating debug info after 255 characters */
|
||||||
# pragma warning(disable: 4660) /* template-class specialization 'identifier' is already instantiated */
|
|
||||||
# pragma warning(disable: 4355) /* 'this' : used in base member initializer list */
|
# pragma warning(disable: 4355) /* 'this' : used in base member initializer list */
|
||||||
# pragma warning(disable: 4231) /* nonstandard extension used : 'extern' before template explicit instantiation */
|
# pragma warning(disable: 4231) /* nonstandard extension used : 'extern' before template explicit instantiation */
|
||||||
# pragma warning(disable: 4710) /* function not inlined */
|
# pragma warning(disable: 4710) /* function not inlined */
|
||||||
|
@ -496,6 +496,9 @@ bool QNativeSocketEnginePrivate::setOption(QNativeSocketEngine::SocketOption opt
|
|||||||
n = SO_RCVBUF;
|
n = SO_RCVBUF;
|
||||||
break;
|
break;
|
||||||
case QNativeSocketEngine::SendBufferSocketOption:
|
case QNativeSocketEngine::SendBufferSocketOption:
|
||||||
|
// see QTBUG-30478 SO_SNDBUF should not be used on Vista or later
|
||||||
|
if (QSysInfo::windowsVersion() >= QSysInfo::WV_VISTA)
|
||||||
|
return false;
|
||||||
n = SO_SNDBUF;
|
n = SO_SNDBUF;
|
||||||
break;
|
break;
|
||||||
case QNativeSocketEngine::BroadcastSocketOption:
|
case QNativeSocketEngine::BroadcastSocketOption:
|
||||||
|
@ -8,7 +8,7 @@ contains(QT_CONFIG, libudev) {
|
|||||||
LIBS_PRIVATE += $$QMAKE_LIBS_LIBUDEV
|
LIBS_PRIVATE += $$QMAKE_LIBS_LIBUDEV
|
||||||
}
|
}
|
||||||
|
|
||||||
contains(CONFIG, mtdev) {
|
contains(QT_CONFIG, mtdev) {
|
||||||
CONFIG += link_pkgconfig
|
CONFIG += link_pkgconfig
|
||||||
PKGCONFIG_PRIVATE += mtdev
|
PKGCONFIG_PRIVATE += mtdev
|
||||||
}
|
}
|
||||||
|
@ -432,6 +432,22 @@ void QXcbConnection::xi2HandleEvent(xcb_ge_event_t *event)
|
|||||||
qDebug() << " touchpoint " << touchPoint.id << " state " << touchPoint.state << " pos norm " << touchPoint.normalPosition <<
|
qDebug() << " touchpoint " << touchPoint.id << " state " << touchPoint.state << " pos norm " << touchPoint.normalPosition <<
|
||||||
" area " << touchPoint.area << " pressure " << touchPoint.pressure;
|
" area " << touchPoint.area << " pressure " << touchPoint.pressure;
|
||||||
QWindowSystemInterface::handleTouchEvent(platformWindow->window(), xiEvent->time, dev->qtTouchDevice, m_touchPoints.values());
|
QWindowSystemInterface::handleTouchEvent(platformWindow->window(), xiEvent->time, dev->qtTouchDevice, m_touchPoints.values());
|
||||||
|
if (has_touch_without_mouse_emulation) {
|
||||||
|
// We need to grab the touch event to prevent mouse emulation.
|
||||||
|
if (xiEvent->evtype == XI_TouchBegin) {
|
||||||
|
XIEventMask xieventmask;
|
||||||
|
unsigned int bitMask = 0;
|
||||||
|
unsigned char *xiBitMask = reinterpret_cast<unsigned char *>(&bitMask);
|
||||||
|
xieventmask.deviceid = xiEvent->deviceid;
|
||||||
|
xieventmask.mask = xiBitMask;
|
||||||
|
xieventmask.mask_len = sizeof(bitMask);
|
||||||
|
bitMask |= XI_TouchBeginMask;
|
||||||
|
bitMask |= XI_TouchUpdateMask;
|
||||||
|
bitMask |= XI_TouchEndMask;
|
||||||
|
XIGrabDevice(static_cast<Display *>(m_xlib_display), xiEvent->deviceid, platformWindow->winId(), xiEvent->time, None, GrabModeAsync, GrabModeAsync, true, &xieventmask);
|
||||||
|
} else if (xiEvent->evtype == XI_TouchEnd)
|
||||||
|
XIUngrabDevice(static_cast<Display *>(m_xlib_display), xiEvent->deviceid, xiEvent->time);
|
||||||
|
}
|
||||||
if (touchPoint.state == Qt::TouchPointReleased)
|
if (touchPoint.state == Qt::TouchPointReleased)
|
||||||
// If a touchpoint was released, we can forget it, because the ID won't be reused.
|
// If a touchpoint was released, we can forget it, because the ID won't be reused.
|
||||||
m_touchPoints.remove(touchPoint.id);
|
m_touchPoints.remove(touchPoint.id);
|
||||||
|
@ -483,6 +483,8 @@ xcb_cursor_t QXcbCursor::createNonStandardCursor(int cshape)
|
|||||||
xcb_pixmap_t pmm = qt_xcb_XPixmapFromBitmap(m_screen, image.createAlphaMask());
|
xcb_pixmap_t pmm = qt_xcb_XPixmapFromBitmap(m_screen, image.createAlphaMask());
|
||||||
cursor = xcb_generate_id(conn);
|
cursor = xcb_generate_id(conn);
|
||||||
xcb_create_cursor(conn, cursor, pm, pmm, 0, 0, 0, 0xFFFF, 0xFFFF, 0xFFFF, 8, 8);
|
xcb_create_cursor(conn, cursor, pm, pmm, 0, 0, 0, 0xFFFF, 0xFFFF, 0xFFFF, 8, 8);
|
||||||
|
xcb_free_pixmap(conn, pm);
|
||||||
|
xcb_free_pixmap(conn, pmm);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user