Skip to content

Commit

Permalink
try 1:
Browse files Browse the repository at this point in the history
```
cpp_ref: cxxref(CppAddr((CppNNS{(:QPushButton,:clicked)})()))
cxxref: CppAddr{CppNNS{(:QPushButton,:clicked)}}
:1:1: error: must explicitly qualify name of member function when taking its address
^
QAbstractButton::
ERROR: `juliatype` has no method matching juliatype(::CppPtr{CppValue{CppBaseType{symbol("clang::Type")},(false,false,false)},(false,false,false)})
while loading /home/isaiah/.julia/Cxx/test/qt1.jl, in expression starting on line 80
```
  • Loading branch information
ihnorton committed Dec 26, 2014
1 parent 6057972 commit a084547
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/qttest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ void handle_hi()
# - type translation doesn't work right for $:(btn) if I call connect from a cxx""" block
# - I get isexprs assertion failure if I try to use a lambda. think it might be a
# block parsing issue though.
function setup(btn)
function setup(btn, signal)
icxx"""
QObject::connect($btn, &QPushButton::clicked,
QObject::connect($btn, $signal,
handle_hi );
"""
end
setup(hibtn)
setup(hibtn, @cxx(&QPushButton::clicked))

# display the window
@cxx mb->setWindowModality(@cxx(Qt::NonModal))
Expand Down

0 comments on commit a084547

Please sign in to comment.