forked from qt-creator/qt-creator
QmlDesigner: Set contents margins of curve editor to 0, 0, 0, 0
Change-Id: I3f87f60ae07c3ae6619b345fb6e4ab356344d066 Reviewed-by: Henning Gründl <henning.gruendl@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -30,6 +30,7 @@ CurveEditor::CurveEditor(CurveEditorModel *model, QWidget *parent)
|
|||||||
"To create an animation, add a timeline by clicking the + button in the \"Timeline\" view."
|
"To create an animation, add a timeline by clicking the + button in the \"Timeline\" view."
|
||||||
);
|
);
|
||||||
m_infoText = new QLabel(labelText);
|
m_infoText = new QLabel(labelText);
|
||||||
|
setContentsMargins(0, 0, 0, 0);
|
||||||
|
|
||||||
auto *splitter = new QSplitter;
|
auto *splitter = new QSplitter;
|
||||||
splitter->addWidget(m_tree);
|
splitter->addWidget(m_tree);
|
||||||
@@ -39,10 +40,12 @@ CurveEditor::CurveEditor(CurveEditorModel *model, QWidget *parent)
|
|||||||
QScrollArea* area = new QScrollArea;
|
QScrollArea* area = new QScrollArea;
|
||||||
area->setWidget(splitter);
|
area->setWidget(splitter);
|
||||||
area->setWidgetResizable(true);
|
area->setWidgetResizable(true);
|
||||||
|
area->setContentsMargins(0, 0, 0, 0);
|
||||||
|
|
||||||
m_statusLine = new QLabel();
|
m_statusLine = new QLabel();
|
||||||
|
|
||||||
auto *box = new QVBoxLayout;
|
auto *box = new QVBoxLayout;
|
||||||
|
box->setContentsMargins(0, 0, 0, 0);
|
||||||
box->addWidget(m_infoText);
|
box->addWidget(m_infoText);
|
||||||
box->addWidget(m_toolbar);
|
box->addWidget(m_toolbar);
|
||||||
box->addWidget(area);
|
box->addWidget(area);
|
||||||
|
|||||||
Reference in New Issue
Block a user