forked from qt-creator/qt-creator
Remove extra setMargin(..) Some lines after we can see a
setContentsMargins Change-Id: I376129566c7df466a3413f001b42c670ee7c7022 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -158,7 +158,6 @@ void DragWidget::enterEvent(QEvent *)
|
||||
ContextPaneWidget::ContextPaneWidget(QWidget *parent) : DragWidget(parent), m_currentWidget(0)
|
||||
{
|
||||
QGridLayout *layout = new QGridLayout(this);
|
||||
layout->setMargin(0);
|
||||
layout->setContentsMargins(1, 1, 1, 1);
|
||||
layout->setSpacing(0);
|
||||
m_toolButton = new QToolButton(this);
|
||||
|
@@ -884,7 +884,6 @@ PreviewDialog::PreviewDialog(QWidget *parent) : DragWidget(parent)
|
||||
QVBoxLayout *layout = new QVBoxLayout(this);
|
||||
QHBoxLayout *horizontalLayout = new QHBoxLayout();
|
||||
QHBoxLayout *horizontalLayout2 = new QHBoxLayout();
|
||||
layout->setMargin(0);
|
||||
layout->setContentsMargins(2, 2, 2, 16);
|
||||
layout->setSpacing(4);
|
||||
QToolButton *toolButton = new QToolButton(this);
|
||||
|
@@ -182,7 +182,6 @@ public:
|
||||
m_maximumActiveSize = QSize(maxWidth, activeHeight);
|
||||
|
||||
auto layout = new QHBoxLayout(this);
|
||||
layout->setMargin(0);
|
||||
layout->setSpacing(0);
|
||||
layout->setContentsMargins(4, 0, 0, 0);
|
||||
layout->addWidget(m_titleLabel);
|
||||
|
@@ -368,7 +368,6 @@ public:
|
||||
|
||||
auto l = new QHBoxLayout;
|
||||
auto w = new QWidget;
|
||||
l->setMargin(0);
|
||||
l->setContentsMargins(0, 0, 5, 0);
|
||||
l->addStretch(1);
|
||||
l->addWidget(m_addressEdit);
|
||||
|
@@ -637,7 +637,6 @@ ClangEditorDocumentProcessor::creatorForHeaderErrorDiagnosticWidget(
|
||||
|
||||
return [firstHeaderErrorDiagnostic]() {
|
||||
auto vbox = new QVBoxLayout;
|
||||
vbox->setMargin(0);
|
||||
vbox->setContentsMargins(10, 0, 0, 2);
|
||||
vbox->setSpacing(2);
|
||||
|
||||
|
Reference in New Issue
Block a user