File: test-qt-widgets.ttl

package info (click to toggle)
dataquay 0.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, stretch
  • size: 852 kB
  • sloc: cpp: 8,808; sh: 26; ansic: 13; makefile: 10
file content (49 lines) | stat: -rw-r--r-- 1,105 bytes parent folder | download | duplicates (7)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
@base <http://uh.i.dunno.breakfastquay.com/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix : <> .
@prefix qtype: <http://breakfastquay.com/rdf/dataquay/qtype/> .
@prefix dq: <http://breakfastquay.com/rdf/dataquay/common/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

:mainwindow
	qtype:objectName "My Main Window" ;
	a qtype:QMainWindow .

:menu
	dq:parent :mainwindow ;
	a qtype:QMenu ;
	qtype:title "File" .

:exit
	dq:parent :menu ;
	a qtype:QAction ;
	qtype:text "Exit" .

:exit_connection
	a dq:Connection ;
	dq:source [ dq:object :exit ; dq:signal "triggered" ] ;
	dq:target [ dq:object :mainwindow ; dq:slot "close" ] .

:frame
	dq:parent :mainwindow ;
	dq:central_widget_of :mainwindow ;
	a qtype:QFrame .

:vbox
	dq:parent :frame ;
	dq:layout_of :frame ;
	a qtype:QVBoxLayout .

:label_1
	a qtype:QLabel ;
	dq:parent :frame ;
	dq:follows :label_2 ;
	dq:layout :vbox ;
	qtype:text "Hello! I am the first label (but I go second)." .

:label_2
	a qtype:QLabel ;
	dq:parent :frame ;
	dq:layout :vbox ;
	qtype:text "Hello! I am the second label (but I go first)." .