@@ -4,18 +4,21 @@ FileViewInternal {
4
4
property bool preload: this .__preload ;
5
5
property bool blockLoading: this .__blockLoading ;
6
6
property bool blockAllReads: this .__blockAllReads ;
7
+ property bool printErrors: this .__printErrors ;
7
8
property string path: this .__path ;
8
9
9
10
onPreloadChanged: this .__preload = preload;
10
11
onBlockLoadingChanged: this .__blockLoading = this .blockLoading ;
11
12
onBlockAllReadsChanged: this .__blockAllReads = this .blockAllReads ;
13
+ onPrintErrorsChanged: this .__printErrors = this .printErrors ;
12
14
13
15
// Unfortunately path can't be kept as an empty string until the file loads
14
16
// without using QQmlPropertyValueInterceptor which is private. If we lean fully
15
17
// into using private code in the future, there will be no reason not to do it here.
16
18
17
19
onPathChanged: {
18
20
if (! this .preload ) this .__preload = false ;
21
+ this .__printErrors = this .printErrors ;
19
22
this .__path = this .path ;
20
23
if (this .preload ) this .__preload = true ;
21
24
}
@@ -30,16 +33,18 @@ FileViewInternal {
30
33
if (! this .preload ) this .__preload = false ;
31
34
this .__blockLoading = this .blockLoading ;
32
35
this .__blockAllReads = this .blockAllReads ;
36
+ this .__printErrors = this .printErrors ;
33
37
this .__path = this .path ;
34
38
const text = this .__text ;
35
39
if (this .preload ) this .__preload = true ;
36
40
return text;
37
41
}
38
42
39
- function data (): string {
43
+ function data (): var {
40
44
if (! this .preload ) this .__preload = false ;
41
45
this .__blockLoading = this .blockLoading ;
42
46
this .__blockAllReads = this .blockAllReads ;
47
+ this .__printErrors = this .printErrors ;
43
48
this .__path = this .path ;
44
49
const data = this .__data ;
45
50
if (this .preload ) this .__preload = true ;
0 commit comments