Give project settings a maximum width.

To avoid neverending line edits, make it look more compact.
This commit is contained in:
con
2009-07-22 11:37:23 +02:00
parent 0f26d4e223
commit a9f81ab352
2 changed files with 13 additions and 5 deletions

View File

@@ -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()