summaryrefslogtreecommitdiffstats
path: root/src/corelib
Commit message (Collapse)AuthorAgeFilesLines
* Compile.Eskil Abrahamsen Blomfeldt2009-09-301-0/+72
| | | | Missed qdatastream_p.h in last commit.
* Fix floating point precision when using qreal with QDataStreamEskil Abrahamsen Blomfeldt2009-09-303-9/+107
| | | | | | | | | | | | | | | | A frequent bug when using QDataStream across platforms where the size of qreal is different (such as any desktop platform and an ARM device) is that you end up using different overloads for streaming the value in and out (e.g. operator>>(double) on desktop and operator<<(float) on ARM.) This can leads to crashes and data corruption. To avoid the problem, we define a single floating point precision for the entire data stream and allow this to be set by the user. The default is to use 64-bit precision for all floating point numbers. Reviewed-by: Samuel Reviewed-by: Thiago
* fix string builder for QT_NO_CAST_FROM_ASCII on Windowshjk2009-09-301-2/+13
| | | | Reviewed-by: thiago
* Adds QUrl::fromUserInput, gathered from QWebView::guessUrlFromString.Jocelyn Turcotte2009-09-292-0/+77
| | | | Reviewed-by: Thiago Macieira
* Merge commit 'qt/4.6' into mmfphononFrans Englich2009-09-292-0/+21
|\
| * Make sure delayed events are cancelled when a state machine haltsKent Hansen2009-09-292-0/+21
| | | | | | | | | | | | | | Otherwise the events might creep into the event loop if the state machine is restarted. Reviewed-by: Eskil Abrahamsen Blomfeldt
* | Merge commit 'qt/4.6' into mmfphononFrans Englich2009-09-292-20/+89
|\ \ | |/
| * Introduce state machine event priority, make it possible to cancel eventsKent Hansen2009-09-292-20/+89
| | | | | | | | | | | | | | | | | | | | | | | | The priority specifies whether the event should be posted to what the SCXML spec refers to as the "external" (NormalPriority) queue, or the "internal" (HighPriority) queue. Delayed events are now posted through a separate function, postDelayedEvent(). That function returns an id that can be passed to cancelDelayedEvent() to cancel it. Reviewed-by: Eskil Abrahamsen Blomfeldt
* | Merge commit 'qt/4.6' into mmfphononFrans Englich2009-09-2937-326/+303
|\ \ | |/
| * Do synchronous processing of events in state machine if possibleKent Hansen2009-09-292-13/+40
| | | | | | | | | | | | | | | | Avoid delayed scheduling in the cases where there's no need to delay it (e.g. when the state machine intercepts a signal or event). Task-number: QTBUG-4491 Reviewed-by: Eskil Abrahamsen Blomfeldt
| * doc: Describe the semantics of targetless state machine transitionsKent Hansen2009-09-291-0/+4
| |
| * Add the -testability option to Qt applications.Petri Kiiskinen2009-09-291-1/+2
| | | | | | | | | | | | | | | | If this option is given, Qt will load a plugin called "qttestability" and run an initialisation function from it. This allows one to just install the plugin in a non-debug device in order to enable testing. Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
| * I18N: Add new module, fix spelling glitch.Friedemann Kleint2009-09-291-1/+1
| |
| * Revert the new QFSEventsFileSystemWatcherEngine on Mac for now.Alexis Menard2009-09-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | This new QFSEventsFileSystemWatcherEngine was introduced in 4.6 in order to speed up Qt, but we have experienced dead lock and auto-tests regressions (QFilesystemModel). Task-number:QT-2217 Reviewed-by:brad Reviewed-by:denis Reviewed-by:richard
| * Fix qdoc error.Jason McDonald2009-09-291-2/+2
| | | | | | | | Reviewed-by: Trust Me
| * doc: add some more \since 4.6 tagsVolker Hilsheimer2009-09-282-1/+6
| |
| * Removed unused line in QAbstractAnimationLeonardo Sobral Cunha2009-09-281-1/+0
| | | | | | | | | | | | This line was a left-over from commit 86f5a63b018441 Reviewed-by: thierry
| * getMacPreferredLanguageAndCountry: Fix possible crashMarkus Goetz2009-09-281-1/+1
| | | | | | | | | | | | | | | | getMacPreferredLanguageAndCountry can crash when called e.g. as a root user because CFPreferencesCopyValue will return 0. Reviewed-by: denis Task-number: 261664
| * Refactor of timer verification in QAbstractAnimationLeonardo Sobral Cunha2009-09-281-6/+4
| | | | | | | | Reviewed-by: thierry
| * Animations: updateCurrentTime now receives the currentTime as paramaterThierry Bastian2009-09-2810-18/+18
| | | | | | | | Reviewed-by: Leo
| * Make QSignalEvent and QWrappedEvent inner classes of QStateMachineKent Hansen2009-09-288-209/+74
| | | | | | | | | | | | | | | | | | Those two classes are specific to the state machine framework, but their names were so generic that we felt they were polluting the Q-namespace. They are now QStateMachine::SignalEvent and QStateMachine::WrappedEvent. Reviewed-by: Eskil Abrahamsen Blomfeldt
| * Remove doc warning about UpdateSoftKeys.Jason Barron2009-09-281-0/+1
| | | | | | | | | | | | | | | | qdoc was giving attitude about this undocumented event type so mark it as omitted in the documentation. Task-number: QTBUG-4601 Reviewed-by: TrustMe
| * QEventLoop::ExcludeUserInputEvents should not allow the user to close the windowBradley T. Hughes2009-09-281-1/+2
| | | | | | | | | | | | | | | | | | | | These types of input events are not handled by the normal mouse and key event handlers on X11 and Windows. Add special cases for them to make sure that they are not delivered while ExcludeUserInputEvents is set. Task-number: QTBUG-4242 Reviewed-by: Simon Hausmann
| * Fixed qsharedpointer auto test build break for Symbian OS.Janne Anttila2009-09-281-1/+1
| | | | | | | | | | | | | | RVCT has problems with scoping, the similar workaround has been used in qhash.h also. Reviewed-by: Janne Koskinen
| * Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt into 4.6Jeremy Katz2009-09-258-61/+142
| |\
| | * Doc: Added some notes to help people implement custom models.David Boddie2009-09-251-3/+9
| | | | | | | | | | | | Reviewed-by: Trust Me
| | * Replacing QPointer usage with QWeakPointer in statemachineLeonardo Sobral Cunha2009-09-253-7/+7
| | | | | | | | | | | | Reviewed-by: thierry
| | * Merge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6Miikka Heikkinen2009-09-253-31/+112
| | |\
| | | * Fix regressions in qeventloop, qtimer, and qsocketnotifier autotestsBradley T. Hughes2009-09-253-31/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit ed375675d4a4f6fd63edeb242e23c87b3de4be6f triggers a behavior in Glib's mainloop implementation where some event sources are not "serviced" every iteration of the mainloop context. This breaks an invariant that many tests relied on, so we need to solve the problem. The invariant is that a newly added timer that would normally fire on the next pass of the event loop (liker a zero timer) SHOULD actually fire. We do this by registering 2 timer event sources with Glib's mainloop: one normal priority source and one idle priority source. The idle priority source is the one that will send events most of the time, with the normal priority one taking over only when processEvents() is called manually. Task-number: QT-877 Reviewed-by: jbache Reviewed-by: thiago Reviewed-by: denis
| | * | Changed S60 version check to do runtime check also in emulator.Miikka Heikkinen2009-09-251-20/+14
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | S60 version check for emulator was hardcoded, which caused problems for users of our binary packages, which deploy same binaries to all environments. Changed the check to look for platform .sis files also in emulator and use the hardcoded version only as a fallback option for those SDKs that do not provide these files. Task-number: QTBUG-4579 Reviewed-by: axis
| * | QPrintPreviewDialog depends on QMainWindow (qfeatures.txt)Jeremy Katz2009-09-252-2/+2
| |/ | | | | | | Reviewed-by: Paul
| * Change the way we handle KeyboardUIMode on MacBenjamin Poulain2009-09-251-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | On Mac OS X, when the keyboard UI mode specifies "text boxes and lists only", the tab key should only focus lists and text edit. The previous implementation was using the focus policy to exclude the buttons. This does not respect the configuration. The change fixes tst_QApplication::focusChanged() with the Keyboard mode "text boxes and lists only". Reviewed-by: Richard Moe Gustavsen
| * Revert to using Q_CORE_EXPORT to export two assembler functionsIain2009-09-241-5/+2
| | | | | | | | | | | | | | | | It seems the problem is no longer there (maybe it was related to when we used --no_hide_all?), but anyway, it seems to be fine to use Q_CORE_EXPORT so reverted to that. Reviewed-by: axis
* | Merge commit 'qt/4.6' into mmfphononFrans Englich2009-09-2418-47/+63
|\ \ | |/
| * Uninitialised variable fix for qfilesystemwatcher_symbianmread2009-09-241-1/+1
| | | | | | | | | | | | | | The errorCode member was uninitialised, this caused the watcher thread startup to fail. Reviewed-by: Miikka Heikkinen
| * Fix 3.1 build - move unimplemented RFs API to the S60 pluginShane Kearns2009-09-232-3/+12
| | | | | | | | | | | | | | | | | | RFs::GetSystemDrive doesn't exist in 3.1 (even though it is in the symbian documentation). Moved it to a new function in the S60 plugins. For 3.1, it returns EDriveC, for all other versions the RFs API is used Task-number: QT-805 Reviewed-by: Iain
| * Compile fix for platforms prior to Symbian^3.Jason Barron2009-09-231-0/+1
| | | | | | | | | | | | | | | | | | The advanced pointer events are only available on Symbian^3 and higher so we need to make sure these are protected by an #ifdef. We might have to re-factor this later into a plugin in order to get this running on older versions. Reviewed-by: axis
| * Cleaned up input method hints documentation a bit.axis2009-09-231-6/+15
| | | | | | | | | | | | | | - Added missing docs for some flags. - Rearranged the values by type. RevBy: Trust me
| * Added ImhEmailCharactersOnly flag.axis2009-09-231-0/+1
| | | | | | | | RevBy: Trust me
| * Small change in the API of animationsThierry Bastian2009-09-2311-30/+24
| | | | | | | | | | | | | | | | We're not taking a parameter in updateCurrentTime any more because that parameter was the total currenttime. So it was taking into account the currenttime and the currentloop at once. This was inconsistent Reviewed-by: Leo
| * Fix a warning about an unused variable.Jason Barron2009-09-231-1/+1
| | | | | | | | Reviewed-by: TrustMe
| * Fixed parsing of html header in the qtextcodec.Denis Dzyubenko2009-09-231-6/+8
| | | | | | | | | | | | | | The QTextCodec::codecForHtml used to expect http-equiv attribute before the charset attribute in the meta header, which is not always the case. Reviewed-by: Simon Hausmann
* | Merge commit 'qt/4.6' into mmfphononFrans Englich2009-09-23459-8889/+11439
|\ \ | |/ | | | | | | | | | | | | | | | | Conflicts: demos/embedded/fluidlauncher/config_s60/config.xml demos/embedded/fluidlauncher/fluidlauncher.pro src/corelib/io/io.pri src/gui/kernel/qapplication_s60.cpp src/gui/kernel/qwidget_s60.cpp src/s60installs/qt_libs.pro
| * QRingBuffer: Try to minimize memory consumption while it is emptyMarkus Goetz2009-09-231-5/+18
| | | | | | | | | | | | | | | | | | Try not to hold an unused 4k QByteArray. This may introduce a performance regression e.g. for QNetworkReply in exchange for lower memory usage. We will see if this is really the case. Reviewed-by: Thiago
| * Fixed crash in QFileSystemWatcher for addPath(nonExistingFile)gunnar2009-09-221-0/+6
| | | | | | | | Reviewed-by: Eskil
| * fix failing qdir autotestShane Kearns2009-09-221-1/+1
| | | | | | | | | | | | | | | | File engine was adding '/' to the result of QDir::cleanPath(), which is correct for everything except root directories, where it caused a path like "c://" Reviewed-by: axis
| * Fix "... may return wrong private dir if application is on Z:, not C:"Shane Kearns2009-09-221-32/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QT-805 QCoreApplication::applicationDirPath() may return wrong private dir if application is on Z:, not C: Remove the emulator ifdef, instead RFs::Drive is used to get the drive attributes (to see if it is ROM / read only) RFs::SystemDrive is used to get the system drive, which is C: on S60 phones, but in theory configurable. It is not needed to call Open() on RProcess to call functions on the current process - this eliminates some code. Elimated some unneeded code to check for Z: before creating prvate path (now, the if statement would always have evaluated the same) Task-number: QT-805 Reviewed-by: Miikka Heikkinen
| * Fix a possible warning on animations used with statesThierry Bastian2009-09-221-7/+11
| | | | | | | | | | | | The problem is that sometimes timerevents get compressed. So in the unified timer, we need to make sure that some time has passed between 2 ticks.
| * Fix memleak in tst_qhttpnetworkconnectionMarkus Goetz2009-09-221-1/+3
| | | | | | | | Reviewed-by: TrustMe
| * Fixes some warning in headersOlivier Goffart2009-09-222-13/+13
| | | | | | | | | | | | | | | | | | such as margins.h:90: warning: declaration of ???bottom??? shadows a member of _this_" 'a' stands for argument Reviewed-by: jbache