From a90683bb60ad862669b7a51d8f9acd8d7d00247c Mon Sep 17 00:00:00 2001 From: gg Date: Thu, 15 Jan 2026 16:55:44 -0500 Subject: [PATCH] fixup! Qt 5.12 compat (refactor) --- src/components.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components.cpp b/src/components.cpp index 8c6b9878..a9adb619 100644 --- a/src/components.cpp +++ b/src/components.cpp @@ -110,7 +110,11 @@ InfoFrame::InfoFrame(QWidget *parent) m_infoLabel = new QLabel(this); m_infoLabel->setWordWrap(true); +#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) m_infoLabel->setTextFormat(Qt::MarkdownText); +#else + m_infoLabel->setTextFormat(Qt::AutoText); // Fallback for Qt 5.12 (Ubuntu 20.04) +#endif m_infoLabel->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::LinksAccessibleByMouse); layout->addWidget(m_infoLabel); } @@ -128,4 +132,4 @@ void InfoFrame::setInfo(const QIcon &icon, const QString &text) { void InfoFrame::setText(const QString &text) { m_infoLabel->setText(text); -} \ No newline at end of file +} -- 2.52.0