[VDE] Fix Qt warnings in log (#6605)

* [VDE] Fix Qt warnings in log

* fix button size
This commit is contained in:
RickyRister 2026-02-18 23:32:56 -08:00 committed by GitHub
parent ef87b54b43
commit a7bb5254a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 4 deletions

View file

@ -12,7 +12,6 @@ PrintingDisabledInfoWidget::PrintingDisabledInfoWidget(QWidget *parent) : QWidge
{
auto layout = new QVBoxLayout(this);
layout->setObjectName("PrintingDisabledInfoWidgetFrame");
setLayout(layout);
QLabel *imageLabel = new QLabel(this);
imageLabel->setAlignment(Qt::AlignCenter);
@ -26,7 +25,7 @@ PrintingDisabledInfoWidget::PrintingDisabledInfoWidget(QWidget *parent) : QWidge
settingsButton = new QPushButton(this);
connect(settingsButton, &QPushButton::clicked, this, &PrintingDisabledInfoWidget::disableOverridePrintings);
auto buttonLayout = new QHBoxLayout(this);
auto buttonLayout = new QHBoxLayout();
buttonLayout->addStretch();
buttonLayout->addWidget(settingsButton);
buttonLayout->addStretch();

View file

@ -38,7 +38,7 @@ void SettingsButtonWidget::setButtonIcon(QPixmap iconMap)
void SettingsButtonWidget::setButtonText(const QString &buttonText)
{
// 🔓 unlock size constraints
button->setMinimumSize(QSize());
button->setMinimumSize(QSize(0, 0));
button->setMaximumSize(QSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX));
button->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);

View file

@ -19,7 +19,7 @@ VisualDeckEditorSampleHandWidget::VisualDeckEditorSampleHandWidget(QWidget *pare
layout->setSpacing(0);
setLayout(layout);
auto upperLayout = new QVBoxLayout(this);
auto upperLayout = new QVBoxLayout();
upperLayout->setContentsMargins(0, 0, 0, 0);
upperLayout->setSpacing(0);