summaryrefslogtreecommitdiffstats
path: root/src/corelib/io
Commit message (Collapse)AuthorAgeFilesLines
* Workaround for transacted, locked and inaccesible filesRitt Konstantin2009-07-201-0/+88
| | | | | | | | | | | wich can not be stat'ed in a natural way. FindFirstFile solves this problem. Task-number: 167099 Task-number: 189202 Merge-request: 880 Reviewed-by: Joerg Bornemann <joerg.bornemann@trolltech.com>
* Merge commit 'origin/4.5'Oswald Buddenhagen2009-07-201-58/+29
|\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/3rdparty/webkit/VERSION src/3rdparty/webkit/WebCore/ChangeLog src/3rdparty/webkit/WebCore/generated/JSDOMWindow.cpp src/3rdparty/webkit/WebCore/page/DOMWindow.idl src/corelib/io/qdiriterator.cpp src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h tests/auto/qxmlquery/tst_qxmlquery.cpp tools/linguist/lconvert/main.cpp
| * QDirIterator: Doc fixes and whitespace cleanupJoão Abecasis2009-07-171-19/+12
| | | | | | | | | | | | There is no QDirIterator::isValid() function. Reviewed-by: David Boddie
| * Refactoring QDirIteratorPrivate::pushSubDirectoryJoão Abecasis2009-07-171-26/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | pushSubDirectory was operating on nextFileInfo when it should really be using the path received as argument. This fixes an issue introduced when currentFilePath variable was removed, that was exposed in the auto-tests; fixes a regression introduced in 4.5.0 -- test case a couple of commits back. This also allows refactoring calling code and avoid repetition. Task-number: 258230 Reviewed-by: Olivier Goffart
| * QDirIterator: reducing "randomness"João Abecasis2009-07-171-10/+3
| | | | | | | | | | | | | | | | | | | | | | | | The difference between a canonical and absolute paths is subtle, and not what QDirIterator is about. With this change, we still avoid loops generated by symbolic links but won't duplicate entries because of these differences. While at it, when avoiding loops with symbolic links, please don't mess with the next path! That only added inconsistency. Reviewed-by: Olivier Goffart
| * QDirIterator was returning inconsistent dataJoão Abecasis2009-07-171-6/+1
| | | | | | | | | | | | | | One less variable to maintain reduces the number of bugs and improves consistency. Reviewed-by: Olivier Goffart
* | Fix warnings for mingwThierry Bastian2009-07-161-1/+2
| |
* | Fix warnings for QtNetwork on mingwThierry Bastian2009-07-151-3/+3
| |
* | Support more than 63 handles in QWindowsFileSystemWatcherdt2009-07-153-181/+304
| | | | | | | | | | | | | | | | | | | | | | | | | | We spawn/stop additional threads as needed to watch any number of files/directories. The old logic of using just one handle per watched directory (regardless of how many files we watch in it.) is preserved. In the worst case a thread is started per 63 files to watch. This enabled Qt Creator to watch all .pro and .pri files even while having qt's projects.pro and qtcreator.pro open. Task-number: 185259, 253014 Reviewed-by: denis
* | fix warnings for mingw in QtCoreThierry Bastian2009-07-151-5/+5
| |
* | outdated comment in qfsfileengine_win.cpp removedJoerg Bornemann2009-07-141-2/+0
| | | | | | | | Reviewed-by: TrustMe
* | large file support for Windows CEJoerg Bornemann2009-07-141-16/+19
| | | | | | | | | | | | | | | | | | Seeking in files above 0x80000000 failed on Windows CE. SetFilePointer was used in the 32 bit version. That means, seeking only worked for positions <= LONG_MAX (which is 0x80000000 - 1). Task-number: 255242 Reviewed-by: mauricek
* | micro optimization in qfsfileengine_win.cppJoerg Bornemann2009-07-141-4/+2
| | | | | | | | | | | | | | Use the LARGE_INTEGER union properly and don't do unnessecary bit shifting. Reviewed-by: mauricek
* | Build fix for mingwThierry Bastian2009-07-141-1/+1
| | | | | | | | | | we should include qt_windows.h and not windows.h because we have to define WINVER to 0x500.
* | 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
* | Correct #include path for qcore_unix_p.hThiago Macieira2009-07-021-1/+1
| |
* | Fix build with MSVC2003: apparently the code path I thought was Unix was ↵Thiago Macieira2009-07-021-3/+3
| | | | | | | | also older MSVC
* | Add a properly-safe version of select(2).Thiago Macieira2009-07-021-43/+37
| | | | | | | | | | | | | | | | 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-023-11/+14
| | | | | | | | 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-024-24/+20
| | | | | | | | | | | | | | 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
* | src/corelib: Remove QT_WA and non-Unicode code paths, dropping Win9x and NT ↵miniak2009-07-018-943/+386
| | | | | | | | | | | | | | | | | | | | | | | | 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 '4.5'Marius Storm-Olsen2009-06-301-1/+2
|\ \ | |/
| * QTemporaryFile: Report the user-provided openModeJoão Abecasis2009-06-291-1/+2
| | | | | | | | Reviewed-by: Thiago
* | More culling of Panther Code.Norwegian Rock Cat2009-06-231-18/+2
| | | | | | | | | | | | Removed lots of places where we check for Tiger. Now we can assume it. Reviewed-by: Morten Sørvig
* | QIoDevice and QAbstractSocket: Clarify doc about waitForReadyRead()Markus Goetz2009-06-171-2/+2
| |
* | Update license headers in files that are new in 4.6.Jason McDonald2009-06-172-4/+4
| | | | | | | | Reviewed-by: Trust Me
* | Merge license header changes from 4.5Volker Hilsheimer2009-06-1665-131/+131
|\ \ | |/
| * Update license headers as requested by the marketing department.Jason McDonald2009-06-1665-130/+130
| | | | | | | | Reviewed-by: Trust Me
| * QFile: Doc was pointing to deprecated QIODevice::isSequentialAccess()Markus Goetz2009-06-151-1/+1
| | | | | | | | | | | | Changed to QIODevice::isSequential() Reviewed-by: TrustMe
* | Fix build on windows.Prasanth Ullattil2009-06-151-1/+1
| | | | | | | | Reviewed-by: TrustMe
* | Fix build on WindowsAlexis Menard2009-06-151-1/+1
| | | | | | | | Reviewed-by:TrustMe
* | Improve the speed of QDir, QFileInfo and QDirIterator.Alexis Menard2009-06-155-69/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch basically avoid to call too often currentFileInfo in QDirIterator. It replaces the QHash that was overkill in QFileInfo for caching filenames. The last part is reordering the matchesFilter to avoid stat as much as possible by using the power of && and filters that are set on QDirIterator. And it fixes some random "mistake". I have added a benchmark in QDir which test some use case with 10000 files in a dir. Written-with: Benjamin Reviewed-by: phartman
* | Use the old codec if there is one available when reading data in qtextstream.Denis Dzyubenko2009-06-111-1/+1
| | | | | | | | Reviewed-by: trustme
* | Compile the qsettins autotestOlivier Goffart2009-06-111-1/+1
| | | | | | | | As suggested in merge request 641
* | Use the original order if two files are equivalent for the sort of QDirBenjamin Poulain2009-06-111-1/+2
| | | | | | | | | | | | | | Set back the sort order of QDir::entryList() and entryInfoList(). This complement the change of aa2adb8d0072eccb549692d56168b8fde33f7b4f Reviewed-by: Olivier
* | Sort QDir with qSort instead of qStableSortBenjamin Poulain2009-06-111-2/+1
| | | | | | | | | | | | | | | | The commit 3e7fc907e5cc1937fb98bf4581cee960fe3d4e7a have changed the behavior of sorting of QDir. This revert to the old behavior with qSort instead of qStableSort. Reviewed-by: Alexis
* | remove q->layout() and q->parentWidget() code where unnecessaryThierry Bastian2009-06-111-4/+2
| |
* | Improve QDirPrivate::sortFileList by leaving right avway isRitt Konstantin2009-06-101-19/+23
| | | | | | | | | | | | | | | | | | | | we don't need to sort. Reviewed-by:alexis Request-url: http://qt.gitorious.org/qt/qt/merge_requests/636 Merge-request: 636 Reviewed-by: Alexis Menard <alexis.menard@nokia.com>
* | Optimize QDirPrivate::sortFileList by using a QFileInfoListRitt Konstantin2009-06-101-13/+28
| | | | | | | | | | | | | | | | | | | | | | directly instead of "constructing" a new one with empty file infos Reviewed-by:alexis Request-url: http://qt.gitorious.org/qt/qt/merge_requests/636 Task-number:253382 Merge-request: 636 Reviewed-by: Alexis Menard <alexis.menard@nokia.com>
* | Move declaration of QFileInfoPrivate in a separate file _p andAlexis Menard2009-06-103-64/+128
| | | | | | | | | | | | add an auto-test when we copy file infos. Reviewed-by: ogoffart
* | Small simplification on codeThierry Bastian2009-06-081-5/+0
| |
* | Fix QT_NO_DATASTREAM macro checks and improve readabilityRitt Konstantin2009-06-081-2/+1
| | | | | | | | | | | | | | | | Some checks where in the wrong locations, and some endifs where hard to read. Merge-request: 611 Reviewed-by: Marius Storm-Olsen <marius@trolltech.com>
* | Merge branch 'review/master'Marius Bugge Monsen2009-05-292-19/+19
|\ \
| * | Fix compilation with -pedanticDavid Faure2009-05-292-19/+19
| | |
* | | Fixed compile with MinGW.Rohan McGovern2009-05-291-3/+3
|/ / | | | | | | | | MinGW 3.4.5 can't figure out the automatic QLatin1Char -> QString conversion in this code.
* | improved string operations all over the placeThierry Bastian2009-05-283-8/+8
| | | | | | | | | | used character operations whenever possible better usage of QLatin1String
* | Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qtSimon Hausmann2009-05-273-18/+89
|\ \ | |/ | | | | | | Conflicts: tests/auto/qtreeview/tst_qtreeview.cpp