summaryrefslogtreecommitdiffstats
path: root/src/corelib/io
Commit message (Collapse)AuthorAgeFilesLines
* Doc update for QDir::rootPath and QDir::homePath in Symbian.Janne Anttila2009-10-201-2/+3
| | | | | Task-number: QTBUG-4867 Reviewed-by: Aleksandar Sasha Babic
* Merge commit 'a814aba657288942b5beed70a2110446420f981c' into origin-4.6Olivier Goffart2009-10-151-2/+7
|\
| * Merge commit origin/4.6 into team-widgets/4.6Olivier Goffart2009-10-154-11/+13
| |\
| * | Fix QUrl regression with setHost("::ffff:129.144.52.38")David Faure2009-10-131-2/+7
| | | | | | | | | | | | | | | | | | | | | toEncoded was returning an empty host instead of [::ffff:129.144.52.38] Merge-request: 1735 Reviewed-by: Olivier Goffart <ogoffart@trolltech.com>
* | | doc: Clarified when setDefaultFormat() is ignored by constructors.Martin Smith2009-10-151-9/+15
| |/ |/| | | | | Task-number: QTBUG-4443
* | Removed platform specific include from qprocess.hMiikka Heikkinen2009-10-144-11/+13
|/ | | | | | | | It wasn't necessary to have a Symbian specific include in qprocess.h, as 64-bit integer will work as pid also in Symbian. Task-number: QT-2266 Reviewed-by: Janne Anttila
* Fix for tst_qfile::map auto test in Symbian OS 3.1.Janne Anttila2009-10-091-2/+13
| | | | | | | | | | The map test case panic with E32User-Cbase 66 in N95 without this fix. This happens sisnce Open C bug where mmap may leave and trap handler is not inside OpenC. The workaround is to install the necessary TRAP handler in Qt, before calling mmap. AutoTests: tst_qfile::map passes Reviewed-by: Janne Koskinen
* Fix regression in QUrl: IPv6 hosts should be lowercased like in Qt-4.5.David Faure2009-10-061-0/+2
| | | | | Merge-Request: 1709 Reviewed-By: Thiago Macieira <thiago.macieira@nokia.com>
* Faster case-insensitive comparison to "file" in QUrl::toLocalFileDavid Faure2009-10-061-1/+1
| | | | | Merge-Request: 1709 Reviewed-By: Thiago Macieira <thiago.macieira@nokia.com>
* Partially revert e58293b3b, re-adding the #ifdef for Qt 4.7Thiago Macieira2009-10-061-0/+4
|
* Fix typo in QtCore license headers.Jason McDonald2009-10-063-3/+3
| | | | Reviewed-by: Trust Me
* Doc: silence more qdoc warnings.Volker Hilsheimer2009-10-031-1/+1
| | | | | Mark QGraphicsAnchor::unsetSpacing as reset function of the spacing property.
* Compilation with pedantic or when QtCore is not specified in the include pathOlivier Goffart2009-10-011-5/+1
| | | | | | Note that i also removed the #error since the enum is already updated in master Reviewed-by: Gabi
* optimize read() and readAll()Oswald Buddenhagen2009-09-301-20/+24
| | | | | | | | factor out a dedicated private::read() function based on private::scan(). this avoids making the latter even more complex in the process of optimizing it. Reviewed-By: mariusSO
* optimize scan()Oswald Buddenhagen2009-09-301-2/+1
| | | | | | lastChar needs to be set only when in line mode Reviewed-By: mariusSO
* improve condition nestingOswald Buddenhagen2009-09-301-11/+23
| | | | | | | compilers might or might not have been clever enough to optimize it. better safe than sorry. Reviewed-By: mariusSO
* Merge branch 'focusFixes' into 4.6axis2009-09-301-2/+2
|\ | | | | | | | | | | Conflicts: src/gui/kernel/qwidget_p.h src/gui/kernel/qwidget_s60.cpp
| * Fixed some uncommon codepaths to compile.axis2009-09-301-2/+2
| | | | | | | | RevBy: Trust me
* | Compile.Eskil Abrahamsen Blomfeldt2009-09-301-0/+72
| | | | | | | | Missed qdatastream_p.h in last commit.
* | Fix floating point precision when using qreal with QDataStreamEskil Abrahamsen Blomfeldt2009-09-303-9/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A frequent bug when using QDataStream across platforms where the size of qreal is different (such as any desktop platform and an ARM device) is that you end up using different overloads for streaming the value in and out (e.g. operator>>(double) on desktop and operator<<(float) on ARM.) This can leads to crashes and data corruption. To avoid the problem, we define a single floating point precision for the entire data stream and allow this to be set by the user. The default is to use 64-bit precision for all floating point numbers. Reviewed-by: Samuel Reviewed-by: Thiago
* | Adds QUrl::fromUserInput, gathered from QWebView::guessUrlFromString.Jocelyn Turcotte2009-09-292-0/+77
| | | | | | | | Reviewed-by: Thiago Macieira
* | Merge commit 'qt/4.6' into mmfphononFrans Englich2009-09-291-1/+1
|\ \ | |/
| * Revert the new QFSEventsFileSystemWatcherEngine on Mac for now.Alexis Menard2009-09-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | This new QFSEventsFileSystemWatcherEngine was introduced in 4.6 in order to speed up Qt, but we have experienced dead lock and auto-tests regressions (QFilesystemModel). Task-number:QT-2217 Reviewed-by:brad Reviewed-by:denis Reviewed-by:richard
* | Merge commit 'qt/4.6' into mmfphononFrans Englich2009-09-241-1/+1
|\ \ | |/
| * Uninitialised variable fix for qfilesystemwatcher_symbianmread2009-09-241-1/+1
| | | | | | | | | | | | | | The errorCode member was uninitialised, this caused the watcher thread startup to fail. Reviewed-by: Miikka Heikkinen
* | Merge commit 'qt/4.6' into mmfphononFrans Englich2009-09-2372-1691/+2237
|\ \ | |/ | | | | | | | | | | | | | | | | Conflicts: demos/embedded/fluidlauncher/config_s60/config.xml demos/embedded/fluidlauncher/fluidlauncher.pro src/corelib/io/io.pri src/gui/kernel/qapplication_s60.cpp src/gui/kernel/qwidget_s60.cpp src/s60installs/qt_libs.pro
| * Fixed crash in QFileSystemWatcher for addPath(nonExistingFile)gunnar2009-09-221-0/+6
| | | | | | | | Reviewed-by: Eskil
| * fix failing qdir autotestShane Kearns2009-09-221-1/+1
| | | | | | | | | | | | | | | | File engine was adding '/' to the result of QDir::cleanPath(), which is correct for everything except root directories, where it caused a path like "c://" Reviewed-by: axis
| * Fix memleak in tst_qhttpnetworkconnectionMarkus Goetz2009-09-221-1/+3
| | | | | | | | Reviewed-by: TrustMe
| * qdoc: Added \brief texts to all the since 4.6 functions.Martin Smith2009-09-211-4/+6
| |
| * Document that errors from flush are ignored in QFile::close()João Abecasis2009-09-161-1/+1
| | | | | | | | Reviewed-by: Andy Shaw
| * Fix -Wconversion warnings where possible.David Faure2009-09-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | In order to detect "int foo = myQReal" mistakes, one needs to compile with -Wconversion. However that flag triggers many warnings inside Qt. This commit fixes many of them, like qchar.h:295: warning: conversion to 'ushort' from 'unsigned int' may alter its value qglobal.h:1026: warning: conversion to 'qreal' from 'qint64' may alter its value qbytearray.h:441: warning: conversion to 'char' from 'int' may alter its value Other warnings remain (such as those coming from bitfields) Merge-request: 1460 Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
| * Do not make Mac-specific checks on FreeBSD.Raphael Kubo da Costa2009-09-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Commit 098be4ff adds a check for MAC_OS_X_VERSION_MAX_ALLOWED and MAC_OS_X_VERSION_10_5, which do not exist on FreeBSD. Therefore, both evaluate to 0 and a Mac-specific header ends up included. This commit properly verifies that Q_OS_MAC is defined before performing that check. Merge-request: 1477 Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
| * Merge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6Miikka Heikkinen2009-09-1072-293/+296
| |\
| | * Some unneeded semicolons lessAlessandro Portale2009-09-091-1/+1
| | |
| | * Unable to access file means QFile::PermissionsErrorJoão Abecasis2009-09-091-1/+1
| | | | | | | | | | | | | | | | | | | | | Relates to changes introduced in 6d87a01f2d3108bbee5b9995f20edfc26a01cd57. Reviewed-by: Marius Storm-Olsen
| | * Merge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6Janne Anttila2009-09-0972-293/+308
| | |\
| | | * Update license headers again.Jason McDonald2009-09-0972-288/+288
| | | | | | | | | | | | | | | | Reviewed-by: Trust Me
| | | * Fix windows implemetation of QLocalSocket to emit bytesWritten() signalabcd2009-09-092-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Have QWindowsPipeWriter emit a bytesWritten signal and have QLocalSocket connect this to its own bytesWritten signal. This change contains an autotest to check for the signal emission. Previously there was no implementation to emit the signal.
| | * | Fixed 'use of function is deprecated' warnings reported by RVCTJanne Anttila2009-09-092-3/+4
| | | | | | | | | | | | | | | | | | | | Task-number: 241223 Reviewed-by: Janne Koskinen
| * | | Fixed various PlatSec violations when app had no AllFiles capability.Miikka Heikkinen2009-09-101-1/+9
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | Fixed QtCore in various places that caused Platform Security violations in Symbian if AllFiles capability was missing from the application. All of these these were caused by trying to access /private folder unnecessarily, either by Qt code or Open C. Task-number: 249008 Reviewed-by: Janne Koskinen
| * | Fixed resolving absolute paths in Symbian.Miikka Heikkinen2009-09-081-5/+18
| |/ | | | | | | | | | | | | | | | | | | Fixed resolving absolute path using QFileInfo for paths that were relative but contained the drive letter (e.g. "c:my.dll"). Absolute paths should now be properly cleaned in Symbian, too. Task-number: 255326 Reviewed-by: Janne Anttila
| * Fix for qfileinfo autotest: LocalDiskFile set also for non-existing filev4.6.0-tp1aavit2009-09-071-1/+2
| | | | | | | | | | | | | | | | | | Change 53576b4d3c3e7325d01efba6c4da80299492f2db introduced the behaviour that QFSFileEngine sets LocalDiskFlag regardless of whether the file exists or not, but it just did it for Windows. This change makes fsengine for unix/mac behave likewise. Reviewed-by: trustme
| * qfsfileengine_win.cpp MinGW compile fixJoerg Bornemann2009-09-031-3/+5
| | | | | | | | | | | | | | On MinGW REPARSE_DATA_BUFFER_HEADER_SIZE is defined but no IO_REPARSE_TAG_SYMLINK. So this define must be checked separately. Reviewed-by: phartman
| * Removing unused member in QFilePrivateJoão Abecasis2009-09-021-1/+0
| | | | | | | | | | | | Thank you coverity! Reviewed-by: Marius Storm-Olsen
| * doc: Fixed several qdoc errors.Martin Smith2009-09-021-1/+1
| | | | | | | | That's the last of them... for now.
| * QTextStreamPrivate: Initialization in constructor missingMarkus Goetz2009-09-021-1/+1
| |
| * QTextStreamPrivate: Removed unnecessary conditionMarkus Goetz2009-09-021-1/+1
| |
| * Coverity: Small fix for QIODeviceMarkus Goetz2009-09-011-1/+6
| |
| * Merge branch '4.5' into 4.6Thiago Macieira2009-08-311-8/+30
| |\