From f8c3f460d69d0c8666b4f79d244a6b8ddc25affa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= <44814898+BruebachL@users.noreply.github.com> Date: Sun, 8 Nov 2026 20:44:10 +0100 Subject: [PATCH] [Oracle] Stop the parent-tag explainer from being clipped A word-wrapped QLabel reports a one-line sizeHint, so the wizard page reserved too little height and the explanation lost its top and bottom lines. Pin the vertical size policy to Minimum on the explainer and on the status label, so the wrapped height becomes part of the page minimum. Verified with a layout probe: the label went from 28 px tall (needed 56) to its full height. --- oracle/src/pages.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/oracle/src/pages.cpp b/oracle/src/pages.cpp index f256232d2..cf23412c2 100644 --- a/oracle/src/pages.cpp +++ b/oracle/src/pages.cpp @@ -39,6 +39,7 @@ #include #include #include +#include #include #include #include @@ -770,10 +771,15 @@ TagsPage::TagsPage(QWidget *parent) : OracleWizardPage(parent) // so it reads as an explanation of the option rather than a caption glued // to the controls around it. parentsExplainer->setContentsMargins(24, 4, 0, 10); + // A word-wrapped label reports a one-line sizeHint, so a short page squeezes + // it and clips the text top and bottom. Pinning the vertical policy makes + // the wrapped height part of the page's minimum size. + parentsExplainer->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Minimum); statusLabel = new QLabel(this); statusLabel->setWordWrap(true); statusLabel->setTextInteractionFlags(Qt::TextSelectableByMouse); + statusLabel->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Minimum); progressLabel = new QLabel(this); progressBar = new QProgressBar(this);