From 42f9f07a072401a571ca1b49d2c1875c24d2a07b Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Fri, 10 Jun 2022 01:27:37 +0200 Subject: [PATCH] [libcalamares] The spinner doesn't support rich text --- src/libcalamares/modulesystem/RequirementsChecker.cpp | 2 +- src/libcalamaresui/widgets/waitingspinnerwidget.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libcalamares/modulesystem/RequirementsChecker.cpp b/src/libcalamares/modulesystem/RequirementsChecker.cpp index dfd53175a..4e4a40ec4 100644 --- a/src/libcalamares/modulesystem/RequirementsChecker.cpp +++ b/src/libcalamares/modulesystem/RequirementsChecker.cpp @@ -91,7 +91,7 @@ RequirementsChecker::addCheckedRequirements( Module* m ) m_model->addRequirementsList( l ); } - Q_EMIT requirementsProgress( tr( "Requirements checking for module %1 is complete." ).arg( m->name() ) ); + Q_EMIT requirementsProgress( tr( "Requirements checking for module '%1' is complete." ).arg( m->name() ) ); } void diff --git a/src/libcalamaresui/widgets/waitingspinnerwidget.h b/src/libcalamaresui/widgets/waitingspinnerwidget.h index ce4a4cbff..29385566e 100644 --- a/src/libcalamaresui/widgets/waitingspinnerwidget.h +++ b/src/libcalamaresui/widgets/waitingspinnerwidget.h @@ -81,6 +81,10 @@ public: * With AlignBottom, the text is displayed below the spinner, * centered horizontally relative to the spinner; any other alignment * will put the text in the middle of the spinner itself. + * + * TODO: this does not support rich text. Rich text could be done + * through a QStaticText, or an HTML document. However, then + * we need to do more alignment calculations ourselves. */ void setText( const QString& text ); /** @brief Sets the alignment of text for the spinner