From 781ba8b4c7c3844318cc6c1afc1f99314a46d9c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Sat, 28 Dec 2013 01:06:07 +0100 Subject: [PATCH] Make theme.smallSpacing useful On normal dpi displays, this will give two pixels, but will scale up for higher DPI. --- src/declarativeimports/core/theme.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/declarativeimports/core/theme.cpp b/src/declarativeimports/core/theme.cpp index 8aade67f5..0033f0465 100644 --- a/src/declarativeimports/core/theme.cpp +++ b/src/declarativeimports/core/theme.cpp @@ -68,7 +68,7 @@ bool ThemeProxy::eventFilter(QObject *watched, QEvent *event) void ThemeProxy::updateSpacing() { const int _s = mSize().height(); - m_smallSpacing = (int)(_s / 10); + m_smallSpacing = qMax(2, (int)(_s / 8)); m_largeSpacing = _s; }