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);