summaryrefslogtreecommitdiffstats
path: root/src/corelib
Commit message (Collapse)AuthorAgeFilesLines
* Build fix for mingwThierry Bastian2009-07-146-11/+12
| | | | | we should include qt_windows.h and not windows.h because we have to define WINVER to 0x500.
* doc: Use \inheaderfile to show which include file to include.Martin Smith2009-07-131-1/+1
| | | | | | | Letting qdoc output it automatically produces the wrong header file name. Task-number: 217268 210171 220664
* QTreeView: now dragging lots of items is fastThierry Bastian2009-07-133-4/+4
|
* Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtDavid Boddie2009-07-1312-64/+89
|\
| * QFlags::testFlag(): handle the zero case appropriately.Frans Englich2009-07-131-1/+1
| | | | | | | | | | | | | | Brought up by Andy. See perforce change 314809, 17b07e3ab6192b31f77fd2f126705b9ab53b3937. Related to task 221708. Reviewed-By: Andy Shaw
| * doc: Clarified what Qt::HANDLE is on Windows.Martin Smith2009-07-131-3/+8
| | | | | | | | Task-number: 193615
| * Revert "Fixed leak of plugin instances"João Abecasis2009-07-131-18/+1
| | | | | | | | | | | | | | | | | | | | | | | | mjansen reported on #qt-labs that this change crashes KDE applications that were calling delete on their plugins. It turns out that is also how QPluginLoader works, so the commit was a bad idea to start with. This reverts commit 4c7004122a858cd6d891efc7923ba11484fbf997. Reviewed-by: Thiago Macieira
| * fix warning in qstringbuilder.h by using QLatin1Charhjk2009-07-131-1/+1
| | | | | | | | Reviewed-by: Volker Hilsheimer
| * 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>
| * fix the test _and_ the class :)Harald Fernengel2009-07-031-1/+1
| |
| * Add a specialization for QByteArrayHarald Fernengel2009-07-031-0/+12
| | | | | | | | It tries to keep the semantics of QString::append(QByteArray) as much as possible.
| * Fixes a memory corruption when converting data with QIconvCodecDenis Dzyubenko2009-07-091-2/+4
| | | | | | | | | | | | | | This partially reverts 9a5b40a011bd1b15a67d83564af55011761f8ad9 for the QIconvCodec. Reviewed-by: hjk
| * Use 'struct QConcatenable' instead of 'class QConcatenable' tohjk2009-07-091-1/+1
| | | | | | | | make compiler distinguishing both happy.
| * QRingBuffer micro optimizationMarkus Goetz2009-07-091-1/+4
| |
| * Add QT_END_HEADER to fix compile on PowerPC Mac and make autotest pass.Volker Hilsheimer2009-07-091-0/+2
| |
| * Merge commit 'origin/4.5'Bill King2009-07-081-1/+1
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/sql/drivers/ibase/qsql_ibase.cpp tests/auto/q3sqlcursor/tst_q3sqlcursor.cpp tests/auto/qsqldatabase/tst_databases.h tests/auto/qsqldatabase/tst_qsqldatabase.cpp translations/qt_ru.ts
| | * Fix oops in strcmp in QBuffer.Thiago Macieira2009-07-021-1/+1
| | | | | | | | | | | | | | | | | | Reported via qt-bugs. Reviewed-By: Peter Hartmann
| * | QPropertyAnimation: save a Q_GLOBAL_STATICThierry Bastian2009-07-081-10/+8
| | | | | | | | | | | | | | | This is possible because we anyway use a Mutex to access the static hash
* | | Doc: Explicitly declare the module for each namespace to prevent strangeDavid Boddie2009-07-131-0/+1
|/ / | | | | | | | | | | | | omissions when qdoc is used in certain Windows environments. Task-number: 256415 Reviewed-by: Trust Me
* | 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.
* | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtVolker Hilsheimer2009-07-086-2/+26
|\ \
| * | Animations: fix compilation with QT_NO_ANIMATIONThierry Bastian2009-07-086-2/+26
| | |
* | | 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-063-0/+74
| | | | | | | | | | | | | | | | | | | | | | 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
* | doc: Corrected several qdoc warnings.Martin Smith2009-07-031-3/+3
| |
* | 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-023-33/+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.
* | Correct #include path for qcore_unix_p.hThiago Macieira2009-07-021-1/+1
| |
* | 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
* | Fix build with MSVC2003: apparently the code path I thought was Unix was ↵Thiago Macieira2009-07-021-3/+3
| | | | | | | | also older MSVC
* | Revert "Add support for creating the object alongside the Data structure in ↵Thiago Macieira2009-07-021-47/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QSharedPointer" This reverts commit fb51a10ee0451274a430227566ae26efb2ac4474. Sorry, it didn't work. I can fix the MSVC error, but the problem is that older GCC versions (4.2) fail with the following code: template<typename T> struct Buffer { char buffer[128] __attribute__((aligned(__alignof__(T)))); }; The same works fine in GCC 4.4.
* | Experimental: allow QSharedPointer to be used with forward declarations that ↵Thiago Macieira2009-07-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | are declared in this file. The one-definition rule allows the forward declaration appearing below to apply to code that was earlier. Therefore, if the compiler finds out how to delete the object, we can allow a QSharedPointer of a forward- declared-type. This means the actual problem is just a warning with g++. To catch the error, we need a separate .cpp file and I'd rather run this as an external test.
* | Add support for creating the object alongside the Data structure inThiago Macieira2009-07-021-0/+47
| | | | | | | | | | | | | | | | | | one go. This avoids one memory allocation. Currently, we only support calling the default constructors. I will *NOT* implement argument passing for C++03. I will implement it with rvalue references for C++0x-capable compilers.
* | Add qobject_cast for QSharedPointer.Thiago Macieira2009-07-023-0/+110
| | | | | | | | | | | | | | | | | | This obviously only works for classes that derive from QObject. And you must remember that QSharedPointer controls the QObject's lifetime, not the QObject parent-child relationship. Reviewed-by: dt Reviewed-by: Bradley T. Hughes
* | 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-023-43/+159
| | | | | | | | | | | | | | | | 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
* | Port QProcess to use the EINTR-safe and thread-safe functionsThiago Macieira2009-07-021-148/+65
| | | | | | | | Reviewed-By: ossi
* | Use the safe versions in these system calls I've just introduced.Thiago Macieira2009-07-024-16/+21
| | | | | | | | Reviewed-By: ossi
* | Make the inotify_init call also use FD_CLOEXEC-safe version of theThiago Macieira2009-07-021-3/+37
| | | | | | | | | | | | system call Reviewed-By: ossi
* | Port most uses of ::open and QT_OPEN to the safe version.Thiago Macieira2009-07-026-25/+24
| | | | | | | | | | | | | | 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
* | Merge branch '4.5'Thiago Macieira2009-07-022-6693/+6694
|\ \ | |/
| * Fixed the build on Windows after regenerating the unicode tables.Denis Dzyubenko2009-07-011-2/+2
| | | | | | | | Reviewed-by: trustme
| * Regenerated unicode tables after the fix in the generator.Denis Dzyubenko2009-07-012-6693/+6694
| | | | | | | | | | | | | | This is related to the following fix: 70137e0601549af1056082cdfbb4f141c70befab Reviewed-by: trustme