Core: Give label in PluginInstallWizard/CheckArchivePage more space

Replace the stretch in the layout with a less width-consuming cancel
button.

Change-Id: I4970c4b75a21bb9f11aa4e12552c9e842405fac1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Alessandro Portale
2024-07-31 14:20:36 +02:00
parent 2eb1472cac
commit be89878a46

View File

@@ -162,7 +162,9 @@ public:
m_label = new InfoLabel; m_label = new InfoLabel;
m_label->setElideMode(Qt::ElideNone); m_label->setElideMode(Qt::ElideNone);
m_label->setWordWrap(true); m_label->setWordWrap(true);
m_label->setAlignment(Qt::AlignTop);
m_cancelButton = new QPushButton(Tr::tr("Cancel")); m_cancelButton = new QPushButton(Tr::tr("Cancel"));
m_cancelButton->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
connect(m_cancelButton, &QPushButton::clicked, this, [this] { connect(m_cancelButton, &QPushButton::clicked, this, [this] {
m_taskTreeRunner.reset(); m_taskTreeRunner.reset();
m_cancelButton->setVisible(false); m_cancelButton->setVisible(false);
@@ -174,7 +176,7 @@ public:
using namespace Layouting; using namespace Layouting;
Column { Column {
Row { m_label, st, m_cancelButton }, Row { m_label, m_cancelButton },
m_output, m_output,
}.attachTo(this); }.attachTo(this);
} }