summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Ensure hover enter events are dispatched on mouse press.Andreas Aardal Hanssen2009-07-291-0/+69
| | | | | | | | | | This change ensures that mouse presses received by the scene when there are no current mouse grabbers trigger hover event delivery. This is useful when the scene only receives presses, and no mouse moves (e.g., disabling mouse tracking on the viewport, or on systems where the mouse press is the first received event). Reviewed-by: Michael Brasser
* Fix remaining autotest failures in tst_QGraphicsWidgetAndreas Aardal Hanssen2009-07-291-0/+11
| | | | | | | | | | | | | | | | | | | Change f68fed3 introduced a few regressions in the QGraphicsWidget autotests. It turned out those autotests relied on behavior that this fix "fixed". The exact bugs were 1) that setting focus on a window or a child of a window that isn't active will automatically give that item focus, despite that its window is inactive (in contrast it should just set up subfocus and give the item focus when the window is activated), and 2) that adding a window to a scene that is active did not immediately activate that window. So one fix in the test and one in QGraphicsScene. The autotests were modified so that the respective tests operate on an active scene (by assigning the scene to an active view). The change in QGraphicsScene ensures that the first window that gets added to an active scene that does not have any active windows already, automatically gets activated. Reviewed-by: Michael Brasser
* Fixes various db2 autotest issues.Bill King2009-07-291-3/+7
|
* Implement new transformation handling for graphics items.Lars Knoll2009-07-293-121/+201
| | | | | | | | | | | | | | | | | | The idea of having separate rotationX/Y/Z, shearX/Y, etc. methods in QGraphicsItem turned out to be not giving us the flexibility we need and wanted. The new code now implements a different scheme, where we keep simple rotate (around z-axis), scale and transformOriginPoint methods, but remove the other ones. Instead we now have an additional list of QGraphicsTransform object. QGraphicsTransform is an abstract class that inherits QObject. Several specializations are provided and can be used to transform (and through property bindings animate) the item. Reviewed-By: Andreas
* Added a QVariant testlib toString specialization.Rohan McGovern2009-07-282-2/+64
| | | | | | | | If comparing two variants fails, the failure message will now output the type and value of the variants (rather than "Compared values are not the same"). Reviewed-by: Thiago
* Implement a copy constructor for QXmlParseException to avoid crashes whenVolker Hilsheimer2009-07-281-0/+26
| | | | | | | | | throwing them. Autotest included. Task: 258081 Reviewed-by: Trustme
* Disable the forwardDeclared1 test with SunCC: it doesn't workThiago Macieira2009-07-281-0/+4
| | | | | | | | | I added this test because I thought that the compiler would find the forward-declarations due to the "one definition" rule. In hindsight, it's not a good idea. Sun CC warns about this, gcc doesn't. With Sun CC, the code leaks, with gcc it doesn't.
* Make typeToName testcase pass, and add basic test for Math3D classes.Volker Hilsheimer2009-07-271-2/+84
| | | | Reviewed-by: Trustme
* Add QGraphicsItem::ItemAutoDetectsFocusProxy and improve subfocus support.Andreas Aardal Hanssen2009-07-271-0/+107
| | | | | | | | | | | | | | | | | If you set this flag on an item, and descendant item that gains input focus will become this item's focus proxy. This simplifies how focus proxy items are assigned from QML; instead of binding the possible focusProxy property to a named child widget, this assignment happens automatically as you set the focus property of a descendant to true. As part of this change, QGraphicsWidget::focusWidget behavior has been improved and moved into QGraphicsItem. For example, if you set focus on an item that it's part of a scene, it can gain focus once the parent has been assigned (which is how object trees are built in QML). Autotests are included. Reviewed-by: Michael Brasser
* Using QNetworkAccessManager, so need to pull in QtNetworkVolker Hilsheimer2009-07-252-0/+2
|
* Compile from repo checkoutVolker Hilsheimer2009-07-251-0/+2
|
* Build without Qt3SupportVolker Hilsheimer2009-07-251-1/+1
|
* No link-errors when building from repositoryVolker Hilsheimer2009-07-252-0/+6
|
* Fix a running external tests: user program headers must come first.Thiago Macieira2009-07-251-2/+2
| | | | | No wonder QT_SHAREDPOINTER_TRACK_POINTERS was having no effect: there was an #include <QtCore/QtCore> before it.
* Add support for debugging and valgrinding external testsThiago Macieira2009-07-251-10/+74
| | | | This requires modifying slightl QProcess on Unix to forward stdin too.
* Apply the script I added to gen.sh to existing files: remove template classesThiago Macieira2009-07-25174-167035/+779
|
* Add Perl code to remove template classes from the listing.Thiago Macieira2009-07-251-0/+4
| | | | | | It is possible to export symbols in template classes, but I don't think we use any such cases now (template specialisation). It only works properly with C++0x anyway (extern template).
* Update the test to work with GCC 4.4 tooThiago Macieira2009-07-251-15/+11
|
* Revert "Revert "Add support for creating the object alongside the Data ↵Thiago Macieira2009-07-241-2/+100
| | | | | | | structure in QSharedPointer"" This restores the original implementation of the creating function. The next commit will make it suitable for use.
* Make the internal testcase more robust on Windows FS as wellVolker Hilsheimer2009-07-241-0/+5
|
* Make test more robust against the case-insensitive file system on Windows,Volker Hilsheimer2009-07-241-0/+6
| | | | | | and link against a regular Qt build. Reviewed-by: Trustme
* improve qfileinfo autotest a bitRitt Konstantin2009-07-241-13/+29
| | | | | | | | add a few more subtests; fix fileTimes_oldFile test for non-UTC time Merge-request: 966 Reviewed-by: Joerg Bornemann <joerg.bornemann@trolltech.com>
* Merge branch '4.5' of scm.dev.nokia.troll.no:qt/qtSimon Hausmann2009-07-241-31/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/3rdparty/webkit/VERSION src/3rdparty/webkit/WebCore/ChangeLog src/3rdparty/webkit/WebCore/bridge/qt/qt_instance.cpp src/3rdparty/webkit/WebCore/bridge/qt/qt_instance.h src/3rdparty/webkit/WebCore/page/DragController.cpp src/3rdparty/webkit/WebKit/qt/Api/qwebframe.cpp src/3rdparty/webkit/WebKit/qt/ChangeLog src/3rdparty/webkit/WebKit/qt/tests/qwebpage/tst_qwebpage.cpp src/gui/painting/qpaintengineex_p.h tools/linguist/lupdate/main.cpp
| * Remove autotest for "Won't fix" bug 258462.Rohan McGovern2009-07-231-31/+0
| |
* | Reverted commits that changed the behavior of the keypresses with modifiers.Denis Dzyubenko2009-07-231-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Apparently it changes the behavior of Qt too much and also breaks the text input in some keyboard layouts (for example in German layout you need to be able to use Ctrl and Alt or AltGr modifiers to type text). Revert "Don't insert text into a text widget when a modifier is pressed." This reverts commit 099a32d121cbc80a1a234c3146f4be9b5237e7e8. Revert "Fixed the qlineedit autotest." This reverts commit 9210e8cdc83b6812d10f5f5847d05703ef2e5f7c.
* | Implement an FSEvents-based QFileSystemWatcherEngineNorwegian Rock Cat2009-07-231-0/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has been around for a while and really should have been put in earlier. Mac OS X (client) has a much lower ulimit for open files than what some other Unix-like OS's have (in defense it does save memory). However, if you start watching a lot of files, it will start to fall down. You can adjust the ulimit, but it's a bit inconvenient. FSEvents watches the directory and notifies you of changes that happen in that directory (and below, but we don't really use it). It also can be adjusted for latency so that performance isn't affected by heavy file system use (but Qt doesn't use that either at the moment). The other thing is that it doesn't require any open files, so it's much better for our number of open files. This feature is only on Leopard and up, so people wanting to deploy Tiger will still have the "open files" problem to deal with. There are still some optimizations available in this code. For example, we could coalesce things down to watch only one high-level directory without changing much of the implementation. The current implementation has some very simplistic ways of handling things, but this simplicity works well. I documented it, so you can see that, yes, I really meant to do that. Task-Id: 164068 (and others) Reviewed-by: Denis
* | linker fix for WinCEMaurice Kalinowski2009-07-237-5/+14
| | | | | | | | | | | | | | | | - link against correct library - theoretically it should be ok to use QHostInfo::localHostName(), but for this test it is fine Reviewed-by: Thomas Hartmann
* | tst_qnetworkreply: Small and simple latency testingMarkus Goetz2009-07-233-0/+88
| | | | | | | | Reviewed-by: Thiago
* | Add QGraphicsItem::focusProxy(), focus proxy support.Andreas Aardal Hanssen2009-07-231-0/+120
| | | | | | | | | | | | | | | | | | Following QWidget's behavior, you can not assign any item in the same scene as a focus proxy for another item. Also supports nested focus proxies. You can only assign items in the same scene as focus proxies. Autotests are included. Reviewed-By: mbm
* | Fix autotest compile failureJens Bache-Wiig2009-07-221-2/+2
| |
* | QNetworkReply: add possibility to ignore specific SSL errorsPeter Hartmann2009-07-222-2/+170
| | | | | | | | | | | | | | | | | | | | | | | | the same method was also added to QSslSocket. previously, it was only possible to ignore all SSL errors; now, it is also possible to only ignore specific SSL errors, given by a QList of QSslErrors. Moreover, it is possible to call this newly added method right after connecting, not just when we get the SSL error. Reviewed-by: Thiago Task-number: 257322
* | Merge branch '4.5'Thiago Macieira2009-07-222-23/+16
|\ \ | |/
| * QSslSocket autotest: adapt to new certificate on test serverPeter Hartmann2009-07-222-23/+16
| | | | | | | | | | | | got a new certificate, which is self-signed now Reviewed-by: Thiago
* | Make QStateMachine inherit QStateKent Hansen2009-07-222-240/+283
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes the need for a "root state" in the machine; or rather, the machine _is_ the root state. User code can now pass in a QStateMachine directly to the QState constructor, instead of machine->rootState(). This also means we could get rid of the "proxying" from the machine to the root state for things like properties (initialState et al), finished() signal and auto-reparenting of states (the ChildAdded event hack). A fun little side-effect of this change is that it's now possible to embed state machines within state machines. We can't think of a good use case yet where you would rather embed a stand-alone state machine (with its own event processing etc.) rather than having just a regular nested state, but it's neat and it works. Reviewed-by: Eskil Abrahamsen Blomfeldt
* | Merge commit 'origin/4.5'Olivier Goffart2009-07-221-0/+31
|\ \ | |/ | | | | | | | | Conflicts: src/gui/graphicsview/qgraphicsscene.cpp src/gui/kernel/qt_cocoa_helpers_mac_p.h
| * Add a (failing) test for QProcess bug 258462.Rohan McGovern2009-07-221-0/+31
| |
* | Show text even if maximum == 0Olivier Goffart2009-07-221-1/+1
| |
* | Support for very large range in QProgressBarOlivier Goffart2009-07-221-1/+31
| | | | | | | | | | | | Regression since my last commit. Task-number: 152227
* | Fix Warning saying that signal cannot be made virtualOlivier Goffart2009-07-221-0/+22
| | | | | | | | | | | | | | | | The test for virtual signal did not work. But we cannot make an error right now or it might break existing code (exemple in task 210879) Reviewed-by: Kent Hansen
* | Improve performance in QUrl parsing by doing in-line operations.Thiago Macieira2009-07-211-2/+2
| | | | | | | | | | | | Unfortunately, I can't do it all inline because the punycode encoding and decoding requires reading the source several times. (Maybe the decoding can be done with some effort in the future)
* | Change qt_nameprep to do in-line namepreppingThiago Macieira2009-07-211-6/+6
| | | | | | | | This will allow to do less allocations in qt_ACE_do.
* | Implement strict STD3 checking of hostnames in URLs.Thiago Macieira2009-07-211-12/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Made the toPunycodeHelper function write to a QString. Renamed qt_from_ACE to qt_ACE_do to indicate what it actually does. Added the STD3 rules for hostnames, forcing hostnames to have to strictly comply to STD3. Also, execute nameprep in the correct order (before trying to encode to Punycode). Validate hostnames when QUrlPrivate::canonicalHost() called, including validation of IP Literals. Validation of IPv4 is missing. Adapted other functions to use qt_ACE_do, notably QUrl::toAce (avoid code duplication).
* | Fix memleaks in the autotestsKent Hansen2009-07-211-1/+14
| |
* | add autotest for adding transition from state machine's rootKent Hansen2009-07-211-0/+10
| | | | | | | | | | | | It's not supported because the root state has no ancestor, which is a requirement for the state machine's transition selection algorithm.
* | fix tests for QT_NO_PROCESS and when running tests as rootHarald Fernengel2009-07-2114-26/+82
| |
* | use /usr/bin/env perl as interpreterHarald Fernengel2009-07-211-1/+1
| |
* | Workaround for transacted, locked and inaccesible filesRitt Konstantin2009-07-201-2/+16
| | | | | | | | | | | | | | | | | | | | | | 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>
* | Use QVERIFY in benchmarks, insteads of returning silently in case of errorOlivier Goffart2009-07-201-4/+2
| |
* | Add low level POSIX bench on WindowsRitt Konstantin2009-07-201-6/+31
| | | | | | | | | | Merge-request: 702 Reviewed-by: Olivier Goffart <ogoffart@trolltech.com>
* | Adding test case for PNG compression icon loadingminiak2009-07-202-0/+33
| | | | | | | | | | Merge-request: 431 Reviewed-by: Joerg Bornemann <joerg.bornemann@trolltech.com>