diff options
| author | Sami Shalayel <sami.shalayel@qt.io> | 2022-11-17 18:17:26 +0100 |
|---|---|---|
| committer | Sami Shalayel <sami.shalayel@qt.io> | 2022-12-02 10:39:44 +0100 |
| commit | 591306fb07346065482f796f6caf4bf7e0d8e826 (patch) | |
| tree | 576b5929672f82da33fd15b4857f18a139e188f7 /src/qmlcompiler/qqmljsfunctioninitializer.cpp | |
| parent | ed83f0f795132ef20ee6fafbad911a3da0a6c481 (diff) | |
qmltc: error out when encoutering invalid filenames
Dashes and other special characters in qml filenames makes
life quite complicated, the generated cpp file will contain
everywhere and be uncompilable.
Instead, directly print an error message explaoining which names
are allowed for type compilation and return.
Reasoning:
The name of the qml file is also the name of the qml object.
For example, using a dash in the filename makes the corresponding
qml type have a dash in its name and renders the type mostly
unsuable in qml.
Therefore, only allow characters, digits and underscores.
Pick-to: 6.4
Fixes: QTBUG-107079
Change-Id: I4bff12e4a644b479213e7cc578207c8a443fc517
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljsfunctioninitializer.cpp')
0 files changed, 0 insertions, 0 deletions
