summaryrefslogtreecommitdiffstats
path: root/src/corelib
Commit message (Collapse)AuthorAgeFilesLines
* Fixed QFile::copy/rename fail after initial failed attemptJoão Abecasis2009-04-301-0/+3
| | | | | | | | | | | | | These functions were checking the error state after calling close(), without first resetting the error state. Turns out close() only resets the error state if isOpen() returns false. Also, the fallback for the copy operation opens the file for reading but wasn't closing it again afterwards. Now fixed. Added autotests to cover these situations. Reviewed-by: MariusSO
* Add qDrawBorderPixmap() function, Qt::TileRules enum, QMargins struct and ↵Marius Bugge Monsen2009-04-291-0/+6
| | | | | | | | | QTileRules struct. Implements a function to allow drawing CSS3-like border-images (also known as nine-grid images). Next step will be to convert the CSS-style code to use this function for drawing border-images. Task-number: none Reviewed-by: jbache
* introduce Q_WS_WINCEMaurice Kalinowski2009-04-291-1/+6
| | | | | | | | | | | Task-number: 246130 Reviewed-by: joerg Introduce Q_WS_WINCE for Windows CE only windowing parts. So far we decided to stick with Q_WS_WIN32, but having a separate define makes the code more readable. In addition Q_WS_WINCE_WM is available for Windows Mobile only parts, where we do not check for the OS on runtime.
* Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qtSimon Hausmann2009-04-291-2/+9
|\
| * performance improvement of isUncRoot in qfsfileengine_win.cppJoerg Bornemann2009-04-281-2/+9
| | | | | | | | | | | | | | We always called QStringList::split in this function, which was just expensive. Reviewed-by: mauricek
* | Compile Warnings removed in canConvertThierry Bastian2009-04-281-2/+3
| | | | | | | | | | | | | | | | These were caused by a comparison between QVariant::Type and QMetaType::Type. We're using QMetaType::Float because QVariant have no such Float value Reviewed-by: denis
* | Fixed to float support in QVariantThierry Bastian2009-04-271-25/+33
| | | | | | | | also added autotests
* | Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qtSimon Hausmann2009-04-242-5/+2
|\ \ | |/
| * Return the correct MIB number for TSCII. When the code wasFrans Englich2009-04-241-2/+1
| | | | | | | | | | | | | | | | | | | | | | written, IANA hadn't assigned one. Requested/spotted by Nokia i18n team. Task-number: 251790 Reviewed-by: Brad Reviewed-by: Denis AutoTest: In this submit.
| * Alias for QUtf16Codec is wrong.Frans Englich2009-04-241-3/+1
| | | | | | | | | | | | | | | | Requested/spotted by Nokia i18n team/Darpan. Task-number: 252102 Reviewed-by: Denis AutoTest: In this submit.
| * Change Qt version number to 4.5.2Thiago Macieira2009-04-241-2/+2
| | | | | | | | Reviewed-By: TrustMe
* | Remove the Direct3D engine.Gunnar Sletta2009-04-241-8/+7
| |
* | Merge branch '4.5'Thiago Macieira2009-04-232-2/+8
|\ \ | |/ | | | | | | Conflicts: tests/auto/qaction/tst_qaction.cpp
| * Fixes for QByteArrayMatcherJoão Abecasis2009-04-232-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Copy constructor and assignment operator lose data: pointer to content and the length of content also need to be copied over. QByteArrayMatcher::pattern() would return a null byte array if instance was initialized with c-string. Changed default constructor to explicitly initialize pattern length to zero. The bug in the assignment operator is a regression against 4.4.3. Task-number: 251958 Reviewed-by: MariusSO Reviewed-by: paul
* | Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qtSimon Hausmann2009-04-234-6/+8
|\ \ | |/
| * Allow QThread to start a QTimer and QEventLoop before QCoreApplication is ↵Bradley T. Hughes2009-04-234-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | constructed Fix a regression from 4.3 to 4.4 that prevented QThread from starting timers and event loops before QCoreApplication was instantiated. Even though this is documented not to work, it seems that people have been relying on it. This reverts commit e52e5acdfa198cd079bbfe3a9302debf46c7cadd which attempted to work around not calling g_thread_init() multiple times. The proper fix is to serialize the g_thread_supported() checks in the Glib event dispatcher. Task-number: 248191 Reviewed-by: denis
* | Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qtSimon Hausmann2009-04-232-11/+12
|\ \ | |/ | | | | | | | | | | Conflicts: src/corelib/global/qfeatures.h src/gui/painting/qtransform.cpp util/scripts/make_qfeatures_dot_h
| * Doc fixesJoão Abecasis2009-04-221-0/+1
| | | | | | | | Reviewed-by: Thiago
| * Make make_qfeatures_dot_h script generate the current copyright header.Jason McDonald2009-04-221-27/+27
| | | | | | | | | | | | | | Update the script, and update the generated file. Reviewed-by: Thiago Reviewed-by: Paul Olav Tvete
* | Merge branch '4.5'Thiago Macieira2009-04-202-4/+4
|\ \ | |/ | | | | | | Conflicts: tests/auto/qaction/tst_qaction.cpp
| * don't detach in qHash()Lars Knoll2009-04-201-2/+2
| | | | | | | | Signed-off-by: Thiago Macieira <thiago.macieira@nokia.com>
| * Unable to build ActiveQt with Opensource edition.Prasanth Ullattil2009-04-201-2/+2
| | | | | | | | | | | | | | Updated the project files and headers necessary for enabling this. Reviewed-by: Thiago Macieira Reviewed-by: Jens Bache-Wiig
* | Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qtSimon Hausmann2009-04-201-127/+137
|\ \ | |/ | | | | | | Conflicts: src/gui/itemviews/qheaderview_p.h
| * Make temporary files close-on-execOswald Buddenhagen2009-04-181-0/+11
| | | | | | | | Reviewed-By: thiago
| * sanitize whitespace & parenthesesOswald Buddenhagen2009-04-181-128/+127
| |
* | Merge commit 'remotes/tb-optim/qvariant-optimizations'Thierry Bastian2009-04-173-60/+88
|\ \
| * | make construction for known type fasterThierry Bastian2009-03-312-23/+34
| | | | | | | | | | | | There is one less test thanks to usage of reference instead of pointers
| * | make the float constructor inline (improves construction/destruction ↵Thierry Bastian2009-03-312-3/+1
| | | | | | | | | | | | performance by 20%)
| * | small change wrt to destruction (patch suggested by ogoffart)Thierry Bastian2009-03-311-5/+9
| | |
| * | add proper support for floats to QVariantThierry Bastian2009-03-262-7/+21
| | |
| * | Improved qVariantSetValue by reusing the internals if possibleThierry Bastian2009-03-261-1/+12
| | | | | | | | | | | | | | | This is possible if the type is the same of type < Char (simple types)
| * | small simplification in internals of QVariantThierry Bastian2009-03-261-25/+4
| | | | | | | | | | | | constDataHelper dones't need to know about the type if the variant
| * | Added template to the private classes to avoid double allocation in QVariantThierry Bastian2009-03-261-7/+18
| | |
| * | Avoids calling function pointer in constructor of QVariantThierry Bastian2009-03-261-23/+23
| | | | | | | | | | | | Instead, it calls directly the v_construct template function.
* | | Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qtSimon Hausmann2009-04-172-5/+5
|\ \ \ | | |/ | |/| | | | | | | Conflicts: tests/auto/qpainterpath/tst_qpainterpath.cpp
| * | fix reading problem on 64-bit machines in QProcess and socket enginePeter Hartmann2009-04-162-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QProcessPrivate and QNativeSocketEnginePrivate were reporting a wrong number of bytes available on 64-bit machines, due to use of size_t in ioctl. That was required by Irix, which we dropped support for, so we can also drop size_t Reviewed-by: Thiago Task-number: 249537
| * | Silence warning about unused static function on WindowsJoão Abecasis2009-04-151-0/+2
| | | | | | | | | | | | Reviewed-by: mariusSO
| * | Doc - clarified that on Windows, for 32-bit programs running in WOW64Kavindra Devi Palaraja2009-04-151-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | mode, the settings are stored in HKEY_LOCAL_MACHINE\Software\WOW6432node. Task-number: 232011 Reviewed-by: Martin Petersson <martin.petersson@trolltech.com>
| * | BT: Fix Cocoa bug w/OpenGL widgets in dock widgets would disappear.Norwegian Rock Cat2009-04-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The NSOpenGLContext seems to be tied to the window. So if the view changes from one window to another, the OpenGL context needs to be cleared. We can do this by hooking into the viewWillChangeWindow and viewDidChangeWindow events and clear and reset the drawable respectively. We also found out that QCocoaOpenGLView was not being used at all, so just remove it to get rid of any confusion. Task-number: 250066 Reviewed-by: Trond
* | | Condense this code into one single case. Avoid duplicating code.Thiago Macieira2009-04-161-11/+6
| | | | | | | | | | | | | | | | | | Just because I can. Reviewed-by: Bradley T. Hughes
* | | Fixes: Faster string-splitting in QResource::findNode()Gunnar Sletta2009-04-161-7/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | RevBy: Samuel Details: Creating the intermediate stringlist and appending all the temporary strings to it costs quite a bit. Fix this by introducing a StringSpliter class that is malloc-free and uses QStringRef instead. Found during S60 Performance week
* | | Fixes: Make QDir::cleanPath() slightly faster, by avoiding some detach calls..Gunnar Sletta2009-04-161-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | RevBy: Samuel Details: We have the size of the array and we don't realloc, so we can use direct pointer access. This saves us a few detach() calls and some refcount checking in the inner loops... Found during S60 Performance week...
* | | Fixes: Speed up QFileInfo::setFile() a bit...Gunnar Sletta2009-04-161-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | RevBy: Samuel Details: When doing initFileEngine on a operational QFileInfo, it will detach(), which creates copy of the file engine, then we delete this engine and create our own engine. Creating a clean QFileInfo, saves us one temporary file engine..
* | | Experimental fix for speeding up QResource::name()...Gunnar Sletta2009-04-161-2/+8
| | |
* | | Reduce the number of calls to cleanPath() in QResourceRoot::findNodeSamuel Rødal2009-04-161-8/+16
| | | | | | | | | | | | | | | | | | | | | Move the cleanPath call out of the function and outside the loops to avoid doing the same work over and over. Reviewed-by: Gunnar Sletta
* | | Silence warning about unused static function on WindowsJoão Abecasis2009-04-151-0/+2
| | | | | | | | | | | | Reviewed-by: mariusSO
* | | Doc - clarified that on Windows, for 32-bit programs running in WOW64Kavindra Devi Palaraja2009-04-151-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | mode, the settings are stored in HKEY_LOCAL_MACHINE\Software\WOW6432node. Task-number: 232011 Reviewed-by: Martin Petersson <martin.petersson@trolltech.com>
* | | BT: Fix Cocoa bug w/OpenGL widgets in dock widgets would disappear.Norwegian Rock Cat2009-04-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The NSOpenGLContext seems to be tied to the window. So if the view changes from one window to another, the OpenGL context needs to be cleared. We can do this by hooking into the viewWillChangeWindow and viewDidChangeWindow events and clear and reset the drawable respectively. We also found out that QCocoaOpenGLView was not being used at all, so just remove it to get rid of any confusion. Task-number: 250066 Reviewed-by: Trond
* | | Introduce QPointF::manhattanLengthGunnar Sletta2009-04-152-0/+15
| | | | | | | | | | | | Task-number: 251068
* | | Merge commit 'origin/4.5'Olivier Goffart2009-04-154-24/+33
|\ \ \ | |/ / | | | | | | | | | Conflicts: src/gui/graphicsview/qgraphicsitem.cpp