summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qplatformtheme_qpa.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kernel/qplatformtheme_qpa.cpp')
-rw-r--r--src/gui/kernel/qplatformtheme_qpa.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformtheme_qpa.cpp b/src/gui/kernel/qplatformtheme_qpa.cpp
index 32204e6a26..1038eb2826 100644
--- a/src/gui/kernel/qplatformtheme_qpa.cpp
+++ b/src/gui/kernel/qplatformtheme_qpa.cpp
@@ -44,6 +44,7 @@
#include <QtCore/QVariant>
#include <QtCore/QStringList>
#include <qpalette.h>
+#include <qtextformat.h>
QT_BEGIN_NAMESPACE
@@ -101,6 +102,9 @@ QT_BEGIN_NAMESPACE
\value UiEffects (int) A flag value consisting of UiEffect values specifying the enabled UI animations.
+ \value SpellCheckUnderlineStyle (int) A QTextCharFormat::UnderlineStyle specifying
+ the underline style used misspelled words when spell checking.
+
\sa themeHint(), QStyle::pixelMetric()
*/
@@ -167,6 +171,8 @@ QVariant QPlatformTheme::themeHint(ThemeHint hint) const
return QVariant(int(WindowsKeyboardScheme));
case UiEffects:
return QVariant(int(0));
+ case SpellCheckUnderlineStyle:
+ return QVariant(int(QTextCharFormat::SpellCheckUnderline));
}
return QVariant();
}