summaryrefslogtreecommitdiffstats
path: root/src/core/browser_context_adapter.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-04-03 18:25:42 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-04-04 08:18:59 +0000
commit03b20ee9c152414de89dbc28a5c8e3c98f66ae04 (patch)
treece85e68cc77309993d05cae1076f5c6275f48ef3 /src/core/browser_context_adapter.cpp
parentbfe8875e2119568786b1e98710d44f898313add4 (diff)
Fix spellcheck feature check
Was changed to generated buildflag headers instead of command line defines. Task-number: QTBUG-59687 Change-Id: Iead64f5321d000c07172ee27a0032394527ec501 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'src/core/browser_context_adapter.cpp')
-rw-r--r--src/core/browser_context_adapter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/browser_context_adapter.cpp b/src/core/browser_context_adapter.cpp
index 1bb90aff6..1da186584 100644
--- a/src/core/browser_context_adapter.cpp
+++ b/src/core/browser_context_adapter.cpp
@@ -494,14 +494,14 @@ void BrowserContextAdapter::clearHttpCache()
void BrowserContextAdapter::setSpellCheckLanguages(const QStringList &languages)
{
-#if defined(ENABLE_SPELLCHECK)
+#if BUILDFLAG(ENABLE_SPELLCHECK)
m_browserContext->setSpellCheckLanguages(languages);
#endif
}
QStringList BrowserContextAdapter::spellCheckLanguages() const
{
-#if defined(ENABLE_SPELLCHECK)
+#if BUILDFLAG(ENABLE_SPELLCHECK)
return m_browserContext->spellCheckLanguages();
#else
return QStringList();
@@ -510,14 +510,14 @@ QStringList BrowserContextAdapter::spellCheckLanguages() const
void BrowserContextAdapter::setSpellCheckEnabled(bool enabled)
{
-#if defined(ENABLE_SPELLCHECK)
+#if BUILDFLAG(ENABLE_SPELLCHECK)
m_browserContext->setSpellCheckEnabled(enabled);
#endif
}
bool BrowserContextAdapter::isSpellCheckEnabled() const
{
-#if defined(ENABLE_SPELLCHECK)
+#if BUILDFLAG(ENABLE_SPELLCHECK)
return m_browserContext->isSpellCheckEnabled();
#else
return false;