This website requires JavaScript.
Explore
Help
Sign In
feedc0de
/
qt-creator
Watch
1
Star
0
Fork
0
You've already forked qt-creator
forked from
qt-creator/qt-creator
Code
Pull Requests
Activity
Files
cc05c1637778db8210ea901b8da71aeef1bde05e
qt-creator
/
tests
/
auto
/
utils
/
text
/
text.qbs
8 lines
110 B
QML
Raw
Normal View
History
Unescape
Escape
Utils: fix Text::Range length and remove mid Those functions are based on the assumption that the passed text starts at the begin position, which was good enough for search results, but if used in other parts of the codebase it might give unwanted results. Calculate the length of the range now as expected and subtract the beginning lines. In order to still got the correct results for the text result texts modify the result range to always start at the first line before calculating the length of the range. Also add tests for the modified functionality Change-Id: I7ccd75b642dda6dd4f738877cbe3543d46c03652 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-05-11 09:34:53 +02:00
import
qbs
QtcAutotest
{
Tests: Build text tests with Qbs as well Amends 1a98dda5c417e892cadbedb656829cf2ba4d1d0a. Change-Id: If563437141ac75bb2b72a9d550d1fb507a89e63c Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-05-17 15:21:18 +02:00
name:
"Text autotest"
Utils: fix Text::Range length and remove mid Those functions are based on the assumption that the passed text starts at the begin position, which was good enough for search results, but if used in other parts of the codebase it might give unwanted results. Calculate the length of the range now as expected and subtract the beginning lines. In order to still got the correct results for the text result texts modify the result range to always start at the first line before calculating the length of the range. Also add tests for the modified functionality Change-Id: I7ccd75b642dda6dd4f738877cbe3543d46c03652 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-05-11 09:34:53 +02:00
Depends
{
name:
"Utils"
}
files:
"tst_text.cpp"
}
Copy Permalink