forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user