Make theme.smallSpacing useful

On normal dpi displays, this will give two pixels, but will scale up for
higher DPI.
This commit is contained in:
Sebastian Kügler 2013-12-28 01:06:07 +01:00
parent 84b6e6a245
commit 781ba8b4c7

View File

@ -68,7 +68,7 @@ bool ThemeProxy::eventFilter(QObject *watched, QEvent *event)
void ThemeProxy::updateSpacing() void ThemeProxy::updateSpacing()
{ {
const int _s = mSize().height(); const int _s = mSize().height();
m_smallSpacing = (int)(_s / 10); m_smallSpacing = qMax(2, (int)(_s / 8));
m_largeSpacing = _s; m_largeSpacing = _s;
} }