forked from qt-creator/qt-creator
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:
committed by
Henning Gründl
parent
7f748acc3e
commit
afe7d48b6c
@@ -221,9 +221,10 @@ static void showUpdateInfo(const QList<Update> &updates, const std::function<voi
|
|||||||
auto label = new QLabel;
|
auto label = new QLabel;
|
||||||
label->setText("<qt><p>" + UpdateInfoPlugin::tr("Available updates:") + "<ul><li>"
|
label->setText("<qt><p>" + UpdateInfoPlugin::tr("Available updates:") + "<ul><li>"
|
||||||
+ updateText + "</li></ul></p></qt>");
|
+ updateText + "</li></ul></p></qt>");
|
||||||
label->setContentsMargins(0, 0, 0, 8);
|
label->setContentsMargins(2, 2, 2, 2);
|
||||||
|
|
||||||
auto scrollArea = new QScrollArea;
|
auto scrollArea = new QScrollArea;
|
||||||
|
scrollArea->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Maximum);
|
||||||
scrollArea->setWidget(label);
|
scrollArea->setWidget(label);
|
||||||
scrollArea->setFrameShape(QFrame::NoFrame);
|
scrollArea->setFrameShape(QFrame::NoFrame);
|
||||||
scrollArea->viewport()->setAutoFillBackground(false);
|
scrollArea->viewport()->setAutoFillBackground(false);
|
||||||
|
Reference in New Issue
Block a user