QWidgetTextControl: Fix build with -no-feature-textodfwrite
.../qtbase/src/widgets/widgets/qwidgettextcontrol.cpp(3470): error C2059: syntax error: ')' .../qtbase/src/widgets/widgets/qwidgettextcontrol.cpp(3478): error C3536: 'supportedMimeTypes': cannot be used before it is initialized Drive-by change: apply the same fix for 'textmarkdownwriter' feature. This amends commit 6cd8f1fbefba929427d694060fae7e4b26a73dee. Change-Id: I78fd66c4d16003aa7e98b0f6b3dfcd1f9c5cb1e5 Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
This commit is contained in:
parent
1b592e18b2
commit
e16c4069fd
@ -3460,12 +3460,12 @@ void QUnicodeControlCharacterMenu::menuActionTriggered()
|
|||||||
|
|
||||||
static constexpr auto supportedMimeTypes = qOffsetStringArray(
|
static constexpr auto supportedMimeTypes = qOffsetStringArray(
|
||||||
"text/plain",
|
"text/plain",
|
||||||
"text/html",
|
"text/html"
|
||||||
#if QT_CONFIG(textmarkdownwriter)
|
#if QT_CONFIG(textmarkdownwriter)
|
||||||
"text/markdown",
|
, "text/markdown"
|
||||||
#endif
|
#endif
|
||||||
#if QT_CONFIG(textodfwriter)
|
#if QT_CONFIG(textodfwriter)
|
||||||
"application/vnd.oasis.opendocument.text"
|
, "application/vnd.oasis.opendocument.text"
|
||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user