diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2011-12-21 11:33:56 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-02 10:44:00 +0100 |
commit | 6fc9820d2a3f349f04a2ea9c39261de0168d2331 (patch) | |
tree | cd07d4f662aee0af771481301a54ab5ea7068b15 /src/corelib/kernel/qtimerinfo_unix_p.h | |
parent | 2bbf9befd8879dcfca9f48ac9ac13daf40f48847 (diff) |
Change QTimerInfo (UNIX) to keep the interval in milliseconds.
The API passes the interval as an int, there's no reason to convert
it to a timeval struct. This also prepares for changing the UNIX
timer code to support the different timer types.
Author: Thiago Macieira <thiago.macieira@nokia.com>
Change-Id: Ie3cc1ae8f1be6a9ad3f1766051642cbf3e614418
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/kernel/qtimerinfo_unix_p.h')
-rw-r--r-- | src/corelib/kernel/qtimerinfo_unix_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qtimerinfo_unix_p.h b/src/corelib/kernel/qtimerinfo_unix_p.h index 82acb439e7..b551f472df 100644 --- a/src/corelib/kernel/qtimerinfo_unix_p.h +++ b/src/corelib/kernel/qtimerinfo_unix_p.h @@ -62,8 +62,8 @@ QT_BEGIN_NAMESPACE // internal timer info struct QTimerInfo { int id; // - timer identifier + int interval; // - timer interval in milliseconds Qt::TimerType timerType; // - timer type - timeval interval; // - timer interval timeval timeout; // - when to sent event QObject *obj; // - object to receive event QTimerInfo **activateRef; // - ref from activateTimers |