update the size hint on setting icon size and word wrap

Use updateSizeHint() instead of markAreaDirty() in setWordWrap()
and setIconSize() to relayout the view automatically.
This commit is contained in:
Ignat Semenov 2012-03-14 22:23:00 +04:00
parent 6c151f6315
commit f838eb40df

View file

@ -69,7 +69,7 @@ void ListView::setIconSize(const QSize &size)
if (size != m_iconSize) {
m_iconSize = size;
m_rowHeight = -1;
markAreaDirty(visibleArea());
updateSizeHint();
}
}
@ -78,7 +78,7 @@ void ListView::setWordWrap(bool on)
if (m_wordWrap != on) {
m_wordWrap = on;
m_rowHeight = -1;
markAreaDirty(visibleArea());
updateSizeHint();
}
}