mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-02 03:23:56 -07:00
[VDE] Fix Qt warnings in log (#6605)
* [VDE] Fix Qt warnings in log * fix button size
This commit is contained in:
parent
ef87b54b43
commit
a7bb5254a3
3 changed files with 3 additions and 4 deletions
|
|
@ -12,7 +12,6 @@ PrintingDisabledInfoWidget::PrintingDisabledInfoWidget(QWidget *parent) : QWidge
|
||||||
{
|
{
|
||||||
auto layout = new QVBoxLayout(this);
|
auto layout = new QVBoxLayout(this);
|
||||||
layout->setObjectName("PrintingDisabledInfoWidgetFrame");
|
layout->setObjectName("PrintingDisabledInfoWidgetFrame");
|
||||||
setLayout(layout);
|
|
||||||
|
|
||||||
QLabel *imageLabel = new QLabel(this);
|
QLabel *imageLabel = new QLabel(this);
|
||||||
imageLabel->setAlignment(Qt::AlignCenter);
|
imageLabel->setAlignment(Qt::AlignCenter);
|
||||||
|
|
@ -26,7 +25,7 @@ PrintingDisabledInfoWidget::PrintingDisabledInfoWidget(QWidget *parent) : QWidge
|
||||||
settingsButton = new QPushButton(this);
|
settingsButton = new QPushButton(this);
|
||||||
connect(settingsButton, &QPushButton::clicked, this, &PrintingDisabledInfoWidget::disableOverridePrintings);
|
connect(settingsButton, &QPushButton::clicked, this, &PrintingDisabledInfoWidget::disableOverridePrintings);
|
||||||
|
|
||||||
auto buttonLayout = new QHBoxLayout(this);
|
auto buttonLayout = new QHBoxLayout();
|
||||||
buttonLayout->addStretch();
|
buttonLayout->addStretch();
|
||||||
buttonLayout->addWidget(settingsButton);
|
buttonLayout->addWidget(settingsButton);
|
||||||
buttonLayout->addStretch();
|
buttonLayout->addStretch();
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ void SettingsButtonWidget::setButtonIcon(QPixmap iconMap)
|
||||||
void SettingsButtonWidget::setButtonText(const QString &buttonText)
|
void SettingsButtonWidget::setButtonText(const QString &buttonText)
|
||||||
{
|
{
|
||||||
// 🔓 unlock size constraints
|
// 🔓 unlock size constraints
|
||||||
button->setMinimumSize(QSize());
|
button->setMinimumSize(QSize(0, 0));
|
||||||
button->setMaximumSize(QSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX));
|
button->setMaximumSize(QSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX));
|
||||||
|
|
||||||
button->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
|
button->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ VisualDeckEditorSampleHandWidget::VisualDeckEditorSampleHandWidget(QWidget *pare
|
||||||
layout->setSpacing(0);
|
layout->setSpacing(0);
|
||||||
setLayout(layout);
|
setLayout(layout);
|
||||||
|
|
||||||
auto upperLayout = new QVBoxLayout(this);
|
auto upperLayout = new QVBoxLayout();
|
||||||
upperLayout->setContentsMargins(0, 0, 0, 0);
|
upperLayout->setContentsMargins(0, 0, 0, 0);
|
||||||
upperLayout->setSpacing(0);
|
upperLayout->setSpacing(0);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue