Commit a9f81ab3 authored by con's avatar con
Browse files

Give project settings a maximum width.

To avoid neverending line edits, make it look more compact.
parent 0f26d4e2
......@@ -62,13 +62,22 @@ bool debug = false;
PanelsWidget::PanelsWidget(QWidget *parent)
: QScrollArea(parent)
{
m_widget = new QWidget;
m_layout = new QVBoxLayout(m_widget);
QWidget *topwidget = new QWidget;
QHBoxLayout *topwidgetLayout = new QHBoxLayout;
topwidgetLayout->setMargin(0);
topwidgetLayout->setSpacing(0);
topwidget->setLayout(topwidgetLayout);
QWidget *verticalWidget = new QWidget;
verticalWidget->setMaximumWidth(800);
m_layout = new QVBoxLayout;
verticalWidget->setLayout(m_layout);
topwidgetLayout->addWidget(verticalWidget);
topwidgetLayout->addStretch(10);
setWidgetResizable(true);
setFrameStyle(QFrame::NoFrame);
setWidget(m_widget);
setWidget(topwidget);
}
PanelsWidget::~PanelsWidget()
......
......@@ -69,7 +69,6 @@ private:
QLabel *nameLabel;
QWidget *panelWidget;
};
QWidget *m_widget;
QVBoxLayout *m_layout;
QList<Panel> m_panels;
};
......
Markdown is supported
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