Commit 4873685e authored by Emmanuel Pescosta's avatar Emmanuel Pescosta
Browse files

Use the icon size from KItemListStyleOption for the width and height of the

expansion area instead of KIconLoad::SizeSmall.

BUG: 325543
REVIEW: 113169
FIXED-IN: 4.12
parent cbb2d014
......@@ -802,11 +802,12 @@ void KStandardItemListWidget::updateExpansionArea()
const QHash<QByteArray, QVariant> values = data();
const int expandedParentsCount = values.value("expandedParentsCount", 0).toInt();
if (expandedParentsCount >= 0) {
const KItemListStyleOption& option = styleOption();
const qreal widgetHeight = size().height();
const qreal inc = (widgetHeight - KIconLoader::SizeSmall) / 2;
const qreal inc = (widgetHeight - option.iconSize) / 2;
const qreal x = expandedParentsCount * widgetHeight + inc;
const qreal y = inc;
m_expansionArea = QRectF(x, y, KIconLoader::SizeSmall, KIconLoader::SizeSmall);
m_expansionArea = QRectF(x, y, option.iconSize, option.iconSize);
return;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment