fd99381985abf72fcc0caf1745fe3e734e4c78c9
* contrib/hbqt/hbmk2_qt.hbs
Typo that generated wrong cpp code
*HBQT USERS PLEASE READ*
Please note that this patch introduces parameter checking on hbQt
methods when parameter is a hbQt object.
Up to now you could do some weird (and illegal) things like
passing a QLabel when a QToolbar was expected. These lead to GPF, also
random. Now hbQt checks that the object passed is of the expected type
or of a subclass. If the method expects a QToolbar as parameter now an
error is generated if we pass a QLabel. If the method expects a QWidget,
it is possible to pass a QWidget, a QLabel, or any other hbQt object
derived from QWidget, also user-defined ones.
It may be that this patch breaks old *WRONG* code that just for
casualty was not generating GPF. So if your program starts to report
errors for wrong parameters, please check your code.
Another change is that when a hbQt goes out of scope a disconnect() is
forced immediately in the destructor. This will prevent that
events/signals are activated by Qt for that object while it waits
for harbour GC to delete it. This was common during window closing step
or program end.
Description
Harbour Core — Reference source for Five development
Languages
C
80.3%
xBase
17.8%
Makefile
0.6%
C++
0.4%
Harbour
0.4%
Other
0.3%