mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
Merge pull request #4874
21f139b
qt: fix tablet crash. closes #4854. (Cory Fields)
This commit is contained in:
commit
6a8d15cc16
@ -7,7 +7,7 @@ $(package)_dependencies=openssl
|
|||||||
$(package)_linux_dependencies=freetype fontconfig dbus libxcb libX11 xproto libXext
|
$(package)_linux_dependencies=freetype fontconfig dbus libxcb libX11 xproto libXext
|
||||||
$(package)_build_subdir=qtbase
|
$(package)_build_subdir=qtbase
|
||||||
$(package)_qt_libs=corelib network widgets gui plugins testlib
|
$(package)_qt_libs=corelib network widgets gui plugins testlib
|
||||||
$(package)_patches=mac-qmake.conf fix-xcb-include-order.patch
|
$(package)_patches=mac-qmake.conf fix-xcb-include-order.patch qt5-tablet-osx.patch
|
||||||
|
|
||||||
define $(package)_set_vars
|
define $(package)_set_vars
|
||||||
$(package)_config_opts = -release -opensource -confirm-license
|
$(package)_config_opts = -release -opensource -confirm-license
|
||||||
@ -52,7 +52,8 @@ define $(package)_preprocess_cmds
|
|||||||
cp -f qtbase/mkspecs/macx-clang/Info.plist.app qtbase/mkspecs/macx-clang-linux/ &&\
|
cp -f qtbase/mkspecs/macx-clang/Info.plist.app qtbase/mkspecs/macx-clang-linux/ &&\
|
||||||
cp -f qtbase/mkspecs/macx-clang/qplatformdefs.h qtbase/mkspecs/macx-clang-linux/ &&\
|
cp -f qtbase/mkspecs/macx-clang/qplatformdefs.h qtbase/mkspecs/macx-clang-linux/ &&\
|
||||||
cp -f $($(package)_patch_dir)/mac-qmake.conf qtbase/mkspecs/macx-clang-linux/qmake.conf && \
|
cp -f $($(package)_patch_dir)/mac-qmake.conf qtbase/mkspecs/macx-clang-linux/qmake.conf && \
|
||||||
patch -p1 < $($(package)_patch_dir)/fix-xcb-include-order.patch
|
patch -p1 < $($(package)_patch_dir)/fix-xcb-include-order.patch && \
|
||||||
|
patch -p1 < $($(package)_patch_dir)/qt5-tablet-osx.patch
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_config_cmds
|
define $(package)_config_cmds
|
||||||
|
20
depends/patches/qt/qt5-tablet-osx.patch
Normal file
20
depends/patches/qt/qt5-tablet-osx.patch
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
--- old/qtbase/src/widgets/kernel/qwidgetwindow.cpp 2014-09-05 20:45:18.717570370 -0400
|
||||||
|
+++ new/qtbase/src/widgets/kernel/qwidgetwindow.cpp 2014-09-05 20:52:38.653576561 -0400
|
||||||
|
@@ -57,7 +57,7 @@
|
||||||
|
Q_WIDGETS_EXPORT extern bool qt_tab_all_widgets();
|
||||||
|
|
||||||
|
QWidget *qt_button_down = 0; // widget got last button-down
|
||||||
|
-static QWidget *qt_tablet_target = 0;
|
||||||
|
+static QPointer<QWidget> qt_tablet_target = 0;
|
||||||
|
|
||||||
|
// popup control
|
||||||
|
QWidget *qt_popup_down = 0; // popup that contains the pressed widget
|
||||||
|
@@ -96,8 +96,6 @@
|
||||||
|
|
||||||
|
QWidgetWindow::~QWidgetWindow()
|
||||||
|
{
|
||||||
|
- if (m_widget == qt_tablet_target)
|
||||||
|
- qt_tablet_target = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifndef QT_NO_ACCESSIBILITY
|
Loading…
Reference in New Issue
Block a user