blob: 74427c94927fa347b16ab24ff1b2c4d0a6819d15 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
import QtQuick
import Test
Window {
id: window
width: 400
height: 400
color: "red"
// Important for the test to set visible early on, not wait until
// show() from C++. What is really verified here is that the
// content grabbing takes the real window state into account
// (visible vs. exposed).
visible: true
Grabber {
id: grabber
objectName: "grabber"
}
Item {
anchors.fill: parent
Component.onCompleted: grabber.grab(window)
}
}
|