forked from qt-creator/qt-creator
Layouts: Add/remove contentMargins where needed
Some cases were preexisting, some were introduced recently Change-Id: I0e7e7b74422c420fbf4563d7cbf384e53931c3a0 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -689,6 +689,7 @@ public:
|
||||
auto inner = new ShortcutSettingsWidget;
|
||||
auto vbox = new QVBoxLayout(this);
|
||||
vbox->addWidget(inner);
|
||||
vbox->setContentsMargins(0, 0, 0, 0);
|
||||
|
||||
setOnApply([inner] { inner->apply(); });
|
||||
}
|
||||
|
||||
@@ -130,6 +130,7 @@ public:
|
||||
|
||||
auto vbox = new QVBoxLayout(this);
|
||||
vbox->addWidget(m_optionWidget);
|
||||
vbox->setContentsMargins(0, 0, 0, 0);
|
||||
|
||||
m_optionWidget->load(m_page->m_tool.options());
|
||||
}
|
||||
|
||||
@@ -807,6 +807,7 @@ public:
|
||||
m_exCommands = new FakeVimExCommandsMappings;
|
||||
auto vbox = new QVBoxLayout(this);
|
||||
vbox->addWidget(m_exCommands);
|
||||
vbox->setContentsMargins(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
@@ -25,6 +25,7 @@ public:
|
||||
|
||||
auto vbox = new QVBoxLayout(this);
|
||||
vbox->addWidget(m_widget);
|
||||
vbox->setContentsMargins(0, 0, 0, 0);
|
||||
|
||||
connect(Core::HelpManager::Signals::instance(),
|
||||
&Core::HelpManager::Signals::documentationChanged,
|
||||
|
||||
@@ -36,7 +36,6 @@ public:
|
||||
|
||||
auto layout = new QVBoxLayout(this);
|
||||
layout->addWidget(editor);
|
||||
layout->setContentsMargins(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
@@ -119,10 +119,10 @@ CommonSettingsWidget::CommonSettingsWidget(CommonOptionsPage *page)
|
||||
Column {
|
||||
Row { s.lineWrap, s.lineWrapWidth, st },
|
||||
Form {
|
||||
s.submitMessageCheckScript,
|
||||
s.nickNameMailMap,
|
||||
s.nickNameFieldListFile,
|
||||
s.sshPasswordPrompt,
|
||||
s.submitMessageCheckScript, br,
|
||||
s.nickNameMailMap, br,
|
||||
s.nickNameFieldListFile, br,
|
||||
s.sshPasswordPrompt, br,
|
||||
{}, cacheResetButton
|
||||
}
|
||||
}.attachTo(this);
|
||||
|
||||
Reference in New Issue
Block a user