summaryrefslogtreecommitdiffstats
path: root/src/corelib/io
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' of ../master into contiguouscacheIan Walters2009-05-145-147/+734
|\
| * QNonContiguousByteDevice: An wrapper around QByteArray, QIODevice, ...Markus Goetz2009-05-133-0/+733
| | | | | | | | | | | | | | | | | | New private class, needed for the rewrite of the upload side of QNetworkAccessManager. Allows to have a "byte pointer view" on stuff like QRingBuffer, QByteArray, QFile and any QIODevice. Reviewed-by: Thiago Macieira Reviewed-by: Peter Hartmann
| * Remove unused file qfileinfo_p.hMarius Storm-Olsen2009-05-132-146/+0
| | | | | | | | | | | | | | The private class was already declared and defined in the qfileinfo.cpp file. Reviewed-by: thiago
| * Merge commit 'origin/4.5'Olivier Goffart2009-05-131-1/+1
| |\
| | * QFSFileEngine: Fix access to uninitialized memoryJoão Abecasis2009-05-111-1/+1
| | | | | | | | | | | | Reviewed-by: Peter Hartmann
* | | Merge branch 'master' into contiguouscacheIan Walters2009-05-1212-204/+268
|\ \ \ | |/ /
| * | Remove a warning on gcc.Alexis Menard2009-05-111-1/+0
| | | | | | | | | | | | | | | | | | We don't need Q_D if we don't use the d pointer. Reviewed-by:TrustMe
| * | Almost 200 symbols that didn't need to be exported.Thierry Bastian2009-05-111-1/+1
| | |
| * | Merge branch '4.5'Thiago Macieira2009-05-114-33/+32
| |\ \ | | |/
| | * QDataStream: Small doc errorMarkus Goetz2009-05-081-1/+1
| | | | | | | | | | | | | | | Task-number: 253179 Reviewed-by: TrustMe
| | * Fix leak of file descriptors in QTemporaryFileJoão Abecasis2009-05-081-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using setFileName in QFile::copy (introduced recently) has a nasty side-effect of leaking file descriptors in QTemporaryFile. This happens because the code assumes the file has been closed. In QTemporaryFile, we need to explicitly call native file engine close. Test case by Thiago. Bug report from Arora developers. Reviewed-by: thiago
| | * Added further explanation on the note about stdin and QTextsStream::atEnd()Morten Engvoldsen2009-05-081-2/+4
| | | | | | | | | | | | | | | | | | | | | Explained why you cannot use stdin and atEnd() together. Task-number:251171 Rev-by: Andreas Aardal Hanssen
| | * Fixes QDir not reentrantOlivier Goffart2009-05-081-29/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qt_cmp_si_sort_flags could be read and written from different threads. Use qStableSort with functor instead of libc's quicksort. Found with helgrind on kdevelop Reviewed-by: Marius Storm-Olsen
| | * Revert "Added comment to QTextStream - clarification of the documentation"Morten Engvoldsen2009-05-081-2/+1
| | | | | | | | | | | | This reverts commit da1416cef6b1d24156739ded101df895ee4e80d9.
| * | Fixed resetting error mode on Windows on error when stat'ing a file.Denis Dzyubenko2009-05-111-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | We shouldn't return since the SetErrorMode was called and we need to reset it back afterwards. Patch-by: ritt.k Reviewed-by: mauricek
| * | Merge branch '4.5' of git@scm.dev.troll.no:qt/qtSimon Hausmann2009-05-061-1/+2
| |\ \ | | |/ | | | | | | | | | | | | Conflicts: src/gui/kernel/qcocoaview_mac_p.h src/gui/widgets/qmainwindow.cpp
| | * Added comment to QTextStream - clarification of the documentationMorten Engvoldsen2009-05-061-1/+2
| | | | | | | | | | | | | | | | | | Explained why you cannot use QTextStream::atEnd with stdin. Task-number:251171
| * | Use the new QTextCodec::codecForUtfText in qtextstream to detect theDenis Dzyubenko2009-05-041-7/+2
| | | | | | | | | | | | | | | | | | utf encoding by BOM. Reviewed-by: Simon Hausmann
| * | 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
| * | 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
| * | 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 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>
| * | 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>
* | | Various fixes resulting from QA code review.Ian Walters2009-05-121-1/+1
| | | | | | | | | | | | | | | | | | | | | Some documentation fixes. More clear handling of what is and isn't a valid indexes. Added functions for the 'really long lived circular buffer use case' Improved unit tests.
* | | Move qDebug code to correct locationIan Walters2009-04-081-0/+19
|/ /
* | Fixes: QTextStream crashes on large inputsOlivier Goffart2009-04-061-1/+8
| | | | | | | | | | | | | | | | The buffer was only shrinked if we reach exactly the end of it. Reviewed-by: Andreas Reviewed-by: Thiago Task-number: 221316
* | Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qtSimon Hausmann2009-04-021-4/+18
|\ \ | |/ | | | | | | Conflicts: tools/linguist/shared/profileevaluator.cpp
| * Delete temporary file if copy was unsuccessfulJoão Abecasis2009-04-021-1/+4
| | | | | | | | | | | | | | | | | | | | | | This is an untested bugfix -- comes solely from reading the code. In QFile::copy's fallback implementation a (temporary) file is created for block copying from the source file. When Qt is built without temporary file support this doesn't seem to be deleted in case of an error while block copying or renaming to the final destination. Reviewed-by: mariusSO
| * Renaming a file does not change QFile's fileNameJoão Abecasis2009-04-021-0/+5
| | | | | | | | | | | | | | | | | | | | QFile made no attempt to reset the file name on a rename. We now reset the fileEngine's fileName if it was able to handle the rename. Otherwise, we call setFileName, which will result in reallocation of the fileEngine. Task-number: 244485 Reviewed-by: mariusSO
| * QFile::rename didn't always return false when method failedJoão Abecasis2009-04-021-3/+9
| | | | | | | | | | | | | | | | | | The fallback implementation for rename would return true in some situations where the move failed. Also the destination file might be created and left there in these cases. Task-number: 244500 Reviewed-by: mariusSO
* | Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qtSimon Hausmann2009-04-013-29/+45
|\ \ | |/ | | | | | | Conflicts: src/gui/inputmethod/qximinputcontext_x11.cpp
| * Subject: Compile fix on WindowsAndy Shaw2009-03-311-2/+2
| | | | | | | | Reviewed-by: Anders Bakken <anders.bakken@nokia.com>
| * Doc: Made it clearer that QProcess::start() only starts a new process if one ↵David Boddie2009-03-311-9/+16
| | | | | | | | | | | | | | is not already running. Task-number: 231513 Reviewed-by: TrustMe
| * QProcess::start() segfaults on empty programBradley T. Hughes2009-03-311-0/+9
| | | | | | | | | | | | | | | | Handle cases where QProcess::start() and startDetached() are passed a null, empty, or "invalid" program string instead of crashing. Task-number: 247865 Reviewed-by: Andreas Aardal Hanssen
| * Fix bug in QDirIterator that clear the cache of the fileinfoAlexis Menard2009-03-311-17/+17
| | | | | | | | | | | | | | | | We basically store the currentFileInfo and use another one to continue moving into the dir. Task-number: 247645 Reviewed-by: Olivier
| * Doc: Swapping \a with \c to fix a qdoc warningKavindra Devi Palaraja2009-03-301-1/+1
| |
| * Long live Qt 4.5!Lars Knoll2009-03-2366-0/+45048
|
* use ftruncate() to resize a buffered fileHarald Fernengel2009-03-311-0/+2
| | | | | | | | using truncate() on the file name was a bad idea, since the OS had to open it again - on some file systems, this would just error out, so QFile::resize() failed by default. Reviewed-by: Thiago