mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50: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();
|
||||
case Qt::AutoText:
|
||||
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();
|
||||
bool isPlainText;
|
||||
|
||||
Reference in New Issue
Block a user