QHeaderView - remove stupid if
Not only is this extra if unnecesary - it is confusing. oldSize is different from size. (otherwise we would have returned less than 10 lines above) Change-Id: Ie911414f679df2be7b5c8bc2670225d46e986b32 Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
This commit is contained in:
parent
81a825ea9b
commit
f405a57fa1
@ -884,8 +884,7 @@ void QHeaderView::resizeSection(int logical, int size)
|
||||
if (stretchLastSection() && visual == d->lastVisibleVisualIndex())
|
||||
d->lastSectionSize = size;
|
||||
|
||||
if (size != oldSize)
|
||||
d->createSectionSpan(visual, visual, size, d->headerSectionResizeMode(visual));
|
||||
d->createSectionSpan(visual, visual, size, d->headerSectionResizeMode(visual));
|
||||
|
||||
if (!updatesEnabled()) {
|
||||
emit sectionResized(logical, oldSize, size);
|
||||
|
Loading…
Reference in New Issue
Block a user