UITK breaks Widget fonts in mixed applications
Bug #1468402 reported by
Benjamin Zeller
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The UI Toolkit does change the default application font, which breaks some Texts in Widget based
applications. If a developer mixes Qt Widgets and the UITK some text fonts will be shown way too small
because widgets don't respect the grid units.
As seen in lp:1340061
Related branches
lp://staging/~ubuntu-sdk-team/ubuntu-ui-toolkit/dpr
- Zsombor Egri: Approve
- PS Jenkins bot: Approve (continuous-integration)
- Loïc Molinari (community): Approve
- Gerry Boland (community): Needs Information
-
Diff: 1044 lines (+747/-26)22 files modifieddebian/control (+5/-0)
src/Ubuntu/Components/plugin/ucqquickimageextension.cpp (+23/-3)
src/Ubuntu/Components/plugin/ucubuntushape.cpp (+17/-13)
src/Ubuntu/Components/plugin/ucunits.cpp (+46/-5)
src/Ubuntu/Components/plugin/ucunits.h (+1/-0)
tests/unit/add_makecheck.pri (+12/-1)
tests/unit/custom_qpa/README (+15/-0)
tests/unit/custom_qpa/custom.json (+3/-0)
tests/unit/custom_qpa/custom_qpa.pro (+15/-0)
tests/unit/custom_qpa/main.cpp (+54/-0)
tests/unit/custom_qpa/qcustombackingstore.cpp (+64/-0)
tests/unit/custom_qpa/qcustombackingstore.h (+55/-0)
tests/unit/custom_qpa/qcustomintegration.cpp (+112/-0)
tests/unit/custom_qpa/qcustomintegration.h (+74/-0)
tests/unit/runtest.sh (+2/-0)
tests/unit/tst_units/dpr1/dpr1.pro (+3/-0)
tests/unit/tst_units/dpr2/dpr2.pro (+3/-0)
tests/unit/tst_units/dpr2/tst_units_dpr2.cpp (+143/-0)
tests/unit/tst_units/dpr3/dpr3.pro (+3/-0)
tests/unit/tst_units/dpr3/tst_units_dpr3.cpp (+88/-0)
tests/unit/tst_units/tst_units.pro (+6/-3)
tests/unit/unit.pro (+3/-1)
Superseded
for merging
into
lp://staging/ubuntu-ui-toolkit
- Ubuntu SDK team: Pending requested
-
Diff: 245 lines (+61/-29)5 files modifiedmodules/Ubuntu/Components/plugin/ucqquickimageextension.cpp (+10/-3)
modules/Ubuntu/Components/plugin/ucubuntushape.cpp (+8/-10)
modules/Ubuntu/Components/plugin/ucunits.cpp (+37/-12)
modules/Ubuntu/Components/plugin/ucunits.h (+5/-3)
ubuntu-sdk.pro (+1/-1)
To post a comment you must log in.
src/Ubuntu/ Components/ plugin/ uctheme. cpp:363
defaultFont. setPixelSize( UCFontUtils: :instance( ).sizeToPixels( "medium" ));
Not sure I agree it's a bug as not doing this would break QML for HiDPI displays. Rather QtWidgets should be fixed.