Utils::TreeWidgetColumStretcher: Generalize to support all QHeaderViews

I need this for a QTableView.

Change-Id: I07f4c6561abc2c62ce19a21a2233c65210329ef6
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Daniel Teske
2013-03-20 15:45:38 +01:00
parent d8ab5465cc
commit a183bb8ea1
7 changed files with 20 additions and 22 deletions

View File

@@ -37,7 +37,7 @@
#include "id.h"
#include <utils/hostosinfo.h>
#include <utils/treewidgetcolumnstretcher.h>
#include <utils/headerviewstretcher.h>
#include <QKeyEvent>
#include <QShortcut>
@@ -90,7 +90,7 @@ QWidget *CommandMappings::createPage(QWidget *parent)
connect(m_page->targetEdit, SIGNAL(textChanged(QString)),
this, SLOT(targetIdentifierChanged()));
new Utils::TreeWidgetColumnStretcher(m_page->commandList, 1);
new Utils::HeaderViewStretcher(m_page->commandList->header(), 1);
commandChanged(0);