Skip to content

Commit 9dc93e9

Browse files
common interface
1 parent 53f3396 commit 9dc93e9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

simple_screenshot.qml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,24 @@ Loader{
99
//Qt.quit()
1010
}
1111

12-
function grab(tag){
12+
function testScreenshot(tag, next){
1313
var path = source.toString()
1414
.replace(".qml", "")
1515
.replace("file://", "")
1616
if(tag)
1717
path = path + "-" + tag
1818
console.log("grab" + path + ".png")
1919
shorty.shootFull(path+ ".png")
20+
next()
2021
}
21-
function done(){
22+
function testDone(){
2223
Qt.quit()
2324
}
25+
function testYield()
26+
{
27+
}
2428
onLoaded: {
29+
console.log("load")
2530
timer.start()
2631
}
2732

0 commit comments

Comments
 (0)