Changeset View
Changeset View
Standalone View
Standalone View
plugins/declarative/kwinnested/tests/main.qml
- This file was added.
1 | /******************************************************************** | ||||
---|---|---|---|---|---|
2 | Copyright (C) 2016 Bhavisha Dhruve <bhavishadhruve@gmail.com> | ||||
3 | | ||||
4 | This program is free software; you can redistribute it and/or modify | ||||
5 | it under the terms of the GNU General Public License as published by | ||||
6 | the Free Software Foundation; either version 2 of the License, or | ||||
7 | (at your option) any later version. | ||||
8 | | ||||
9 | This program is distributed in the hope that it will be useful, | ||||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
12 | GNU General Public License for more details. | ||||
13 | | ||||
14 | You should have received a copy of the GNU General Public License | ||||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||
16 | *********************************************************************/ | ||||
17 | | ||||
18 | import QtQuick 2.0 | ||||
19 | import org.kde.kwin.nested 1.0 | ||||
20 | | ||||
21 | Text { | ||||
22 | text: "Hello World !" | ||||
23 | height: 800 | ||||
24 | width: 600 | ||||
25 | KWinNested { | ||||
26 | id: kwin | ||||
27 | anchors.fill: parent | ||||
28 | socketName: "kwin-plasma-emulator-0" | ||||
29 | focus: true | ||||
30 | } | ||||
31 | Timer { | ||||
32 | interval: 5000 | ||||
33 | repeat: false | ||||
34 | running: true | ||||
35 | onTriggered: kwin.start() | ||||
36 | } | ||||
37 | } |