2012-06-06 21:26 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)

* contrib/hbqt/tests/qtrevamp.prg
    - Removed: note on returned QAction if it is not of same type 
      as stated in previous commit. New hbQT is always returning 
      NIL if a valid Qt pointer could not been obtained. This holds 
      true for all type of objects. Actually I did not test it 
      along these lines. So with __HBQT_REVAMP__ there is no need 
      of :isValidPointer() any more, just test a returned object 
      against NIL.
This commit is contained in:
Pritpal Bedi
2012-06-07 04:30:46 +00:00
parent 8f4cd3929a
commit d3a349b87f
2 changed files with 12 additions and 9 deletions

View File

@@ -16,6 +16,16 @@
The license applies to all entries newer than 2009-04-28.
*/
2012-06-06 21:26 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/tests/qtrevamp.prg
- Removed: note on returned QAction if it is not of same type
as stated in previous commit. New hbQT is always returning
NIL if a valid Qt pointer could not been obtained. This holds
true for all type of objects. Actually I did not test it
along these lines. So with __HBQT_REVAMP__ there is no need
of :isValidPointer() any more, just test a returned object
against NIL.
2012-06-06 18:54 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/qtcore/hbqt_bind.cpp
* Struggled: to set pointer arithmatic to be used properly.

View File

@@ -118,15 +118,8 @@ FUNCTION ContextMenu( oWnd )
qMenu:addAction( "Find" )
qAct := qMenu:exec( oWnd:mapToGlobal( QPoint( 10,10 ) ) )
// The test below is neccessary because Qt returns NULL in case
// user clicks anything except a menu item. Theoretically, Qt
// should have returned a QAction.
//
IF __objGetClsName( qAct ) == "QAction"
IF hb_isString( qAct:text() )
//...
ENDIF
IF ! empty( qAct )
//...
ENDIF
// qMenu is a local variable and is carries no parent,