UpdateInfo: Fix size policy on "show details" list

Task-number: QTCREATORBUG-28642
Change-Id: Id3b69aaf1532e54101824e8baa65a929c1a47a72
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Henning Gruendl
2023-01-03 17:38:50 +01:00
committed by Henning Gründl
parent 7f748acc3e
commit afe7d48b6c

View File

@@ -221,9 +221,10 @@ static void showUpdateInfo(const QList<Update> &updates, const std::function<voi
auto label = new QLabel;
label->setText("<qt><p>" + UpdateInfoPlugin::tr("Available updates:") + "<ul><li>"
+ updateText + "</li></ul></p></qt>");
label->setContentsMargins(0, 0, 0, 8);
label->setContentsMargins(2, 2, 2, 2);
auto scrollArea = new QScrollArea;
scrollArea->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Maximum);
scrollArea->setWidget(label);
scrollArea->setFrameShape(QFrame::NoFrame);
scrollArea->viewport()->setAutoFillBackground(false);