summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update def filesShane Kearns2010-12-206-19/+237
| | | | | | Add the new APIs + all the unfrozen changes on master Reviewed-by: Trust Me
* Add autotests for AutoCloseHandle / DontCloseHandle and RFile adoptionShane Kearns2010-12-202-10/+141
| | | | | | | | | | Extended the existing tests which open a file from a handle to use symbian RFile as well (when testing on symbian). Added a new test to check the file handle is open/closed after closing a QFile, based on whether the file was opened with AutoCloseHandle or not. Reviewed-by: mread
* QFile API: add API to specify if adopted file handles should be closedShane Kearns2010-12-206-12/+277
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QFile behaviour has been to not close file handles adopted by open(FILE*, OpenMode) and open(int fd, OpenMode) functions. This is inconvenient for frameworks which want to return an opened QFile to the user. In this case it would be better to transfer ownership of the handle to the QFile. New overloads are added which take an additional parameter from the QFile::FileHandleFlags flags. Currently only one bit is used to provide the AutoCloseHandle option, but it is extensible. The AutoCloseHandle option tells the QFile backend that it should close the handle when close() is called, rather than the default behaviour which remains to flush the handle and leave it open. The DontCloseHandle option is the inverse of this, specifying the old behaviour of flushing but not closing the file handle. Symbian OS file handles are not compatible with int, they are an opaque data type which contains two integers. The first identifies to the kernel the file server session The second identifies to the file server the subsession object (the file) The reason for this is that it has a microkernel architecture, the kernel has no support for files - all files and file systems are handled by a user mode process called the "file server". So for symbian, a new QFile::open() overload is added for adopting a symbian RFile handle. The API mirrors the existing API for POSIX file handles, but takes an RFile reference rather than an integer file descriptor. Task-number: QT-2924 Reviewed-by: joao Reviewed-by: mread Reviewed-by: Oswald Buddenhagen
* Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into ↵Qt Continuous Integration System2010-12-1620-390/+945
|\ | | | | | | | | | | | | | | | | | | | | master-integration * 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-2: Satisfy the maketestselftest autotst Make the lancelot/baseline test system generically usable Make protocol less lancelot-specific, prepare use in other testcases Added new View command on reports Avoid race condition: don't quit until new executable is ready
| * Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into ↵Qt Continuous Integration System2010-12-1520-390/+945
| |\ |/ / | | | | | | | | | | | | | | | | | | master-integration * 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-2: Satisfy the maketestselftest autotst Make the lancelot/baseline test system generically usable Make protocol less lancelot-specific, prepare use in other testcases Added new View command on reports Avoid race condition: don't quit until new executable is ready
| * Satisfy the maketestselftest autotstaavit2010-12-151-0/+1
| |
| * Merge branch 'lancelot'aavit2010-12-1519-390/+944
| |\
| | * Make the lancelot/baseline test system generically usableaavit2010-12-1415-160/+616
| | | | | | | | | | | | | | | | | | | | | | | | To facilitate usage outside of tst_lancelot: - Added new QBaseLineTest simple API - Added "tst_baselineexample" autotest to show usage - Improved reporting - Results from all testfunctions collected in same report
| | * Make protocol less lancelot-specific, prepare use in other testcasesaavit2010-12-085-88/+81
| | |
| | * Added new View command on reportsaavit2010-12-026-6/+108
| | |
| | * Avoid race condition: don't quit until new executable is readyaavit2010-11-252-0/+3
| | |
* | | Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-multimedia-staging ↵Qt Continuous Integration System2010-12-158-49/+53
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | into master-integration * 'master' of scm.dev.nokia.troll.no:qt/qt-multimedia-staging: Removed obsolete Maemo 5 code QScroller: nicer Overshoot bounce back animation. Use XRandR to get the real DPI values for the screen. Resolve XRRSizes() from libxrandr for QScroller's DPI calculation. Fix drag velocity smoothing in QScroller. Make QScroller examples Qt-namespace safe.
| * | Removed obsolete Maemo 5 codeRobert Griebl2010-12-151-23/+1
| | |
| * | QScroller: nicer Overshoot bounce back animation.Robert Griebl2010-12-151-3/+2
| | | | | | | | | | | | Reviewed-by: Ralf Engels
| * | Use XRandR to get the real DPI values for the screen.Robert Griebl2010-12-151-12/+24
| | | | | | | | | | | | | | | | | | This is needed for the Xomap server, but may also apply to others. Reviewed-by: Ralf Engels
| * | Resolve XRRSizes() from libxrandr for QScroller's DPI calculation.Robert Griebl2010-12-152-0/+5
| | | | | | | | | | | | Reviewed-by: Denis Dzyubenko
| * | Fix drag velocity smoothing in QScroller.Robert Griebl2010-12-153-11/+16
| | | | | | | | | | | | | | | | | | The algorithm used for smoothing the drag velocity was wrong in many ways. Reviewed-by: Ralf Engels
| * | Make QScroller examples Qt-namespace safe.Robert Griebl2010-12-153-1/+6
|/ /
* | Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into ↵Qt Continuous Integration System2010-12-152-42/+0
|\ \ | | | | | | | | | | | | | | | | | | master-integration * 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-2: Fixed stroke / fill inconsistencies in GL 2 paint engine.
| * | Fixed stroke / fill inconsistencies in GL 2 paint engine.Samuel Rødal2010-12-142-42/+0
| | | | | | | | | | | | | | | | | | | | | | | | Get rid of the aliased coordinate delta, like we already did in the raster paint engine. Task-number: QTBUG-16043 Reviewed-by: Gunnar Sletta
* | | Merge branch 'earth/file-engine-refactor' of ↵Qt Continuous Integration System2010-12-14159-3048/+8396
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | scm.dev.nokia.troll.no:qt/qt-file-engines-refactor into master-integration * 'earth/file-engine-refactor' of scm.dev.nokia.troll.no:qt/qt-file-engines-refactor: (224 commits) Fix warnings, whitespace cleanup Don't rely on uninitialized data Doc: Fixing typo Doc: Fixing typo Skip failing tests Use effective user id instead of getlogin Fix compile error in tst_qfileinfo on Mac/Linux Fix tst_QFileInfo owner() & group() failure on Windows. Fix tst_QFileInfo::canonicalFilePath failure on Windows Fix QDir::relativeFilePath Fix spelling in comments Add missing license header to test case Define _WIN32_WINNT before any includes New attempt at fixing compilation failure Removing unused duplicate definitions No symbolic links in Windows CE Set minimum target Windows version to 2000 More missing includes Add missing include Fix compile error ...
| * | Merge branch 'earth/file-engine-refactor' of ↵Qt Continuous Integration System2010-12-14159-3048/+8396
| |\ \ |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | scm.dev.nokia.troll.no:qt/qt-file-engines-refactor into master-integration * 'earth/file-engine-refactor' of scm.dev.nokia.troll.no:qt/qt-file-engines-refactor: (224 commits) Fix warnings, whitespace cleanup Don't rely on uninitialized data Doc: Fixing typo Doc: Fixing typo Skip failing tests Use effective user id instead of getlogin Fix compile error in tst_qfileinfo on Mac/Linux Fix tst_QFileInfo owner() & group() failure on Windows. Fix tst_QFileInfo::canonicalFilePath failure on Windows Fix QDir::relativeFilePath Fix spelling in comments Add missing license header to test case Define _WIN32_WINNT before any includes New attempt at fixing compilation failure Removing unused duplicate definitions No symbolic links in Windows CE Set minimum target Windows version to 2000 More missing includes Add missing include Fix compile error ...
| * | Fix warnings, whitespace cleanupJoão Abecasis2010-12-142-1/+5
| | | | | | | | | | | | ... and trigger CI :-/
| * | Don't rely on uninitialized dataJoão Abecasis2010-12-132-0/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we fail to get file attributes, the file times are left in an uninitialized state, which may lead to a crash. In particular, this was showing up in QMessageBox's autotest, where the lastModified time is being queried on a non-existing file. Before the refactoring, we were returning a default constructed QDateTime to queries about different file times, with this change we will return the time corresponding to a default constructed FILETIME object. Reviewed-by: Shane Kearns
| * | Doc: Fixing typoSergio Ahumada2010-12-101-1/+1
| | |
| * | Doc: Fixing typoSergio Ahumada2010-12-101-1/+1
| | |
| * | Skip failing testsJoão Abecasis2010-12-101-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For Mac OS X 10.5 and earlier, QDir::canonicalPath depends on QDir::cleanPath which is fundamentally broken and specifically fails for the case of "/./", returning "" instead of "/". Fixing cleanPath to a sane and correct behaviour seems to break more code than it is worth so we're skipping these individual tests for the time being.
| * | Use effective user id instead of getloginJoão Abecasis2010-12-081-12/+16
| | | | | | | | | | | | | | | | | | And check if this gives us more reliable results. Reviewed-by: Prasanth Ullattil
| * | Merge branch 'earth/file-engine-refactor' of ↵Qt Continuous Integration System2010-12-08157-3045/+8321
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | scm.dev.nokia.troll.no:qt/qt-file-engines-refactor into master-integration * 'earth/file-engine-refactor' of scm.dev.nokia.troll.no:qt/qt-file-engines-refactor: (218 commits) Fix compile error in tst_qfileinfo on Mac/Linux Fix tst_QFileInfo owner() & group() failure on Windows. Fix tst_QFileInfo::canonicalFilePath failure on Windows Fix QDir::relativeFilePath Fix spelling in comments Add missing license header to test case Define _WIN32_WINNT before any includes New attempt at fixing compilation failure Removing unused duplicate definitions No symbolic links in Windows CE Set minimum target Windows version to 2000 More missing includes Add missing include Fix compile error Update def files Fix tst_QFile::caseSensitivity test on Mac Fix typo in QFile test Add test generated files to .gitignore Fix compile error for qdir autotest on symbian3 QtDeclarative: make autotests compile on symbian ...
| | * \ Merge branch 'earth/file-engine-refactor' of ↵Qt Continuous Integration System2010-12-07157-3045/+8321
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | scm.dev.nokia.troll.no:qt/qt-file-engines-refactor into master-integration * 'earth/file-engine-refactor' of scm.dev.nokia.troll.no:qt/qt-file-engines-refactor: (218 commits) Fix compile error in tst_qfileinfo on Mac/Linux Fix tst_QFileInfo owner() & group() failure on Windows. Fix tst_QFileInfo::canonicalFilePath failure on Windows Fix QDir::relativeFilePath Fix spelling in comments Add missing license header to test case Define _WIN32_WINNT before any includes New attempt at fixing compilation failure Removing unused duplicate definitions No symbolic links in Windows CE Set minimum target Windows version to 2000 More missing includes Add missing include Fix compile error Update def files Fix tst_QFile::caseSensitivity test on Mac Fix typo in QFile test Add test generated files to .gitignore Fix compile error for qdir autotest on symbian3 QtDeclarative: make autotests compile on symbian ...
| | | * | Fix compile error in tst_qfileinfo on Mac/LinuxPrasanth Ullattil2010-12-071-0/+2
| | | | | | | | | | | | | | | | | | | | Reviewed-by: Shane Kearns
| | | * | Fix tst_QFileInfo owner() & group() failure on Windows.Prasanth Ullattil2010-12-061-20/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The ownership of newly created files are transferred to the Administrator group only if the application is running with Admin privilages. This will happen only on Windows 7 & Vista, on XP user has the ownership. Reviewed-by: Joao
| | | * | Fix tst_QFileInfo::canonicalFilePath failure on WindowsPrasanth Ullattil2010-12-061-10/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the test application is running without administrative privilages, the CreateSymbolicLink() can incorrectly return success. To handle this we need to check whether GetLastError() returns ERROR_PRIVILEGE_NOT_HELD or not. Reviewed-by: Joao
| | | * | Fix QDir::relativeFilePathJoão Abecasis2010-12-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We used to call cleanPath on the result of absolutePath, before returning it to the user, but stopped doing that. relativeFilePath actually depended on that and broke. Fixed now. Reviewed-by: Prasanth Ullattil
| | | * | Fix spelling in commentsJoão Abecasis2010-12-056-12/+12
| | | | |
| | | * | Add missing license header to test caseJoão Abecasis2010-12-051-0/+41
| | | | |
| | | * | Define _WIN32_WINNT before any includesJoão Abecasis2010-12-051-4/+4
| | | | | | | | | | | | | | | | | | | | ... to ensure it's properly defined before <windows.h> is ever included.
| | | * | New attempt at fixing compilation failureJoão Abecasis2010-12-052-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Including windows.h and defining _WIN32_WINNT didn't cut it. Instead, fall back to explicitly #defining IO_REPARSE_TAG_SYMLINK in metadata header, since it's all that's needed there. In windows-specific iterator implementation ensure _WIN32_WINNT >= 0x0500.
| | | * | Removing unused duplicate definitionsJoão Abecasis2010-12-051-27/+0
| | | | | | | | | | | | | | | | | | | | | | | | | These functions have been forked in qfilesystemengine_win.cpp and are no longer used in this file. Cleaning up.
| | | * | No symbolic links in Windows CEJoão Abecasis2010-12-041-0/+2
| | | | |
| | | * | Set minimum target Windows version to 2000João Abecasis2010-12-042-0/+8
| | | | | | | | | | | | | | | | | | | | Required for FindFirstFileEx.
| | | * | More missing includesJoão Abecasis2010-12-042-0/+3
| | | | |
| | | * | Add missing includeJoão Abecasis2010-12-041-0/+1
| | | | |
| | | * | Fix compile errorShane Kearns2010-12-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Missing QT_BEGIN_NAMESPACE caused error when the namespace macros are defined. Reviewed-by: mread
| | | * | Update def filesShane Kearns2010-12-024-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | refreeze on top of master def files (we have added some exports to QtCore) Reviewed-by: Trust Me
| | | * | Merge remote branch 'origin/master' into file-engine-refactorJoão Abecasis2010-12-02384-7206/+24094
| | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | master's version of conflicting def files picked. Conflicts: src/s60installs/bwins/QtCoreu.def src/s60installs/bwins/QtGuiu.def src/s60installs/bwins/QtNetworku.def src/s60installs/eabi/QtCoreu.def src/s60installs/eabi/QtGuiu.def
| | | * | | Fix tst_QFile::caseSensitivity test on MacJoão Abecasis2010-11-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mac's default file system is case-preserving, but case-insensitive, otherwise.
| | | * | | Fix typo in QFile testJoão Abecasis2010-11-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If file system isn't case sensitive, open succeeds as should reading, with the read data matching testData.
| | | * | | Add test generated files to .gitignoreShane Kearns2010-11-302-7/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The tests/.gitignore, did not inherit from the main one, which causes git to show hundreds of new files when running tests on symbian. Reviewed-by: Markus Goetz
| | | * | | Fix compile error for qdir autotest on symbian3Shane Kearns2010-11-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Header file is in a different location compared to previous SDK versions Reviewed-by: Miikka Heikkinen