From 051cff82228a5343a35e5167b70a7b7a874a99bd Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Mon, 30 Jan 2023 17:27:44 +0100 Subject: [PATCH] QmlDesigner: Set contents margins of curve editor to 0, 0, 0, 0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I3f87f60ae07c3ae6619b345fb6e4ab356344d066 Reviewed-by: Henning Gründl Reviewed-by: Qt CI Bot --- src/plugins/qmldesigner/components/curveeditor/curveeditor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/qmldesigner/components/curveeditor/curveeditor.cpp b/src/plugins/qmldesigner/components/curveeditor/curveeditor.cpp index 1ca3e558a4c..94452fd3e8a 100644 --- a/src/plugins/qmldesigner/components/curveeditor/curveeditor.cpp +++ b/src/plugins/qmldesigner/components/curveeditor/curveeditor.cpp @@ -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." ); m_infoText = new QLabel(labelText); + setContentsMargins(0, 0, 0, 0); auto *splitter = new QSplitter; splitter->addWidget(m_tree); @@ -39,10 +40,12 @@ CurveEditor::CurveEditor(CurveEditorModel *model, QWidget *parent) QScrollArea* area = new QScrollArea; area->setWidget(splitter); area->setWidgetResizable(true); + area->setContentsMargins(0, 0, 0, 0); m_statusLine = new QLabel(); auto *box = new QVBoxLayout; + box->setContentsMargins(0, 0, 0, 0); box->addWidget(m_infoText); box->addWidget(m_toolbar); box->addWidget(area);