summaryrefslogtreecommitdiffstats
path: root/src/core/type_conversion.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/type_conversion.h')
-rw-r--r--src/core/type_conversion.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/type_conversion.h b/src/core/type_conversion.h
index e203697c0..0f3357948 100644
--- a/src/core/type_conversion.h
+++ b/src/core/type_conversion.h
@@ -250,6 +250,17 @@ inline std::vector<T> toVector(const QStringList &fileList)
int flagsFromModifiers(Qt::KeyboardModifiers modifiers);
+#if defined(ENABLE_SPELLCHECK)
+inline QStringList fromVector(const std::vector<base::string16> &vector)
+{
+ QStringList result;
+ for (auto s: vector) {
+ result.append(toQt(s));
+ }
+ return result;
+}
+#endif
+
} // namespace QtWebEngineCore
#endif // TYPE_CONVERSION_H