diff options
| author | Eike Ziller <eike.ziller@qt.io> | 2021-08-04 12:21:43 +0200 |
|---|---|---|
| committer | Eike Ziller <eike.ziller@qt.io> | 2021-08-04 12:15:56 +0000 |
| commit | 5ffad0a4c57e6838da57eb492d1a63eb444d9634 (patch) | |
| tree | eaec054c549230a46b7c648d53bd3ae5a2238b3f /plugins/haskell/haskellhighlighter.cpp | |
| parent | 3cf1970615d9ca2dcc5f3f6e86d69617d83adbcb (diff) | |
Fix build with Qt 6
- setContentsMargins
- QStringView instead of QStringRef
Change-Id: I2cd4df9b68f5f2fbf4c5d918b0bf238734518037
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'plugins/haskell/haskellhighlighter.cpp')
| -rw-r--r-- | plugins/haskell/haskellhighlighter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/haskell/haskellhighlighter.cpp b/plugins/haskell/haskellhighlighter.cpp index 9899cc4..8a5b6ca 100644 --- a/plugins/haskell/haskellhighlighter.cpp +++ b/plugins/haskell/haskellhighlighter.cpp @@ -80,10 +80,10 @@ void HaskellHighlighter::highlightBlock(const QString &text) setTokenFormat(token, C_VISUAL_WHITESPACE); break; case TokenType::Keyword: - if (token.text == "::" && firstNonWS && !secondNonWS) { // toplevel declaration + if (token.text == QLatin1String("::") && firstNonWS && !secondNonWS) { // toplevel declaration setFormat(firstNonWS->startCol, firstNonWS->length, m_toplevelDeclFormat); inType = true; - } else if (token.text == "import") { + } else if (token.text == QLatin1String("import")) { inImport = true; } setTokenFormat(token, C_KEYWORD); |
