summaryrefslogtreecommitdiffstats
path: root/src/corelib
Commit message (Collapse)AuthorAgeFilesLines
* fix documentation typos in isLowSurrogate and requiresSurrogatesJeremy Katz2011-02-231-2/+2
| | | | Reviewed-by: Trust Me
* QNAM: Threaded HTTP implementationMarkus Goetz2011-02-212-9/+15
| | | | | | | | | | | | | | HTTP requests are run in a separate thread now. This required some big changes in the QNetworkAccessHttpBackend. There is a new class QHttpThreadDelegate which lives in the HTTP thread and is the communication layer between HTTP code and QNetworkAccessHttpBackend. Communication is done via signals/slots. The synchronous HTTP code (private QtWebKit API) also had to be completely re-worked and uses its own thread now. Reviewed-by: Peter Hartmann Task-number: QTBUG-14162
* Add experimental support for armCC on LinuxHarald Fernengel2011-02-112-1/+9
| | | | Reviewed by our Anttis
* Fix reversed conditionOlivier Goffart2011-02-081-1/+1
| | | | Introduced in my previous fix for QTBUG-17257
* Fix warning, unused parametter errorOlivier Goffart2011-02-081-2/+1
| | | | | | Use the Function not implemented error Reviewed-by: Joao
* QMutex: do not use inline mutex in debug.Olivier Goffart2011-02-071-1/+8
| | | | | | | | Debugger tools (such as valgrind) hooks into QMutex::lock and QMutex::unlock. So we should continue to call this function if we want to keep those tools working Reviewed-by: brad
* Fix race condition between QEventLoop::exec and QThread::exitOlivier Goffart2011-02-073-2/+13
| | | | | | | As also mentioned in QTBUG-16692 Reviewed-by: brad Task-number: QTBUG-17257
* Remove QThreadData::mutexOlivier Goffart2011-02-071-2/+0
| | | | | | which does not seem to be used. Reviewed-by: Brad
* Implement QThreadData::current using __threadOlivier Goffart2011-02-031-3/+20
| | | | | | | It slightly faster, and QThreadData::current is used everywhere Reviewed-by: mread Reviewed-by: Joao
* Crash in QFileSystemEngine::canonicalName with older libc versionOlivier Goffart2011-02-021-2/+3
| | | | | | | | | | Crashed on OpenBSD. POSIX.1-2001 says that the behavior if resolved_path is NULL is implementation-defined. POSIX.1-2008 specifies that the it can be NULL Reviewed-By: Markus Goetz
* Fix leak in QFactoryLoaderOlivier Goffart2011-02-021-1/+3
| | | | We need to release the library in case of errors
* Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt into earth-masteraxis2011-01-31482-565/+666
|\
| * Merge branch 'qt-master-from-4.7' of ↵Qt Continuous Integration System2011-01-276-20/+11
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | scm.dev.nokia.troll.no:qt/qt-integration into master-integration * 'qt-master-from-4.7' of scm.dev.nokia.troll.no:qt/qt-integration: (78 commits) Add util/xkbdatagen/README Application background is incorrect if app locked to landscape. QtScript/JSC on Symbian: Enhanced memory allocator for Collector heap Revert "QtScript/JSC on Symbian: Enhanced memory allocator for Collector heap" Temporary fix for ambiguous cast from four letter char constant add autotest for digest authentication Fix cursor position adjustment when removing strings Fix QMAKE_POST_LINK in Symbian for targets with special characters. QtScript/JSC on Symbian: Enhanced memory allocator for Collector heap Improved performance of mapFromGlobal/mapToGlobal on X11 Moved the implementation of mapFromGlobal/mapToGlobal to QWidgetPrivate Avoid possible font name collisions on fbserv Update of Czech translation for Qt 4.7-stable Fix crash in QtScript/JSC stack allocator on Symbian HTTP: fix digest authentication Fix loop count in animanted gifs sometimes being incorrect Fixed UTF-8 application names in device application menu in Symbian Validate arguments to QDBusConnection::connect make the test a bit stricter ignore the warning from auto-detach in destructor ...
| | * Merge remote branch 'origin/4.7' into qt-master-from-4.7Olivier Goffart2011-01-256-20/+11
| | |\ | | | | | | | | | | | | | | | | | | | | Conflicts: configure src/network/bearer/bearer.pri
| | | * get rid of extra calls to handle()Ritt Konstantin2011-01-211-9/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in create(), handle() is called a few lines early; in attach(), QSharedMemory::attach() calls handle() as a preparation step; in detach(), well, if we're here, unix_key is valid anyways... Merge-request: 1018 Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
| | | * simplify QSharedMemory::detach()Ritt Konstantin2011-01-213-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | de-init members in the QSharedMemoryPrivate::detach() like in code for symbian. this gains a lightly better control in case of errors on detach() Merge-request: 1018 Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
| | | * avoid extra calculationsRitt Konstantin2011-01-212-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QSystemSemaphore::setKey() sets the fileName member to makeKeyFileName()'s result; no need to call it again Merge-request: 1018 Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
| | | * fix error reporting on detach()Ritt Konstantin2011-01-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | before, we returned too early :) Merge-request: 1018 Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
| | | * fix error reportingRitt Konstantin2011-01-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | that was mistakenly broken by 570e7b38487455d394b5b74a59edc639f3dc416f Merge-request: 1018 Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
| | | * Revert "Add a warning about trying to release a timer ID that isn't active"Olivier Goffart2011-01-171-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit e1955231478df8990cf8b1f80438abf957c5d6f2. Revert it in Qt 4.7 because the warning is triggered a lot by Qt itself They are going to be fixed in master. Reviewed-by: Thierry Task-number: QTBUG-16175
| * | | Make sure QStateMachine stops when it's told toKent Hansen2011-01-261-2/+5
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If QStateMachine::stop() was called by an event test or while transitioning to another state, the state machine could end up in an inconsistent internal state (stop==true, but the stopped() signal was not emitted). This also caused the machine to behave incorrectly if it was then restarted (it would immediately stop upon receiving the first event). Solution: Move the stop-handling after the event processing loop, so that it always takes precedence over other possible reasons for exiting the loop (event queues exhausted, final state entered). Task-number: QTBUG-16463 Reviewed-by: Eskil Abrahamsen Blomfeldt
| * | Allow hard-coding the Unix temp pathHarald Fernengel2011-01-191-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This came as a requirement from a device manufacturer that couldn't agree whether tmp is /var/tmp or /tmp, which lead to all kinds of side effects. QSharedMemory token generation was broken depending on where TMPDIR pointed to. This patch allows hard-coding a Qt-wide temp-dir in qplatformdefs. Reviewed-by: Robert Griebl
| * | qRound: do not do operation with double when qreal is floatOlivier Goffart2011-01-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | 0.5 is double a literal, and they force computation on double while it would be more optimized on qreal if qreal is a float Task-number: QTBUG-16673 Reviewed-by: Thierry
| * | Fix the warnings when QBasicTimer are member of the ObjectPrivateOlivier Goffart2011-01-171-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a class has QBasicTimer as member of a derived class QObjectPrivate, the QBasicTimer will be destroyed after the timer has been cleaned. The QBasicTimer will stop the timer in its destructor. But that means that the same timer will be stoped twice, leading to ugly bugs. Reviewed-by: Thiago Reviewed-by: Brad Task-number: QTBUG-16558 Task-number: QTBUG-16175
| * | Merge remote branch 'origin/4.7' into qt-master-from-4.7Olivier Goffart2011-01-17480-498/+586
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: examples/webkit/imageanalyzer/imageanalyzer.h examples/webkit/imageanalyzer/mainwindow.h mkspecs/unsupported/qws/linux-x86-openkode-g++/qplatformdefs.h src/corelib/io/qfsfileengine_iterator_unix.cpp src/corelib/io/qfsfileengine_iterator_win.cpp src/corelib/kernel/qcoreapplication.cpp src/network/access/qnetworkaccessdatabackend.cpp src/plugins/bearer/connman/qconnmanservice_linux.cpp src/plugins/platforms/openvglite/qwindowsurface_vglite.h src/s60installs/bwins/QtCoreu.def src/s60installs/eabi/QtCoreu.def src/s60installs/s60installs.pro tools/assistant/tools/assistant/helpviewer_qwv.h tools/qdoc3/test/qt-html-templates.qdocconf
| | * Fix QSystemSemaphore handle management issues in SymbianMiikka Heikkinen2011-01-131-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QSystemSemaphore native RSemaphore handle was unnecessarily created again on each acquire. The creation logic was also susceptible for random failures when two or more threads tried simultaneously acquire the semaphore. Task-number: QTBUG-16615 Reviewed-by: Janne Koskinen
| | * Allow use of command line parameters with RApaLsSession::StartApp.Miikka Heikkinen2011-01-113-8/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a Symbian application is launched using RApaLsSession::StartApp, command line parameters can be given with CApaCommandLine::SetTailEndL and will now be correctly interpreted by Qt applications as command line parameters. There are a couple of limitations: 1) The parameters given with CApaCommandLine::SetTailEndL will not be available in main method's argv array; they can be accessed via QCoreApplication::arguments function. 2) CApaCommandLine::SetTailEndL does support any arbitrary binary data as parameter, but only 8-bit string data gets parsed properly into QCoreApplication::arguments. For other kind of tail data, you need to subclass QS60MainAppUi and implement ProcessCommandParametersL callback. Task-number: QTBUG-15987 Reviewed-by: axis
| | * QTextCodec::codecForMib: actually use the cacheOlivier Goffart2011-01-111-1/+4
| | | | | | | | | | | | | | | | | | Was removed by mistake in commit 02aecce59cb76ceb88f635203553 Reviewed-by: Peter Hartmann
| | * Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into ↵Qt Continuous Integration System2011-01-10482-485/+485
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4.7-integration * '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1: QFont/Windows: restrict the pixel size accuracy Update copyright year to 2011. For non-developer builds, skip test that requires private API tst_qhttpnetworkconnection: Compile fix Change QHostInfoCache to use QElapsedTime instead of QTime. Fix for qtdemo bug
| | | * Update copyright year to 2011.Jason McDonald2011-01-10482-485/+485
| | | | | | | | | | | | | | | | Reviewed-by: Trust Me
| | * | Fix handle leak in symbian QTimer implementationShane Kearns2011-01-101-2/+4
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The timer handle was only being closed when a timer was cancelled, which resulted in a leak for one shot timers that have completed normally. Instead the timer is now closed in a destructor (closing null handles is safe, so it doesn't matter if the handle was never created - e.g. in the case of a zero timer) Also added a handle check before creating a timer to prevent a leak in case the start function is called twice in the backend. Task-number: QTBUG-16380 Reviewed-by: mread
| * | QProcessManager: minor optimizationRitt Konstantin2011-01-111-10/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | QHash is slightly faster than QMap and should be preferred where the key order has no meaning; take() is faster than value() + remove() Reviewed-by: Olivier Goffart Merge-request: 1017
| * | fix warning "'SeedStorage* randTLS()' defined but not used"Konstantin Ritt2011-01-111-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | by setting the proper macro-guards; regroup macro-guards for better readability (superfluous change, I know); fix typos in the comments was not splited into two commits to make it more clear why and how that warning is fixed now Merge-request: 955 Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
| * | remove unused header includeRitt Konstantin2011-01-111-3/+1
| | | | | | | | | | | | | | | | | | | | | sysV shm isn't used in QSystemSemaphore Merge-request: 998 Reviewed-by: Olivier Goffart
| * | make the modifySemaphore() signal-safe on linuxRitt Konstantin2011-01-111-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | as POSIX man says, if semop() is interrupted by a signal, it shall return -1 and set errno to EINTR. in qcore_unix_p.h, we have EINTR_LOOP helper macro exactly for such cases ;) Task-number: QTBUG-14434 Merge-request: 998 Reviewed-by: Olivier Goffart
| * | deal with utcOffset in a correct wayRitt Konstantin2011-01-111-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | like how we do that for ISO format Reviewed-by: ddenis Merge-request: 2536 Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
| * | handle O_NONBLOCK'ed pipes specific error on write()Ritt Konstantin2011-01-112-5/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | according to the write(2) docs: When write requests greater than {PIPE_BUF} bytes to a pipe that has available space at least 1 byte, if O_NONBLOCK is set, write transfers what it can and returns the number of bytes written. When write requests of {PIPE_BUF} or less bytes to a pipe that has no enough space, or write requests for greater than {PIPE_BUF} bytes to a pipe that has no space, if O_NONBLOCK is set, write returns -1 and sets errno to EAGAIN. Merge-request: 997 Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
| * | move POSIX-specific debug to qprocess_unix.cppRitt Konstantin2011-01-112-3/+2
| | | | | | | | | | | | | | | Merge-request: 997 Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
| * | Fix reversed condition introduced in 9a6cfc07e5João Abecasis2011-01-101-1/+1
| | | | | | | | | | | | Reviewed-by: Bradley T. Hughes
| * | Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into ↵Qt Continuous Integration System2011-01-082-2/+9
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | master-integration * 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1: Add /DYNAMICBASE /NXCOMPAT to linker options in Visual Studio 2005 and higher Fix compilation error on Solaris Check elapsed time only once
| | * | Fix compilation error on SolarisJoão Abecasis2011-01-071-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d_type in dirent is a non-standard extension to POSIX available on some platforms (namely BSDs, Mac, Linux, Symbian). Taking the conservative approach and using this information only on platforms known to support it. Reviewed-by: Shane Kearns
| | * | Check elapsed time only onceJoão Abecasis2011-01-071-2/+3
| | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-16262 Reviewed-by: Bradley T. Hughes
| * | | Merge branch 4.7 into qt-master-from-4.7Qt Continuous Integration System2011-01-071-0/+1
| |\ \ \ | | |/ / | |/| / | | |/
| | * QUrl::setUrl should call detachOlivier Goffart2011-01-061-0/+1
| | | | | | | | | | | | | | | | | | Task-number: QTBUG-16425 Reviewed-by: Gabriel Reviewed-by: Markus Goetz
* | | Fix warning in sun compilerOlivier Goffart2011-01-281-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | Warning, nullref: Initializing const myClass& to a NULL value. Patch inspired by the one in QTBUG-16755 Task-number: QTBUG-16755
* | | Fix GCC compiler warningShane Kearns2011-01-271-1/+1
| | |
* | | Add QScopedValueRollback tools class.Shane Kearns2011-01-263-3/+169
| | | | | | | | | | | | | | | | | | | | | | | | | | | This template allows a value to be automatically rolled back to a previous state when the class goes out of scope. This can be used to maintain a valid state when an exception is thrown. Reviewed-by: mread Reviewed-by: joao
* | | Fix for using search paths with a dirty pathShane Kearns2011-01-121-1/+1
|/ / | | | | | | | | | | Opening "searchpath:/file" and other non clean paths was failing Reviewed-by: joao
* | Merge branch 'earth/file-engine-refactor' of ↵Qt Continuous Integration System2010-12-306-12/+277
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | scm.dev.nokia.troll.no:qt/qt-file-engines-refactor into master-integration * 'earth/file-engine-refactor' of scm.dev.nokia.troll.no:qt/qt-file-engines-refactor: Fix qfile test crash with glibc Fix qfile test errors Update def files Add autotests for AutoCloseHandle / DontCloseHandle and RFile adoption QFile API: add API to specify if adopted file handles should be closed
| * \ Merge branch 'earth/file-engine-refactor' of ↵Qt Continuous Integration System2010-12-246-12/+277
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | scm.dev.nokia.troll.no:qt/qt-file-engines-refactor into master-integration * 'earth/file-engine-refactor' of scm.dev.nokia.troll.no:qt/qt-file-engines-refactor: Fix qfile test crash with glibc Fix qfile test errors Update def files Add autotests for AutoCloseHandle / DontCloseHandle and RFile adoption QFile API: add API to specify if adopted file handles should be closed