From 99a0e2337fcaddbe8c2c62dfd6e10b3db6d8edbc Mon Sep 17 00:00:00 2001 From: Pritpal Bedi Date: Thu, 28 Jun 2012 06:12:24 +0000 Subject: [PATCH] 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() --- harbour/ChangeLog | 11 +++++++++++ harbour/contrib/hbqt/qtcore/qth/QTimer.qth | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 849863d8e2..a03a95d198 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -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 diff --git a/harbour/contrib/hbqt/qtcore/qth/QTimer.qth b/harbour/contrib/hbqt/qtcore/qth/QTimer.qth index 646735cca5..d9fdb0b721 100644 --- a/harbour/contrib/hbqt/qtcore/qth/QTimer.qth +++ b/harbour/contrib/hbqt/qtcore/qth/QTimer.qth @@ -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 )