increase units.smallSpacing

1/8 is really ridiculously small, it ends up being 2px on almost all
systems, and using it between UI elements makes them look really
cramped. 1/4 works much better, and makes this property actually useful.
This commit is contained in:
Sebastian Kügler 2014-06-19 02:50:14 +02:00
parent 94430a6784
commit 453c40efee

View File

@ -192,7 +192,7 @@ void Units::updateSpacing()
{ {
const int _s = QFontMetrics(QGuiApplication::font()).boundingRect("M").size().height(); const int _s = QFontMetrics(QGuiApplication::font()).boundingRect("M").size().height();
if (_s != m_largeSpacing) { if (_s != m_largeSpacing) {
m_smallSpacing = qMax(2, (int)(_s / 8)); // 1/8 of msize.height, at least 2 m_smallSpacing = qMax(2, (int)(_s / 4)); // 1/4 of gridUnit, at least 2
m_largeSpacing = _s; // msize.height m_largeSpacing = _s; // msize.height
emit spacingChanged(); emit spacingChanged();
} }