Commit b4a2a20d authored by Tobias Hunger's avatar Tobias Hunger

Utils: Add a way to trigger the HeaderViewStretcher

Change-Id: I4fd3179015ba325d8e739357d393aff6ce23072f
Reviewed-by: default avatarEike Ziller <>
parent 29fadd61
......@@ -44,8 +44,13 @@ HeaderViewStretcher::HeaderViewStretcher(QHeaderView *headerView, int columnToSt
: QObject(headerView), m_columnToStretch(columnToStretch)
void HeaderViewStretcher::stretch()
QHideEvent fake;
HeaderViewStretcher::eventFilter(headerView, &fake);
HeaderViewStretcher::eventFilter(parent(), &fake);
bool HeaderViewStretcher::eventFilter(QObject *obj, QEvent *ev)
......@@ -41,7 +41,8 @@ class QTCREATOR_UTILS_EXPORT HeaderViewStretcher : public QObject
explicit HeaderViewStretcher(QHeaderView *headerView, int columnToStretch);
virtual bool eventFilter(QObject *obj, QEvent *ev);
void stretch();
bool eventFilter(QObject *obj, QEvent *ev) override;
} // namespace Utils
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