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:
Alessandro Portale
2023-05-05 12:33:31 +02:00
parent 2196e08295
commit 9c31267e58
31 changed files with 0 additions and 53 deletions

View File

@@ -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?

View File

@@ -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);

View File

@@ -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;

View File

@@ -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"));

View File

@@ -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> "

View File

@@ -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());

View File

@@ -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);

View File

@@ -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(