Opt-out of Kirigami.SpellCheck when a custom QTextDocument handler is used
Uses Kirigami.SpellCheck's new shorter name. See https://invent.kde.org/frameworks/kirigami/-/merge_requests/1261
This commit is contained in:
@@ -8,7 +8,7 @@ import QtQuick.Controls 2.15 as QQC2
|
|||||||
import QtQuick.Window 2.15
|
import QtQuick.Window 2.15
|
||||||
import Qt.labs.platform 1.1 as Platform
|
import Qt.labs.platform 1.1 as Platform
|
||||||
|
|
||||||
import org.kde.kirigami 2.18 as Kirigami
|
import org.kde.kirigami as Kirigami
|
||||||
import org.kde.neochat 1.0
|
import org.kde.neochat 1.0
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -174,6 +174,9 @@ QQC2.Control {
|
|||||||
|
|
||||||
Accessible.description: placeholderText
|
Accessible.description: placeholderText
|
||||||
|
|
||||||
|
// opt-out of whatever spell checker a styled TextArea might come with
|
||||||
|
Kirigami.SpellCheck.enabled: false
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: repeatTimer
|
id: repeatTimer
|
||||||
interval: 5000
|
interval: 5000
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import QtQuick 2.15
|
|||||||
import QtQuick.Controls 2.15 as QQC2
|
import QtQuick.Controls 2.15 as QQC2
|
||||||
import QtQuick.Layouts 1.15
|
import QtQuick.Layouts 1.15
|
||||||
|
|
||||||
import org.kde.kirigami 2.15 as Kirigami
|
import org.kde.kirigami as Kirigami
|
||||||
import org.kde.neochat 1.0
|
import org.kde.neochat 1.0
|
||||||
|
|
||||||
QQC2.TextArea {
|
QQC2.TextArea {
|
||||||
@@ -112,6 +112,9 @@ QQC2.TextArea {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// opt-out of whatever spell checker a styled TextArea might come with
|
||||||
|
Kirigami.SpellCheck.enabled: false
|
||||||
|
|
||||||
ChatDocumentHandler {
|
ChatDocumentHandler {
|
||||||
id: documentHandler
|
id: documentHandler
|
||||||
isEdit: true
|
isEdit: true
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import QtQuick 2.15
|
|||||||
import QtQuick.Controls 2.15 as QQC2
|
import QtQuick.Controls 2.15 as QQC2
|
||||||
|
|
||||||
import org.kde.syntaxhighlighting 1.0
|
import org.kde.syntaxhighlighting 1.0
|
||||||
import org.kde.kirigami 2.15 as Kirigami
|
import org.kde.kirigami as Kirigami
|
||||||
import org.kde.neochat 1.0
|
import org.kde.neochat 1.0
|
||||||
|
|
||||||
Kirigami.Page {
|
Kirigami.Page {
|
||||||
@@ -38,6 +38,9 @@ Kirigami.Page {
|
|||||||
color: Kirigami.Theme.backgroundColor
|
color: Kirigami.Theme.backgroundColor
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// opt-out of whatever spell checker a styled TextArea might come with
|
||||||
|
Kirigami.SpellCheck.enabled: false
|
||||||
|
|
||||||
SyntaxHighlighter {
|
SyntaxHighlighter {
|
||||||
textEdit: sourceTextArea
|
textEdit: sourceTextArea
|
||||||
definition: "JSON"
|
definition: "JSON"
|
||||||
|
|||||||
Reference in New Issue
Block a user