summaryrefslogtreecommitdiffstats
path: root/src/corelib
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 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
* 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
* 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
* Fixes warnings in QMapOlivier Goffart2009-09-221-5/+4
| | | | | | | | | | Get rid of the pages of warning you get when compiling code that uses QtConcurrent::map for instance. qmap.h:607: warning: dereferencing pointer 'y' does break strict-aliasing rules qmap.h:605: note: initialized from here Reviewed-by: Peter Hartmann
* Merge commit 'origin/4.5' into 4.6Andreas Aardal Hanssen2009-09-221-1/+1
|\ | | | | | | | | | | Conflicts: src/corelib/kernel/qcoreapplication.cpp tests/auto/windowsmobile/test/tst_windowsmobile.cpp
| * QCoreApplicationPrivate::appendApplicationPathToLibraryPaths WinCE fixJoerg Bornemann2009-09-211-1/+1
| | | | | | | | | | | | | | | | | | | | On Windows CE the plugin path is likely to be the same as the application directory. That's why we must not compare app_location with the plugins path. The check app_libpaths->contains(app_location) should be enough. Autotest: tst_QApplication::libraryPaths Reviewed-by: thartman
* | qdoc: Added \brief texts to all the since 4.6 functions.Martin Smith2009-09-213-5/+14
| |
* | Add a new compressable event QEvent::UpdateSoftKeys.Jason Barron2009-09-211-0/+2
| | | | | | | | | | | | | | | | | | | | | | Now that the softkey framework triggers updates on focus changed, window activated, and action added/removed/changed the softkey bar was updating many times resulting in flicker. Solve that by introducing a new event type that is posted to the softkey framework. Since we only need to update the softkeys once per event loop iteration, the event is compressible in the event loop. Reviewed-by: Alessandro Portale
* | System locale on Mac may not return AnyCountry for any language != Ccon2009-09-181-2/+5
| | | | | | | | | | | | Because of QLocale limitations this broke other places. Reviewed-by: Denis Dzyubenko
* | Adding support for symbian graphics resources.Aleksandar Sasha Babic2009-09-181-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This enables us to convert from and to new Symbian type of graphics resource, namely SgImage. This only supported with the OpenVG graphics system. On other graphics systems this will return null QPixmap. Conflicts: src/corelib/global/qglobal.h src/gui/image/qpixmap.h src/gui/image/qpixmap_s60.cpp Reviewed-by: Jason Barron
* | Introduce native Symbian bitmap support to QPixmapJani Hautakangas2009-09-181-0/+1
| | | | | | | | | | | | | | | | | | This is done to reduce heap consumption and to give a possibility to share bitmaps across process. QPixmap maps to Symbian CFbsBitmap which is stored in Symbian font and bitmap server. Reviewed-by: Jason Barron
* | Add a new wildcard mode similar to bash in QRegExpBenjamin Poulain2009-09-172-18/+85
| | | | | | | | | | | | | | | | | | | | | | It is not possible to escape a wildcard character in the Wildcard mode of QRegExp. This follows the kind of wildcard of the CLI of Windows The new WildCardUnix follows the escaping of a unix's bash. Task-number: 241346 Reviewed-by: Olivier Goffart Reviewed-by: Matthew Cattell
* | have make_qfeatures_dot_h use QTSRCDIR if defined, update qfeatures.hJeremy Katz2009-09-161-5/+5
| | | | | | | | Reviewed-by: Paul
* | QGlobal: fix Windows error reportingPeter Hartmann2009-09-161-1/+1
| | | | | | | | | | | | | | before, we did not retrieve the detailed error message correctly on Windows. Reviewed-by: Joao
* | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6Shane Kearns2009-09-165-23/+22
|\ \
| * | Put back the declarativeData into its union so it doesn't take memoryOlivier Goffart2009-09-161-2/+4
| | | | | | | | | | | | | | | | | | As it was in commit 025dcc2bb Reviewed-by: Thiago
| * | Move QGuard to the ExtraDataOlivier Goffart2009-09-162-15/+15
| | | | | | | | | | | | | | | | | | | | | not every QObject need a pointer to the QGuard while none of them will usually use it (it is private API) Reviewed-by: Thiago
| * | Document that errors from flush are ignored in QFile::close()João Abecasis2009-09-161-1/+1
| | | | | | | | | | | | Reviewed-by: Andy Shaw
| * | doc: Fixed some qdoc errors.Martin Smith2009-09-162-5/+2
| | |
* | | Fix QTimer overflow with interval > 35 minutes on symbianShane Kearns2009-09-162-5/+30
|/ / | | | | | | | | | | | | | | For long intervals, restart the system timer every 2000 seconds New autotest to verify long timers don't crash or complete immediately Task-number: QT-651 Reviewed-by: axis
* | Hide getStaticMetaObject() on platforms without Q_NO_DATA_RELOCATIONShane Kearns2009-09-161-2/+8
| | | | | | | | | | | | | | | | | | getStaticMetaObject() is a workaround for linkage problems on symbian platform, so it does not exist on other platforms. This change makes the forward declaration inside Q_OBJECT only present when Q_NO_DATA_RELOCATION is defined Reviewed-by: axis
* | doc: Fixed some qdoc errors.Martin Smith2009-09-161-1/+1
| |
* | I don't think this was intentional...João Abecasis2009-09-152-2/+0
| | | | | | | | | | | | Wonder how it survived for so long. Reviewed-by: Peter Hartmann
* | QCursor support for Symbian OSShane Kearns2009-09-153-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-By: Jason Barron Reviewed-By: Alessandro Portale Summary: QT_NO_CURSOR is now not defined for symbian builds Existing QCursor APIs are all supported New public API, QApplication::setNavigationMode, to allow the navigation mode to be set. I.E. on an S60 3.2 phone, some applications will want a virtual mouse cursor (web browser), while others are designed for keypad navigation. Symbian HAL is used for detecting input capabilities. Fix DND, code cleanup & comment QCursor visibility now uses a refcount, and is called from DND and the setNavigationMode so they are both simpler and don't interfere with each other. QApplication::setNavigationMode New public API for configuring cursor/keypad navi style. This links in with ongoing work on the 4-way keypad navi branch, but 2-way and 4-way modes both act as 2-way mode until that is integrated Some of the demos/examples have cursor switched on (those that were not usable with keypad) Virtual mouse support for non touch, non mouse phones (tested on N78) add *.d and .metadata (carbide debug file / workspace dir) to .gitignore System pointers are unavailable when using sprite workaround, so the system cursor shapes are compiled into qtgui as resources. MAC port does this also for shapes that aren't standard on the MAC. Refactor Drag'n'Drop to use QCursor Add test case to check all system cursor shapes Simply a mainwindow containing a label widget for each cursor shape, with the cursor property set appropriately QCursor(QBitmap,QBitmap) supported Fixed problem with the image & mask being inverted when using the QCursor constructor that takes two mono bitmaps. add .make.cache files to .gitignore Correct implementation of QApplication::setOverrideCursor QApplication::restoreOverrideCursor and QApplication::setOverrideCursor are now working correctly on Symbian platform. Performance will be slower compared with other platforms, because the Symbian window server has a cursor associated with each native window. Add test case for custom cursors Create a pixmap cursor and associate it with a widget. No changes to production code, since test passed 1st time ;) Add manual test for QCursor Make cursor independent of construction order Updated to work around window server issue where contruction order affects what cursor is displayed in child windows. Also changed to effectiveWinId following review comments Also fixed a problem which would make qcursor not link if configured with QT_NO_CURSOR Moved some multiply declared extern functions from cpp to _p.h files Implemented Symbian versions of the cursor functions. Merged in work I'd done based on tower. Fill in bits of stub functions based on windows port Removed QT_NO_CURSOR from list of config options forced on symbian Recompiled configure.exe Added stub functions for the missing functions in s60 port
* | Fix ambiguous overload for QTileRules constructorOlivier Goffart2009-09-151-0/+2
| | | | | | | | | | | | Also fix the relations in the documentation Reviewed-by: David Boddie
* | System locale on Mac returns preferred language/country from sys prefs.con2009-09-141-5/+29
| | | | | | | | | | | | | | Previously it always returned the C locale's language, which is of not much help for an application. Reviewed-by: Morten Sorvig <msorvig@trolltech.com>
* | Merge branch '4.5' of scm.dev.nokia.troll.no:qt/qt into 4.6Simon Hausmann2009-09-141-1/+1
|\ \ | |/
| * Fix libiconv support on FreeBSD.Raphael Kubo da Costa2009-09-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For some reason iconv support was broken in Qt 4.5 on FreeBSD, and this patch was made to fix that. Original patch by Max Brazhnikov <makc@freebsd.org>. Original message: Enable libiconv support. Didn't get where the real problem is, but using UTF-16LE/BE as default encoding (see patch) fixes the issue. Merge-request: 1480 Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
| * Update license headers again.Jason McDonald2009-09-08367-1468/+1468
| | | | | | | | Reviewed-by: Trust Me
* | Fix -Wconversion warnings where possible.David Faure2009-09-1310-45/+45
| | | | | | | | | | | | | | | | | | | | | | | | In order to detect "int foo = myQReal" mistakes, one needs to compile with -Wconversion. However that flag triggers many warnings inside Qt. This commit fixes many of them, like qchar.h:295: warning: conversion to 'ushort' from 'unsigned int' may alter its value qglobal.h:1026: warning: conversion to 'qreal' from 'qint64' may alter its value qbytearray.h:441: warning: conversion to 'char' from 'int' may alter its value Other warnings remain (such as those coming from bitfields) Merge-request: 1460 Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
* | Do not make Mac-specific checks on FreeBSD.Raphael Kubo da Costa2009-09-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Commit 098be4ff adds a check for MAC_OS_X_VERSION_MAX_ALLOWED and MAC_OS_X_VERSION_10_5, which do not exist on FreeBSD. Therefore, both evaluate to 0 and a Mac-specific header ends up included. This commit properly verifies that Q_OS_MAC is defined before performing that check. Merge-request: 1477 Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
* | Compile fix for windowsRobert Griebl2009-09-111-1/+1
| | | | | | | | Reviewed-by: TrustMe
* | Out of memory fix for qUncompressRobert Griebl2009-09-112-21/+34
| | | | | | | | | | | | | | | | | | | | | | qUncompress shouldn't crash when running out of memory, since it might deal with buffers which are not under user control (same behavior as Qt 4.5). It will however throw a std::bad_alloc exception if Qt is compiled with exception handling. Reviewed-by: Harald Fernengel Reviewed-by: Ralf Engels Reviewed-by: Lars Knoll
* | small optimization for variant handling in animationsThierry Bastian2009-09-111-3/+9
| | | | | | | | Just one test less
* | animations now display a warning if they don't have a end valueThierry Bastian2009-09-111-2/+2
| | | | | | | | also improved the autotests