Commit c0cc6ce5 authored by Daniel Teske's avatar Daniel Teske
Browse files

HeaderViewStretcher: Fix bug in resize code



Change-Id: Ia62d4c64418e7d616b5dd90d0eda2a2ee985c2d8
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent a183bb8e
......@@ -68,7 +68,7 @@ bool HeaderViewStretcher::eventFilter(QObject *obj, QEvent *ev)
if (hv->resizeMode(m_columnToStretch) == QHeaderView::Interactive) {
QResizeEvent *re = static_cast<QResizeEvent*>(ev);
int diff = re->size().width() - re->oldSize().width() ;
hv->resizeSection(m_columnToStretch, qMax(32, hv->sectionSize(1) + diff));
hv->resizeSection(m_columnToStretch, qMax(32, hv->sectionSize(m_columnToStretch) + diff));
}
}
}
......
......@@ -37,7 +37,7 @@
#include "icore.h"
#include "id.h"
#include <utils/treewidgetcolumnstretcher.h>
#include <utils/headerviewstretcher.h>
#include <QKeyEvent>
#include <QShortcut>
......
Markdown is supported
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