diff --git a/src/declarativeimports/core/units.cpp b/src/declarativeimports/core/units.cpp index 7bd37c69b..0f20b8eb2 100644 --- a/src/declarativeimports/core/units.cpp +++ b/src/declarativeimports/core/units.cpp @@ -167,7 +167,10 @@ int Units::gridUnit() const void Units::themeChanged() { - const int gridUnit = QFontMetrics(QGuiApplication::font()).boundingRect("M").height(); + int gridUnit = QFontMetrics(QGuiApplication::font()).boundingRect("M").height(); + if (gridUnit % 2 != 0) { + gridUnit++; + } if (gridUnit != m_gridUnit) { m_gridUnit = gridUnit; emit gridUnitChanged();