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:
parent
84b6e6a245
commit
781ba8b4c7
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user