1 Star 0 Fork 18

xingwei-liu/qt5-qtbase

forked from src-anolis-os/qt5-qtbase 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
fix-combobox-cant-popup-on-mouse-release.patch 1.38 KB
一键复制 编辑 原始数据 按行查看 历史
xingwei-liu 提交于 2022-10-12 16:54 . feature: add patchs for DDE
Description: Fix combobox can't popup listview on the mouse button release
If the QStyleHints::setFocusOnTouchRelease is true
.
qtbase-opensource-src (5.11.3.5-1+deepin) unstable; urgency=low
.
* ['Autobuild release-candidate: ec09ce1048e94cf8dd2c7cd3723325975c1092b1']
Author: zccrs <zccrs@live.com>
---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:
Origin: <vendor|upstream|other>, <url of original patch>
Bug: https://bugreports.qt.io/browse/QTBUG-81095
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2020-01-06
--- qtbase-opensource-src-5.11.3.5.orig/src/widgets/widgets/qcombobox.cpp
+++ qtbase-opensource-src-5.11.3.5/src/widgets/widgets/qcombobox.cpp
@@ -3189,8 +3190,9 @@ void QComboBox::mouseReleaseEvent(QMouse
{
Q_D(QComboBox);
d->updateArrow(QStyle::State_None);
- if (QGuiApplication::styleHints()->setFocusOnTouchRelease() && hasFocus())
+ if (QGuiApplication::styleHints()->setFocusOnTouchRelease() && (hasFocus() || !(focusPolicy() & Qt::ClickFocus))) {
d->showPopupFromMouseEvent(e);
+ }
}
/*!
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xingwei-liu/qt5-qtbase.git
git@gitee.com:xingwei-liu/qt5-qtbase.git
xingwei-liu
qt5-qtbase
qt5-qtbase
a8

搜索帮助

0d507c66 1850385 C8b1a773 1850385