summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@nokia.com>2011-08-25 10:33:08 (GMT)
committerEike Ziller <eike.ziller@nokia.com>2011-08-25 16:26:23 (GMT)
commit41da349eb2bf25dba633578068b9bf2a7e7a6e24 (patch)
treef2b52fd655e5ea054d9837d37ff0c4a9c57ea0e8 /src/plugins/platforms
parent520dc46f9fad5f6adba9b71cebd007c04123dd30 (diff)
downloadQt-41da349eb2bf25dba633578068b9bf2a7e7a6e24.zip
Qt-41da349eb2bf25dba633578068b9bf2a7e7a6e24.tar.gz
Qt-41da349eb2bf25dba633578068b9bf2a7e7a6e24.tar.bz2
uikit: get rid of the "min 30fps" for event handling.
This is actually not needed if done correctly.
Diffstat (limited to 'src/plugins/platforms')
-rw-r--r--src/plugins/platforms/uikit/quikiteventloop.mm11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/plugins/platforms/uikit/quikiteventloop.mm b/src/plugins/platforms/uikit/quikiteventloop.mm
index 7df7ec8..152a34a 100644
--- a/src/plugins/platforms/uikit/quikiteventloop.mm
+++ b/src/plugins/platforms/uikit/quikiteventloop.mm
@@ -67,7 +67,6 @@
- (id)initWithEventLoopIntegration:(QUIKitEventLoop *)integration;
-- (void)processEvents;
- (void)processEventsAndSchedule;
@end
@@ -160,17 +159,11 @@
return self;
}
-- (void)processEvents
-{
- QPlatformEventLoopIntegration::processEvents();
-}
-
- (void)processEventsAndSchedule
{
QPlatformEventLoopIntegration::processEvents();
- qint64 nextTime = qMin((qint64)33, mIntegration->nextTimerEvent()); // at least 30fps
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
- NSDate *nextDate = [[NSDate date] dateByAddingTimeInterval:((double)nextTime/1000)];
+ NSDate *nextDate = [[NSDate date] dateByAddingTimeInterval:((double)mIntegration->nextTimerEvent()/1000.)];
[mIntegration->mTimer setFireDate:nextDate];
[pool release];
}
@@ -211,7 +204,7 @@ void QUIKitEventLoop::quitEventLoop()
void QUIKitEventLoop::qtNeedsToProcessEvents()
{
- [mHelper performSelectorOnMainThread:@selector(processEvents) withObject:nil waitUntilDone:NO];
+ [mHelper performSelectorOnMainThread:@selector(processEventsAndSchedule) withObject:nil waitUntilDone:NO];
}
static UIReturnKeyType keyTypeForObject(QObject *obj)