From: gg Date: Thu, 15 Jan 2026 21:55:44 +0000 (-0500) Subject: fixup! Qt 5.12 compat (refactor) X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=a90683bb60ad862669b7a51d8f9acd8d7d00247c;p=gamesguru%2Ffeather.git fixup! Qt 5.12 compat (refactor) --- 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 +}