forked from qt-creator/qt-creator
Remove ineffective resize() calls
This removes apparently unnecessary resize() calls on QWidgets based forms which get anyways added to layouts and resized. Most of these size values looked "accidental", i.e. neither divisible by 2 nor by 5, in most cases a remnant from the ui inlining. Change-Id: I95da3b93f2915ef955b5235e5c2ecc94b51f813a Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -65,8 +65,6 @@ BehaviorSettingsWidget::BehaviorSettingsWidget(QWidget *parent)
|
||||
: QWidget(parent)
|
||||
, d(new BehaviorSettingsWidgetPrivate)
|
||||
{
|
||||
resize(801, 693);
|
||||
|
||||
d->tabPreferencesWidget = new SimpleCodeStylePreferencesWidget(this);
|
||||
d->tabPreferencesWidget->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); // FIXME: Desirable?
|
||||
|
||||
|
||||
@@ -33,8 +33,6 @@ CodeStyleSelectorWidget::CodeStyleSelectorWidget(ICodeStylePreferencesFactory *f
|
||||
, m_factory(factory)
|
||||
, m_project(project)
|
||||
{
|
||||
resize(536, 59);
|
||||
|
||||
m_delegateComboBox = new QComboBox(this);
|
||||
m_delegateComboBox->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
|
||||
|
||||
|
||||
@@ -121,7 +121,6 @@ ColorSchemeEdit::ColorSchemeEdit(QWidget *parent) :
|
||||
m_formatsModel(new FormatsModel(this))
|
||||
{
|
||||
setContentsMargins(0, layoutSpacing, 0, 0);
|
||||
resize(513, 416);
|
||||
|
||||
auto colorButton = [] () {
|
||||
auto tb = new Utils::QtColorButton;
|
||||
|
||||
@@ -66,8 +66,6 @@ private:
|
||||
CompletionSettingsPageWidget::CompletionSettingsPageWidget(CompletionSettingsPage *owner)
|
||||
: m_owner(owner)
|
||||
{
|
||||
resize(823, 756);
|
||||
|
||||
m_caseSensitivity = new QComboBox;
|
||||
m_caseSensitivity->addItem(Tr::tr("Full"));
|
||||
m_caseSensitivity->addItem(Tr::tr("None"));
|
||||
|
||||
@@ -44,8 +44,6 @@ public:
|
||||
DisplaySettingsWidget(DisplaySettingsPagePrivate *data)
|
||||
: m_data(data)
|
||||
{
|
||||
resize(452, 458);
|
||||
|
||||
enableTextWrapping = new QCheckBox(Tr::tr("Enable text &wrapping"));
|
||||
|
||||
enableTextWrappingHintLabel = new QLabel(Tr::tr("<i>Set <a href=\"font zoom\">font line spacing</a> "
|
||||
|
||||
@@ -107,8 +107,6 @@ public:
|
||||
{
|
||||
m_lastValue = m_value;
|
||||
|
||||
resize(639, 306);
|
||||
|
||||
m_antialias = new QCheckBox(Tr::tr("Antialias"));
|
||||
m_antialias->setChecked(m_value.antialias());
|
||||
|
||||
|
||||
@@ -65,7 +65,6 @@ public:
|
||||
HighlighterSettingsPageWidget(HighlighterSettingsPagePrivate *d) : d(d)
|
||||
{
|
||||
d->ensureInitialized();
|
||||
resize(521, 332);
|
||||
|
||||
auto definitionsInfolabel = new QLabel(this);
|
||||
definitionsInfolabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
|
||||
|
||||
@@ -50,7 +50,6 @@ QString continuationTooltip()
|
||||
TabSettingsWidget::TabSettingsWidget(QWidget *parent) :
|
||||
QGroupBox(parent)
|
||||
{
|
||||
resize(254, 189);
|
||||
setTitle(Tr::tr("Tabs And Indentation"));
|
||||
|
||||
m_codingStyleWarning = new QLabel(
|
||||
|
||||
Reference in New Issue
Block a user