Revert "Temporarily disable android Qt6 CI"

This reverts commit d6ebb1308c
This commit is contained in:
Tobias Fella
2023-04-08 19:30:29 +00:00
parent 57fccaa076
commit 419cb07557
2 changed files with 4 additions and 3 deletions

View File

@@ -138,12 +138,13 @@ int ChatDocumentHandler::completionStartIndex() const
return 0;
}
#if QT_VERSION > QT_VERSION_CHECK(6, 0, 0)
#if !defined(Q_OS_ANDROID) && QT_VERSION > QT_VERSION_CHECK(6, 0, 0)
const long long cursor = cursorPosition();
#else
const auto cursor = cursorPosition();
#endif
const auto &text = getText();
auto start = std::min(cursor, text.size()) - 1;
while (start > -1) {
if (text.at(start) == QLatin1Char(' ')) {
@@ -355,4 +356,4 @@ void ChatDocumentHandler::setErrorColor(const QColor &color)
m_highlighter->errorFormat.setForeground(m_errorColor);
m_highlighter->rehighlight();
Q_EMIT errorColorChanged();
}
}