22.10.2009 12:53, Rajagopalan Srinivasan пишет:
I cannot understand what amoc is trying to say :
gcc -c -g -gnat05 -gnata puzzle.adb
amoc puzzle_widgets.ads
raised CONSTRAINT_ERROR : amoc-generator.adb:676 range check failed
gprbuild: *** compilation phase failed
=================
The code looks like:
procedure buttonClicked(Self : not null access Puzzle_Widget;
button : qt4.Push_Buttons.q_push_button) ;
pragma q_slot(buttonClicked,"buttonClicked(QWidget)") ;
thanks for pointers, srini
-------------- next part --------------
An HTML attachment was scrubbed...
URL:<http://lists.qtada.com/pipermail/qtada-users_lists.qtada.com/attachments/20091022/ac1b0d9f/attachment.html>
_______________________________________________
qtada-users mailing list
[email protected]
http://lists.qtada.com/mailman/listinfo/qtada-users_lists.qtada.com
Hello.
You should pass objects of Q_Push_Button type by reference.
This should be correct:
procedure Button_Clicked(Self : not null access Puzzle_Widget;
button : access
qt4.Push_Buttons.q_push_button) ;
pragma q_slot(Button_Clicked,"buttonClicked(QPushButton)") ;
P.S. It may be an amoc bug, so please send bug report to QtAda developers.
_______________________________________________
qtada-users mailing list
[email protected]
http://lists.qtada.com/mailman/listinfo/qtada-users_lists.qtada.com