Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:epopov:branches:openSUSE:Factory
kf6-kirigami
2002-grid-unit.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 2002-grid-unit.patch of Package kf6-kirigami
diff --git a/src/platform/units.cpp b/src/platform/units.cpp index 0591e87a498c5bb24c510e8f37965fc46579f902..03966ce19e714477b446c9097a631cdf4d7d37af 100644 --- a/src/platform/units.cpp +++ b/src/platform/units.cpp @@ -34,7 +34,7 @@ public: explicit UnitsPrivate(Units *units) // Cache font so we don't have to go through QVariant and property every time : fontMetrics(QFontMetricsF(QGuiApplication::font())) - , gridUnit(18) + , gridUnit(std::ceil(fontMetrics.height())) , smallSpacing(4) , mediumSpacing(6) , largeSpacing(8) @@ -279,6 +279,8 @@ bool Units::eventFilter([[maybe_unused]] QObject *watched, QEvent *event) return false; } + d->gridUnit = std::ceil(d->fontMetrics.height()); + Q_EMIT gridUnitChanged(); Q_EMIT d->iconSizes->sizeForLabelsChanged(); } return false;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor