diff options
| author | Sami Shalayel <sami.shalayel@qt.io> | 2025-09-08 16:51:17 +0200 |
|---|---|---|
| committer | Sami Shalayel <sami.shalayel@qt.io> | 2025-09-16 13:41:48 +0200 |
| commit | 5d773e472dc2c7b54d51e1ed83b0e9d8737a0d96 (patch) | |
| tree | f86435bf19fd5b2d2d96bbe84d264805103f51f2 /src/qml/jsruntime/qv4arrayobject.cpp | |
| parent | 1e5a63f7a3a548344dca11d1ce736e2803131d2d (diff) | |
QQmlCodeModel: simplify build path handling
The introduction of QQmlCodeModelManager made the per-root-url build
path map of QQmlCodeModel redundant. Replace the per-root-url build
path map with a single list of build paths. The API is adjusted
accordingly:
- replace buildPathsForRootUrl() with buildPaths()
- replace setBuildPathsForRootUrl() with setBuildPaths()
- remove unused helpers for root-url matching
The build paths are now stored in a QStringList instead of a
QHash keyed by root URL. This simplifies the logic in
buildPathsForFileUrl(), which now falls back directly to settings
when no explicit build paths are set via the environment or the
commandline option of qmlls.
Also fix a test to actually write a settings file on disk, as we now
avoid reading settings values if no settings file was found.
Change-Id: I4e7f409a9cf1368cc6afa134a1386fd98833693f
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4arrayobject.cpp')
0 files changed, 0 insertions, 0 deletions
