mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
fix -Wswitch warning
add default and Qt::MarkdownText
This commit is contained in:
committed by
Laurent Trinques
parent
27472bdd8b
commit
9ee911e484
@@ -737,6 +737,14 @@ QString RichTextEditor::text(Qt::TextFormat format) const
|
|||||||
return m_simplifyRichText ? simplifyRichTextFilter(toHtml()) : toHtml();
|
return m_simplifyRichText ? simplifyRichTextFilter(toHtml()) : toHtml();
|
||||||
case Qt::AutoText:
|
case Qt::AutoText:
|
||||||
break;
|
break;
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
|
||||||
|
#else
|
||||||
|
case Qt::MarkdownText: //This enum value was added in Qt 5.14.
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
|
default:
|
||||||
|
qInfo("(RichTextEditor::text) no valid switch: %d",format);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
const QString html = toHtml();
|
const QString html = toHtml();
|
||||||
bool isPlainText;
|
bool isPlainText;
|
||||||
|
|||||||
Reference in New Issue
Block a user