summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel
Commit message (Collapse)AuthorAgeFilesLines
* Get monotonic time working on Mac OS X for corelib programs.Norwegian Rock Cat2009-07-201-2/+21
| | | | | | | | | | | | | | | | Mac OS X does not provide POSIX monotonic timers. Instead it does provide a Mach call to get the absolute time (a.k.a., number of CPU ticks) for the next timer event. This gets us around the bug in select(2) on Mac, that it doesn't wakeup when the times been changed. Of course, if you used the GUI event dispatcher, which is based on CFRunLoopTimers, this is not an issue, but if you really just need corelib, it's a bear to bring in the other stuff. Thanks to the nice guys at Parallels for the basics of the patch! Task-number: 237384 Reviewed-by: Bradley T. Hughes
* Doc: add \since 4.6 for new APIsVolker Hilsheimer2009-07-191-0/+2
|
* Doc: Added info on QWrappedEvent to QAbstractTransition::eventTest()Geir Vattekar2009-07-171-1/+1
| | | | Reviewed-by: Kent Hansen
* Fix warnings for mingwThierry Bastian2009-07-161-4/+3
|
* Fix (some) spelling and grammatical errors in translatable strings.Volker Hilsheimer2009-07-162-3/+3
| | | | | | | Requires an update of existing translations. Fixes: 247314 Reviewed-by: TrustMe
* Update the license header in a few more placesThiago Macieira2009-07-161-1/+1
|
* Restore the use of threadsafe-fdcloexec calls on weird Linux toolchains.Thiago Macieira2009-07-151-1/+18
| | | | Approach suggested by Rohan on 1866485e46039d51ea78a6d672b678aa02f68eef
* fix warnings for mingw in QtCoreThierry Bastian2009-07-151-2/+2
|
* QTreeView: now dragging lots of items is fastThierry Bastian2009-07-133-4/+4
|
* doc: Clarified that native messages are being handled.Martin Smith2009-07-102-24/+43
| | | | Task-number: 214026
* Fix compilation support with namespaces for QtLibcSupplementThiago Macieira2009-07-101-3/+4
| | | | Reviewed-By: hjk <qtc-committer@nokia.com>
* Define M_PI in qmath.h if not defined by math.h (as is the case on Windows), ↵Volker Hilsheimer2009-07-081-0/+4
| | | | and remove duplicate defines elsewhere.
* Use current license header.Volker Hilsheimer2009-07-081-2/+2
|
* try to fix the accept4 not being found in some older kernelsThiago Macieira2009-07-071-4/+14
|
* general wording change for some file type namesFrederik Schwarzer2009-07-062-2/+2
| | | | | | | | | | | - .ts file -> TS file - .qm file -> QM file - .ui file -> UI file + a handfull of typos I stumbled over Merge-request: 802 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* support for id-based translationsOswald Buddenhagen2009-07-061-0/+6
| | | | | | | | | | | unlike in an earlier attempt, ids are textual this time. the developer is able to provide a template for the string. when lupdate and lrelease are integrated into the build process, this makes it possible to avoid a round-trip to a dedicated string designer during the early development stage. Requirement-id: QT-435
* Fixed compile of QtCore with some exotic GNU toolchains.Rohan McGovern2009-07-031-1/+1
| | | | | | | | | | Fixes: corelib/kernel/qcore_unix_p.h:127: error: `O_CLOEXEC' undeclared Some toolchains claim to provide glibc >= 2.4 but do not define O_CLOEXEC. An alternative fix might be to define O_CLOEXEC ourselves as we do with some of the system call numbers.
* Refactored gesture apiDenis Dzyubenko2009-07-022-4/+2
| | | | | | | | | | | | | | | | Rewritten the api almost from scratch, making it simplier and more flexible at the same time. The current implementation will not have complex gseturemanager class inside Qt, but the QGesture base class, which represents both a gesture recognizer and a gesture itself with a set of properties. A set of common gestures that can use used in third-party applications (and in Qt itself internally) is supposed to be found in qstandardgestures.h, and a base class for user-defined gestures is in qgesture.h Gesture implementation for Pan on Windows7 has also been added as a reference implementation for platform gestures.
* Use void* in the read/write replacementsThiago Macieira2009-07-021-2/+2
| | | | That's what unistd.h uses: void* can receive any pointer, while char* can't
* Use the safe versions of the network system calls I have just added.Thiago Macieira2009-07-022-1/+75
| | | | Reviewed-By: ossi
* Add a properly-safe version of select(2).Thiago Macieira2009-07-022-0/+122
| | | | | | | | Do the timeout handling the right and cross-platform way. The code that was in QProcess worked only on Linux, where the kernel sets the remainder in the returned timeval structure. Reviewed-By: ossi
* Use the safe versions in these system calls I've just introduced.Thiago Macieira2009-07-021-5/+7
| | | | Reviewed-By: ossi
* Port most uses of ::open and QT_OPEN to the safe version.Thiago Macieira2009-07-022-1/+4
| | | | | | | This ensures that we're calling the open64 version of this function as well as handling the O_CLOEXEC flag and EINTR errors. Reviewed-By: João Abecasis
* Add qcore_unix_p.h containing mostly safe versions of Unix functions.Thiago Macieira2009-07-022-0/+247
| | | | | | | | | | | | | | | Most of these functions are from unistd.h and need to have a loop around the actual call because the calls can be interrupted by a signal delivery. Some special calls (open, dup2, pipe) require an extra flag to support thread-safe execution: the file descriptor must be created from the operating system with the FD_CLOEXEC flag already set. The O_CLOEXEC flag is specified in POSIX.1-2008, but the rest is Linux-specific. Reviewed-By: João Abecasis
* Merge branch 'research/qdbus-improvements'Thiago Macieira2009-07-021-5/+18
|\
| * Use an "int status" extra parameter in property reading/writing.Thiago Macieira2009-07-021-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When calling qt_metacall with the ReadProperty or WriteProperty, the data is on argv[0] like it was before, but now the QVariant itself is on argv[1] and there's an extra parameter in argv[2] which the meta code can use to indicate result. This allows QtDBus to process properties much more easily. In the case of property reading, we need to be able to modify the variant itself, because copying types when we don't have the data isn't very easy. As for setting, we need to be able to tell setProperty to return true or false depending on whether we succeeded in setting the property or not. Reviewed-By: Kent Hansen Reviewed-By: Marius Bugge Monsen
* | add support for attaching meta data to translatable messagesOswald Buddenhagen2009-07-021-0/+28
| | | | | | | | Requirement: QT-457
* | src/gui: Remove QT_WA and non-Unicode code paths, dropping Win9x and NT supportminiak2009-07-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Also - Make winPeekMessage() & winPostMessage() obsolete - FlashWindowEx, IsValidLanguageGroup functions no longer resolved dynamically (available on >= Windows 2000) - LoadIcon/LoadCursor -> LoadImage w/LR_SHARED for system icons/cursors - qsystemtrayicon_win: use Shell_NotifyIconGetRect if available (Windows 7) Merge-request: 604 Reviewed-by: Marius Storm-Olsen <marius@trolltech.com>
* | Handle application paths larger than MAX_PATH, and fix potential buffer overflowMarius Storm-Olsen2009-07-012-10/+39
| | | | | | | | | | | | | | | | | | | | | | | | These days we can easily get very long paths, so we should support application paths as long as needed. There was also a potention exploit in that if the path was MAX_PATH or larger, the string would not be \0 terminated (see MSDN docs for GetModuleFileName), and thus cause problems in QString::fromWCharArray(). Merge-request: 604 Reviewed-by: Marius Storm-Olsen <marius@trolltech.com>
* | src/corelib: Remove QT_WA and non-Unicode code paths, dropping Win9x and NT ↵miniak2009-07-019-149/+83
| | | | | | | | | | | | | | | | | | | | | | | | support Also: QString::fromUtf16() -> QString::fromWCharArray() WCHAR & TCHAR -> wchar_t LPTSTR/LPCTSTR -> LPWSTR/LPCWSTR Documentation update Merge-request: 604 Reviewed-by: Marius Storm-Olsen <marius@trolltech.com>
* | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtBradley T. Hughes2009-06-261-1/+1
|\ \
| * | QVariant::setValue had a bug when changing its typeThierry Bastian2009-06-261-1/+1
| | | | | | | | | | | | | | | | | | | | | If it was shared and you then set it back to an int type, it is still marked as shared,. This might even lead to crashes. The patch was sent through gitorious by Jürgen Starek. Note: autotest added as well
* | | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtBradley T. Hughes2009-06-261-1/+7
|\ \ \ | |/ /
| * | Merge branch '4.5'Thiago Macieira2009-06-261-1/+7
| |\ \ | | |/ | | | | | | | | | | | | | | | Conflicts: src/3rdparty/webkit/VERSION src/3rdparty/webkit/WebCore/ChangeLog src/network/access/qnetworkreplyimpl.cpp
| | * make invokable constructors work with classes in namespaceKent Hansen2009-06-251-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the fully qualified classname at relevant places in the moc-generated code. Also, QMetaObject::newInstance() needs to strip the namespace part, since the constructor signatures don't contain the fully qualified name. Task-number: 246064 Reviewed-by: Simon Hausmann
* | | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtBradley T. Hughes2009-06-241-2/+2
|\ \ \ | |/ / | | | | | | | | | Conflicts: src/gui/kernel/qapplication_x11.cpp
| * | doc: Fixed typos.Martin Smith2009-06-231-2/+2
| | | | | | | | | | | | Task-number: 256711
* | | Remove QEvent::RawTouch from the documentationBradley T. Hughes2009-06-221-1/+0
| | | | | | | | | | | | This was removed long ago.
* | | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtBradley T. Hughes2009-06-1773-146/+146
|\ \ \ | |/ / | | | | | | | | | Conflicts: src/gui/graphicsview/qgraphicsscene_p.h
| * | Merge license header changes from 4.5Volker Hilsheimer2009-06-1673-146/+146
| |\ \ | | |/
| | * Update license headers as requested by the marketing department.Jason McDonald2009-06-1673-146/+146
| | | | | | | | | | | | Reviewed-by: Trust Me
* | | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtBradley T. Hughes2009-06-122-3/+15
|\ \ \ | |/ / | | | | | | | | | Conflicts: src/gui/graphicsview/qgraphicsitem_p.h
| * | Set qreal to float for Symbian.Martin Jones2009-06-121-1/+1
| | | | | | | | | | | | Make sure we match the logic in qglobal.h.
| * | Adding support in QVariant for conversions between QUrl and QStringThierry Bastian2009-06-101-2/+14
| | | | | | | | | | | | Reviewed-by: ogoffart
* | | remove duplicated code and API (merge QTouchEvent and QGraphicsSceneTouchEvent)Bradley T. Hughes2009-06-112-8/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | the API for these 2 classes is identical, the implementation is almost identical, they share the same data structures, so bite the bullet and merge them. this means we go back to using screenPos() instead of globalPos() again
* | | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtBradley T. Hughes2009-06-103-1/+33
|\ \ \ | |/ / | | | | | | | | | | | | | | | Conflicts: src/gui/graphicsview/qgraphicsitem.cpp src/gui/graphicsview/qgraphicsitem_p.h src/gui/graphicsview/qgraphicsscene_p.h
| * | Internal documentation for QAbstractItemModelPrivate::canConvertToDoubleOlivier Goffart2009-06-101-1/+15
| | | | | | | | | | | | | | | | | | Also add QMetaType types as list or recognized numerical types Reviewed-by: thierry
| * | Added QAbstractItemModelPrivate::canConvertToDouble().J-P Nurmi2009-06-102-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | And changed QTreeWidgetItem::operator<() and QTableWidgetItem::operator<() to use it Merge-request: 631 Reviewed-by: Olivier Goffart <ogoffart@trolltech.com>
| * | Compile with debug enabledOlivier Goffart2009-06-101-1/+1
| | |
* | | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtBradley T. Hughes2009-06-105-38/+63
|\ \ \ | |/ /