Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: qApp set fixed font not work #199

Merged
merged 1 commit into from
Nov 7, 2023
Merged

Conversation

kegechen
Copy link
Contributor

@kegechen kegechen commented Oct 20, 2023

onFontChanged will send ApplicationFontChange event to all windows. we stop this opration if qApp set a font

dtk菜单显示了就无效了原因如下:
sub menu ==> draw arrow icon ==> QIcon::fromtheme ==> QIconLoader ==> themeHint(SystemIconThemeName) ==> appTheme() ==> connect ==> fontNameChanged

子菜单需要绘制右箭头图标,用了 QIcon::fromtheme 。其实只要那个信号槽连上了就会强制更新。

Issue: linuxdeepin/dtk#124

deepin-ci-robot added a commit to linuxdeepin/qt6integration that referenced this pull request Nov 1, 2023
Synchronize source files from linuxdeepin/qt5integration.

Source-pull-request: linuxdeepin/qt5integration#199
platformthemeplugin/qdeepintheme.cpp Outdated Show resolved Hide resolved
onFontChanged will send ApplicationFontChange event to
all windows. we stop this opration if qApp set a font

sub menu ==> draw arrow icon ==> QIcon::fromtheme ==>
QIconLoader ==> themeHint(SystemIconThemeName) ==>
appTheme() ==> connect ==> fontNameChanged

Issue: linuxdeepin/dtk#124
deepin-ci-robot added a commit to linuxdeepin/qt6integration that referenced this pull request Nov 1, 2023
Synchronize source files from linuxdeepin/qt5integration.

Source-pull-request: linuxdeepin/qt5integration#199
@kegechen kegechen requested a review from zccrs November 3, 2023 01:07
@deepin-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: kegechen, zccrs

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kegechen kegechen merged commit fee5bb7 into linuxdeepin:master Nov 7, 2023
asterwyx pushed a commit to linuxdeepin/qt6integration that referenced this pull request Nov 10, 2023
Synchronize source files from linuxdeepin/qt5integration.

Source-pull-request: linuxdeepin/qt5integration#199
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants