2012-06-27 23:08 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)

* contrib/hbqt/qtcore/qth/QTimer.qth
    ! Removed: :singleShot() method as it cannot be implemented 
       as per documented because of how signal/slots are implemented
       in Harbour. Instead, use code like this ( courtesy Ligui ):
          ::oQtSingleShot := QTimer( ::oQtObject )
          ::oQtSingleShot:setSingleShot( .T. )
          ::oQtSingleShot:setInterval( 0 )
          ::oQtSingleShot:connect( "timeout()", { || ::__OnReadyExec() } )
          ::oQtSingleShot:start()
This commit is contained in:
Pritpal Bedi
2012-06-28 06:12:24 +00:00
parent a325676ce2
commit 99a0e2337f
2 changed files with 13 additions and 1 deletions

View File

@@ -16,6 +16,17 @@
The license applies to all entries newer than 2009-04-28.
*/
2012-06-27 23:08 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/qtcore/qth/QTimer.qth
! Removed: :singleShot() method as it cannot be implemented
as per documented because of how signal/slots are implemented
in Harbour. Instead, use code like this ( courtesy Ligui ):
::oQtSingleShot := QTimer( ::oQtObject )
::oQtSingleShot:setSingleShot( .T. )
::oQtSingleShot:setInterval( 0 )
::oQtSingleShot:connect( "timeout()", { || ::__OnReadyExec() } )
::oQtSingleShot:start()
2012-06-27 12:49 UTC+0200 Viktor Szakats (harbour syenar.net)
* utils/hbmk2/hbmk2.prg
! fixed similar regression as in 2012-06-27 10:35 UTC+0200

View File

@@ -45,7 +45,8 @@ void setInterval ( int msec )
void setSingleShot ( bool singleShot )
int timerId () const
void singleShot ( int msec, QObject * receiver, const char * member )
// This will never work as per Harbour's implementation of Signal/slots, so commenting out - 27Jun2012
//void singleShot ( int msec, QObject * receiver, const char * member )
</PROTOS>
<SLOTS>