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:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user