chore: remove old Qt 5.12 code, update docs and FreeBSD runner (#5396)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -77,11 +77,7 @@ QString ResizingTextEdit::textUnderCursor(bool *hadSpace) const
|
||||
|
||||
auto textUpToCursor = currentText.left(tc.selectionStart());
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
|
||||
auto words = QStringView{textUpToCursor}.split(' ');
|
||||
#else
|
||||
auto words = textUpToCursor.splitRef(' ');
|
||||
#endif
|
||||
if (words.size() == 0)
|
||||
{
|
||||
return QString();
|
||||
|
||||
Reference in New Issue
Block a user