mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 09:50:12 +00:00
Revert "Improve padding in the Places View"
This reverts commit e9a39700fc
.
This commit is contained in:
parent
7a5d4033f4
commit
443968a6a3
|
@ -2552,7 +2552,7 @@ void KItemListView::updateGroupHeaderHeight()
|
||||||
groupHeaderHeight += 2 * m_styleOption.horizontalMargin;
|
groupHeaderHeight += 2 * m_styleOption.horizontalMargin;
|
||||||
groupHeaderMargin = m_styleOption.horizontalMargin;
|
groupHeaderMargin = m_styleOption.horizontalMargin;
|
||||||
} else if (m_itemSize.isEmpty()){
|
} else if (m_itemSize.isEmpty()){
|
||||||
groupHeaderHeight += 2 * m_styleOption.padding;
|
groupHeaderHeight += 4 * m_styleOption.padding;
|
||||||
groupHeaderMargin = m_styleOption.iconSize / 2;
|
groupHeaderMargin = m_styleOption.iconSize / 2;
|
||||||
} else {
|
} else {
|
||||||
groupHeaderHeight += 2 * m_styleOption.padding + m_styleOption.verticalMargin;
|
groupHeaderHeight += 2 * m_styleOption.padding + m_styleOption.verticalMargin;
|
||||||
|
|
|
@ -26,7 +26,6 @@ void PlacesView::setIconSize(int size)
|
||||||
|
|
||||||
KItemListStyleOption option = styleOption();
|
KItemListStyleOption option = styleOption();
|
||||||
option.iconSize = size;
|
option.iconSize = size;
|
||||||
option.padding = 4;
|
|
||||||
setStyleOption(option);
|
setStyleOption(option);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue