From be89878a46d844a3919ec4da30235114e2429d68 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Wed, 31 Jul 2024 14:20:36 +0200 Subject: [PATCH] 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 --- src/plugins/coreplugin/plugininstallwizard.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/coreplugin/plugininstallwizard.cpp b/src/plugins/coreplugin/plugininstallwizard.cpp index 125b7e4513e..dc3d6c3fa9b 100644 --- a/src/plugins/coreplugin/plugininstallwizard.cpp +++ b/src/plugins/coreplugin/plugininstallwizard.cpp @@ -162,7 +162,9 @@ public: m_label = new InfoLabel; m_label->setElideMode(Qt::ElideNone); m_label->setWordWrap(true); + m_label->setAlignment(Qt::AlignTop); m_cancelButton = new QPushButton(Tr::tr("Cancel")); + m_cancelButton->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred); connect(m_cancelButton, &QPushButton::clicked, this, [this] { m_taskTreeRunner.reset(); m_cancelButton->setVisible(false); @@ -174,7 +176,7 @@ public: using namespace Layouting; Column { - Row { m_label, st, m_cancelButton }, + Row { m_label, m_cancelButton }, m_output, }.attachTo(this); }