Skip to content

Commit

Permalink
Qt4 compatibility of one test.
Browse files Browse the repository at this point in the history
  • Loading branch information
klayoutmatthias committed Sep 14, 2020
1 parent dccdde2 commit 28cc426
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions testdata/ruby/qtbinding.rb
Original file line number Diff line number Diff line change
Expand Up @@ -679,22 +679,24 @@ def test_50

w = RBA::QObject::new

on = nil
w.objectNameChanged do |name|
on = name
if w.respond_to?(:objectNameChanged) # Qt5

on = nil
w.objectNameChanged do |name|
on = name
end

w.objectName = "uvw"
assert_equal(on, "uvw")

end

od = false
w.destroyed do |name|
od = true
end

w.objectName = "uvw"

assert_equal(on, "uvw")

w._destroy

assert_equal(od, true)

end
Expand Down

0 comments on commit 28cc426

Please sign in to comment.