Commit 3716ebb1 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Fix UI: Stop it from overflowing



Do not overflow the UI when too many options are added to a profile.

Apply some fairy dust to make things look a bit better while at it.

Task-number: QTCREATORBUG-7572
Change-Id: I8d784c0ca88ead20f8eb313e188e715c41d97e16
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent b1888c76
......@@ -34,11 +34,14 @@
#include "profile.h"
#include <utils/detailswidget.h>
#include <QHBoxLayout>
#include <QFileDialog>
#include <QGridLayout>
#include <QLabel>
#include <QToolButton>
#include <QScrollArea>
#include <QSizePolicy>
#include <QStyle>
......@@ -54,14 +57,30 @@ ProfileManagerConfigWidget::ProfileManagerConfigWidget(Profile *p, QWidget *pare
m_layout->setMargin(0);
m_layout->setSpacing(6);
QVBoxLayout *top = new QVBoxLayout(this);
top->setMargin(0);
QScrollArea *scroll = new QScrollArea;
scroll->setFrameShape(QFrame::NoFrame);
scroll->setWidgetResizable(true);
scroll->setFocusPolicy(Qt::NoFocus);
top->addWidget(scroll);
Utils::DetailsWidget *details = new Utils::DetailsWidget;
details->setState(Utils::DetailsWidget::NoSummary);
scroll->setWidget(details);
QWidget *widget = new QWidget;
details->setWidget(widget);
QHBoxLayout *masterLayout = new QHBoxLayout(widget);
masterLayout->setSpacing(12);
QVBoxLayout *iconLayout = new QVBoxLayout;
iconLayout->addWidget(m_iconButton);
iconLayout->addStretch();
QHBoxLayout *masterLayout = new QHBoxLayout(this);
masterLayout->addLayout(iconLayout);
masterLayout->setMargin(0);
masterLayout->setSpacing(12);
masterLayout->addLayout(m_layout);
discard();
......
Supports Markdown
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