summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/profileoptionspage.cpp
diff options
context:
space:
mode:
authorhjk <qthjk@ovi.com>2012-07-17 13:59:42 +0200
committerDaniel Teske <daniel.teske@nokia.com>2012-07-17 15:14:55 +0200
commita997fbfba943858b9c3a2011b21fda851889869d (patch)
tree866eb50d933ef55c840ae60dc13b13050cf9e6a5 /src/plugins/projectexplorer/profileoptionspage.cpp
parentd8b714b99e800e36c3b9ad0e768bfee9f4af59d5 (diff)
downloadqt-creator-a997fbfba943858b9c3a2011b21fda851889869d.tar.gz
profiles: better distribution of spacing in the option page
Change-Id: I672c1a24ce7a3f6e3d7538550d0289ca8f4df865 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
Diffstat (limited to 'src/plugins/projectexplorer/profileoptionspage.cpp')
-rw-r--r--src/plugins/projectexplorer/profileoptionspage.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/profileoptionspage.cpp b/src/plugins/projectexplorer/profileoptionspage.cpp
index 1aacee5785..8183e5c722 100644
--- a/src/plugins/projectexplorer/profileoptionspage.cpp
+++ b/src/plugins/projectexplorer/profileoptionspage.cpp
@@ -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);