]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
fixup! Qt 5.12 compat (refactor)
authorgg <chown_tee@proton.me>
Thu, 15 Jan 2026 21:55:44 +0000 (16:55 -0500)
committergg <chown_tee@proton.me>
Thu, 15 Jan 2026 21:55:44 +0000 (16:55 -0500)
src/components.cpp

index 8c6b98787b7034022a8ebed36630b6b0972137c0..a9adb6191eda20b55d08720510a00450a74eb115 100644 (file)
@@ -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
+}