File tree 1 file changed +23
-7
lines changed 1 file changed +23
-7
lines changed Original file line number Diff line number Diff line change 18
18
import QtQuick 2.0
19
19
20
20
import Qt.labs.screenshot 1.0
21
+ import QtQuick.Window 2.0
22
+ import com.qtcompany.B2QtLauncher 1.0
21
23
22
- Item
24
+
25
+ Window
23
26
{
24
- id: root;
27
+ id: root
28
+ visible: true
25
29
26
30
width: 1280
27
31
height: 720
28
32
29
- Connections {
30
- target: applicationsModel
31
- onReady: listView .listIndex = 0 ;
33
+ LauncherApplicationsModel {
34
+ id: applicationsModel
35
+ onReady: {
36
+ engine .markApplicationsModelReady ();
37
+ }
38
+ Component .onCompleted : {
39
+ // Set the directory to parse for apps
40
+ initialize (applicationSettings .appsRoot );
41
+ }
42
+ }
43
+
44
+ LauncherEngine {
45
+ id: engine
46
+ bootAnimationEnabled: applicationSettings .isBootAnimationEnabled
47
+ fpsEnabled: applicationSettings .isShowFPSEnabled
32
48
}
33
49
34
50
ListView {
75
91
script: {
76
92
var isPortrait = root .width < root .height ;
77
93
78
- var size = Qt .size (400 , 225 );
94
+ var size = Qt .size (800 , 450 );
79
95
var smallSize = Qt .size (128 , 72 );
80
96
var loc = applicationsModel .locationAt (listView .listIndex ) + " /"
81
97
var name = " preview_l"
88
104
}
89
105
90
106
screenshot .grab (loc + name + ext, size); // medium resolution
91
- screenshot .grab (loc + name + " _lr" + ext, smallSize); // low resolution
107
+ // screenshot.grab(loc + name + "_lr" + ext, smallSize); // low resolution
92
108
}
93
109
}
94
110
PauseAnimation { duration: 100 }
You can’t perform that action at this time.
0 commit comments