summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-08-25 16:35:27 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-08-25 16:35:27 (GMT)
commitc97240bbd0be57889f37b93aa022a6dec84da013 (patch)
treef2b52fd655e5ea054d9837d37ff0c4a9c57ea0e8
parent0b9c4f3b5df70cab042911885febb1909838103c (diff)
parent41da349eb2bf25dba633578068b9bf2a7e7a6e24 (diff)
downloadQt-c97240bbd0be57889f37b93aa022a6dec84da013.zip
Qt-c97240bbd0be57889f37b93aa022a6dec84da013.tar.gz
Qt-c97240bbd0be57889f37b93aa022a6dec84da013.tar.bz2
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qt-fire-team
* 'master' of git://scm.dev.nokia.troll.no/qt/qt-fire-team: uikit: get rid of the "min 30fps" for event handling. uikit: update README
-rw-r--r--src/plugins/platforms/uikit/README19
-rw-r--r--src/plugins/platforms/uikit/quikiteventloop.mm11
2 files changed, 16 insertions, 14 deletions
diff --git a/src/plugins/platforms/uikit/README b/src/plugins/platforms/uikit/README
index 795e72a..a8031e6 100644
--- a/src/plugins/platforms/uikit/README
+++ b/src/plugins/platforms/uikit/README
@@ -7,8 +7,8 @@ There have no tests been run whatsoever.
* Open GL ES 1/2 based backend
* Single touch
-* Text/font drawing using font shipped with application
-* Text input (Opening/closing software input panel.
+* Text/font drawing using system fonts (CoreText)
+* Text input (Opening/closing software input panel
Application has to perform necessary layout changes itself.)
* Initial showing/hiding of status bar (as defined in the Info.plist)
* Interface orientations as defined in the Info.plist of the application
@@ -21,7 +21,16 @@ Building/Deploying the application has to be done in Xcode. You need to generate
necessary moc_ files in advance and add these to the Xcode project. More details
on the Xcode setup see below.
-1) Build Qt
+1) Known Issues
+
+* Console message
+ "QEventDispatcherUNIX: internal error, wakeUps.testAndSetRelease(1, 0) failed!"
+ seems to appear sometimes for some people for unknown reasons and
+ unknown effect
+* JavaScript XmlHttpRequest doesn't work reliably even though networking
+ in general seems to
+
+2) Build Qt
The example Xcode project in the examples subdirectory requires that you do shadow
builds of Qt in qt-lighthouse-ios-simulator and qt-lighthouse-ios-device directories
@@ -43,7 +52,7 @@ Device:
-------
configure -qpa -xplatform qpa/macx-iphonedevice-g++ -arch armv7 -no-neon -developer-build -release -opengl es2 -no-accessibility -no-qt3support -no-multimedia -no-phonon-backend -no-webkit -no-scripttools -no-openssl -no-sql-mysql -no-sql-odbc -no-cups -no-iconv -no-dbus -static -nomake tools -nomake demos -nomake docs -nomake examples -nomake translations
-2) XCode setup:
+3) XCode setup:
- there are examples in the examples subdirectory of the platform plugin
- to create something fresh do something like:
- Xcode: Create a "View-based Appplication"
@@ -64,5 +73,5 @@ configure -qpa -xplatform qpa/macx-iphonedevice-g++ -arch armv7 -no-neon -develo
and call Phonon::Factory::setBackend(qt_plugin_instance_phonon_av());
Link to libphonon and to plugins/phonon/phonon_av
-3) Done: Build and Run.
+4) Done: Build and Run.
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)