blob: e2012447c63e100e7ee5a23da69362f44ef1645c (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
require 'Qt'
#### CRASH ###
# param mismatch?
class Bug1 < Qt::PushButton
def initialize(*k)
super(*k)
end
def Bug1.test
a = Qt::Application.new(ARGV)
w = Qt::VBox.new
hello = Bug1.new(a)
hello.resize(100, 30)
a.setMainWidget(w)
hello.show()
a.exec()
end
end
#Bug1.test
#### MORE DEBUG INFO NEEDED ###
# missing method
class Bug2 < Qt::VBox
def initialize(*k)
super(*k)
end
def Bug2.test
a = Qt::Application.new(ARGV)
w = Bug2.new
a.setMainWidget(w)
w.show2()
a.exec()
end
end
#Bug2.test
#### MORE DEBUG INFO NEEDED ###
# missing prototype
class Bug2a < Qt::VBox
def initialize(*k)
super(*k)
end
def Bug2a.test
a = Qt::Application.new(ARGV)
w = Bug2a.new
a.setMainWidget(w)
w.show(p)
a.exec()
end
end
Bug2a.test
#### FIXED ###
# no such constructor for PushButton
class Bug3 < Qt::PushButton
def initialize
super
end
def Bug3.test
a = Qt::Application.new(ARGV)
hello = Bug3.new
hello.resize(100, 30)
a.setMainWidget(hello)
hello.show()
a.exec()
end
end
#Bug3.test
#### FIXED ###
# no *class* variable/method resize in PushButton
class Bug4 < Qt::PushButton
def initialize
super
end
def Bug4.test
hello = Bug4
hello.resize(100, 30)
end
end
#Bug4.test
|