mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-20 00:41:23 +00:00
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:
parent
6c151f6315
commit
f838eb40df
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue