profiles: better distribution of spacing in the option page

Change-Id: I672c1a24ce7a3f6e3d7538550d0289ca8f4df865
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
hjk
2012-07-17 13:59:42 +02:00
committed by Daniel Teske
parent d8b714b99e
commit a997fbfba9

View File

@@ -66,11 +66,17 @@ ProfileOptionsPage::ProfileOptionsPage() :
setCategoryIcon(QLatin1String(Constants::PROJECTEXPLORER_SETTINGS_CATEGORY_ICON));
}
struct SmallTreeView : QTreeView
{
explicit SmallTreeView(QWidget *parent) : QTreeView(parent) {}
QSize sizeHint() const { return QSize(256, 150); }
};
QWidget *ProfileOptionsPage::createPage(QWidget *parent)
{
m_configWidget = new QWidget(parent);
m_profilesView = new QTreeView(m_configWidget);
m_profilesView = new SmallTreeView(m_configWidget);
m_profilesView->setUniformRowHeights(true);
m_profilesView->header()->setStretchLastSection(true);