summaryrefslogtreecommitdiffstats
path: root/tests/auto
Commit message (Collapse)AuthorAgeFilesLines
* qtscript meta-object binding: enum properties are not deletableKent Hansen2009-06-261-1/+10
|
* Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtBradley T. Hughes2009-06-262-4/+88
|\
| * Autotest: Fix a few test names and allow me to see the compilation errorsThiago Macieira2009-06-261-3/+10
| | | | | | | | Reviewed-by: TrustMe
| * Autotest for checking if QWidget::setStyle() forces a relayout.Jan-Arve Sæther2009-06-261-1/+78
| |
* | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtBradley T. Hughes2009-06-267-3/+23
|\ \ | |/
| * make autotests work with shadowbuildsKent Hansen2009-06-266-3/+6
| | | | | | | | Can't assume that the executable and source are in the same dir.
| * QVariant::setValue had a bug when changing its typeThierry Bastian2009-06-261-0/+17
| | | | | | | | | | | | | | If it was shared and you then set it back to an int type, it is still marked as shared,. This might even lead to crashes. The patch was sent through gitorious by Jürgen Starek. Note: autotest added as well
* | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtBradley T. Hughes2009-06-264-0/+158
|\ \ | |/
| * Merge branch '4.5'Thiago Macieira2009-06-264-0/+158
| |\ | | | | | | | | | | | | | | | | | | Conflicts: src/3rdparty/webkit/VERSION src/3rdparty/webkit/WebCore/ChangeLog src/network/access/qnetworkreplyimpl.cpp
| | * make invokable constructors work with classes in namespaceKent Hansen2009-06-251-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the fully qualified classname at relevant places in the moc-generated code. Also, QMetaObject::newInstance() needs to strip the namespace part, since the constructor signatures don't contain the fully qualified name. Task-number: 246064 Reviewed-by: Simon Hausmann
| | * QNetworkReplyImpl: Protect against recursive event loopsMarkus Goetz2009-06-253-0/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a bug that occured together with a QProgressDialog. The signal emission was like: readyRead readyRead readyRead [...] readyRead finished readyRead Now finished should be properly at the ending of this sequence. Task-number: 256630 Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
* | | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtBradley T. Hughes2009-06-264-5/+46
|\ \ \ | |/ /
| * | QMenu: Fixed geometry for actions with specific fontThierry Bastian2009-06-251-0/+15
| | | | | | | | | | | | Task-number: 256918
| * | Merge branch '4.5'Thiago Macieira2009-06-251-1/+2
| |\ \ | | |/ | | | | | | | | | | | | Conflicts: src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp
| | * Change QSharedPointer to track (or not) pointers when the #define isThiago Macieira2009-06-251-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | enabled. This allows mixing of debug and non-debug code (possible on Unix systems) without causing assertion failures. Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
| | * Backport: Mark tests as XFail until they can be investigated further.Bill King2009-06-241-7/+13
| | |
| | * These database connections need this parameter to work properly.Bill King2009-06-241-2/+2
| | |
| * | have the QtScript print() function use qDebug()Kent Hansen2009-06-251-0/+28
| | | | | | | | | | | | | | | | | | Makes it work with custom message handlers (qInstallMsgHandler()). Task-number: 233005
| * | QMAinWindow: Fixed autotest compilation after private API changesThierry Bastian2009-06-251-4/+1
| | |
* | | Add tests for multiple touch points on TouchScreen and TouchPad devicesBradley T. Hughes2009-06-251-9/+434
| | | | | | | | | | | | | | | | | | Add 2 basic tests that, when faced with multiple touch points, make sure we send multiple touch events on TouchScreen devices, but only one event on TouchPads.
* | | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtBradley T. Hughes2009-06-2411-162/+335
|\ \ \ | |/ / | | | | | | | | | Conflicts: src/gui/kernel/qapplication_x11.cpp
| * | QXmlStreamWriter: indent comments correctlyPeter Hartmann2009-06-241-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | before, there was no newline between a comment and a start element. Now, there is and the comment is correctly indented. Task: 256468 Reviewed-by: Frans Englich
| * | Save some time.jasplin2009-06-241-3/+3
| | | | | | | | | | | | Reviewed-by: TrustMe
| * | Simplified the tst_QSpinBox::sizeHint() autotest.jasplin2009-06-241-63/+28
| | | | | | | | | | | | | | | | | | Suggested by Jan Arve. Reviewed-by: TrustMe
| * | Removed trailing whitespace.Jan-Arve Sæther2009-06-242-80/+80
| | |
| * | Fixed count(), itemAt() and removeAt() in QGraphicsLinearLayout.Jan-Arve Sæther2009-06-242-24/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to this, the behaviour of count(), itemAt() and removeAt() was different between QGraphicsLinearLayout and QGraphicsGridLayout. QGraphicsGridLayout does it right. This adds some behaviour changes: 1. QGraphicsLinearLayout::count() is no longer affected by inserted stretches (through insertStretch) This means that code like this will break: QGraphicsLinearLayout *linearLayout = new QGraphicsLinearLayout; linearLayout->addItem(new QGraphicsWidget); linearLayout->addStretch(); int count = linearLayout->count(); linearLayout->removeAt(count - 1); // before this patch it would do nothing (and it wouldn't // actually remove the stretch), with the new patch it would // remove the QGraphicsWidget. 2. count(), itemAt() and removeAt() now prints a warning for an invalid index. The documentation actually says that "The reimplementation can assume that index is valid (i.e., it respects the value of count()", but I decided that its too risky to not assume that it is valid, since it would break the following common pattern: while(layout->itemAt(0)) { layout->removeAt(0); } Cleaned up autotests (and a small codeblock) that assumed itemAt/removeAt with an invalid index to work, since we should try to follow our own advice. :-) This change is also an alignment with what QGraphicsGridLayout does (it checks the index argument and prints a warning too.)
| * | Fixed sizeHint update bug in QSpinBox.jasplin2009-06-241-0/+79
| | | | | | | | | | | | | | | | | | | | | | | | QSpinBox failed to recalculate its cached size hint when setting the range, prefix, or suffix. Reviewed-by: janarve Task-number: 255051
| * | More culling of Panther Code.Norwegian Rock Cat2009-06-231-4/+0
| | | | | | | | | | | | | | | | | | Removed lots of places where we check for Tiger. Now we can assume it. Reviewed-by: Morten Sørvig
| * | Merge branch '4.5' of scm.dev.nokia.troll.no:qt/qtSimon Hausmann2009-06-232-0/+13
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | Conflicts: src/3rdparty/webkit/VERSION src/3rdparty/webkit/WebCore/ChangeLog src/3rdparty/webkit/WebKit/qt/ChangeLog tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
| | * Regression against 4.4 in QRectF::operator|.Bjørn Erik Nilsen2009-06-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In 4.4 QRectF handled flat rectangles in the same fashion as QRect does, but that changed with Lars' and Jo's optmizations done in the falcon branch. The difference is that the optimized version only checks whether the width or height is 0, whereas in 4.4 both had to be 0 (isNull()) before we bailed out. This regression also introduced a regression in QGraphicsItem::childrenBoundingRect(). Auto-test included. Task-number: 254995 Reviewed-by: Lars
| | * Add new auto-test QGraphicsItem::childrenBoundingRect2().Bjørn Erik Nilsen2009-06-231-0/+11
| | | | | | | | | | | | Reviewed-by: Andreas
| * | QHttpNetworkReply autotest: fix build on WindowsPeter Hartmann2009-06-231-1/+1
| | | | | | | | | | | | | | | | | | | | | build was failing because of a wrong include path set, and the test requires zlib Reviewed-by: Jesper Thomschütz
| * | Merge commit 'origin/4.5'Oswald Buddenhagen2009-06-232-0/+50
| |\ \ | | |/ | | | | | | | | | Conflicts: src/sql/drivers/psql/qsql_psql.cpp
| | * Prevented QWizard from crashing upon removing a page after deleting a field ↵jasplin2009-06-221-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | object. QWizard crashed when removing a page after deleting an object that was already registered as a field for the page. This patch prevents such a crash by doing the necessary cleanup immediately when the object is deleted. QWizard::removePage() will then see a consistent state in this case. Reviewed-by: janarve Task-number: 255350
| | * Moving a child widget right after show() does not work as expected.Bjørn Erik Nilsen2009-06-221-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem was that we did an accelerated move, i.e. scrolled the widget's contents in the backing store and repainted the old area. We cannot do this trick when the widget has been invalidated (show(), resize()). In this case the widget had never been painted, so we basically scrolled the content of its parent and the widget itself appeared as invisible. Auto-test included. Task-number: 255117 Reviewed-by: Paul
| * | Remove default error stateEskil Abrahamsen Blomfeldt2009-06-231-38/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | Having an implicit default error state in the graph which the user has not added is unintuitive and ugly. Rather than have a default error state, we stop execution of the machine and print an error message when the machine has run-time errors. If a user wishes to prevent errors from stopping the machine, you can set one or more error states explicitly.
| * | Fix tests on WindowsEskil Abrahamsen Blomfeldt2009-06-231-16/+16
| | | | | | | | | | | | | | | | | | Formatting of pointers in sprintf() is platform dependent. Use QString::sprintf() instead to make sure warnings match the actual warnings emitted.
* | | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt-multitouchBradley T. Hughes2009-06-241-3/+3
|\ \ \
| * | | Fix pressure "emulation"Bradley T. Hughes2009-06-241-3/+3
| | | | | | | | | | | | | | | | | | | | Update the auto test for QTouchEvent to make sure the pressure is set to 1 for Pressed/Moved/Stationary, but for 0 for Released.
* | | | Add QTouchEvent::DeviceType and deviceType()Bradley T. Hughes2009-06-241-6/+27
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | This enum indicates what kind of device generated the touch event (TouchScreen or TouchPad). We use this information to control how touch events are sent, specifically we restrict touch events to a single widget/QGraphicsItem on touch-pads, since there is no direct relationship between the physical touch location on the pad and the on- using the touch-pad).
* | | Add functions to report normalized positions in QTouchEvent::TouchPointBradley T. Hughes2009-06-231-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | This introduces normalizedPos(), startNormalizedPos(), and lastNormalizedPos() in QTouchEvent::TouchPoint, and must be set by the implementation before being fed into Qt. We are assuming and hoping that these functions will make it easier to implement certain types of gestures (especially on a touchpad).
* | | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtBradley T. Hughes2009-06-2311-121/+387
|\ \ \ | |/ /
| * | Cleanup of db test cases.Bill King2009-06-239-105/+62
| | | | | | | | | | | | | | | Mostly cleanup of dropping of tables to a consistent place. Also enable itemmodel tests.
| * | Mark tests as XFail until they can be investigated further.Bill King2009-06-231-7/+13
| | |
| * | Fixed bug in the SVG module where display="none" was not respected.Suneel BS2009-06-221-0/+66
| | | | | | | | | | | | | | | | | | | | | Elements with display="none" should not be rendered. Modified and autotest added by Kim. Reviewed-by: Kim
| * | Fixed forward gradient reference in the SVG module.Suneel BS2009-06-221-0/+16
| | | | | | | | | | | | | | | | | | | | | Autotest added by Kim. Task-number: 204686 Reviewed-by: Kim
| * | Fixed path bug in the SVG module.Suneel BS2009-06-221-0/+54
| | | | | | | | | | | | | | | | | | | | | In path, if 'moveto' is followed by multiple pairs of coordinates, those pairs shall be treated as 'lineto'. Autotest added by Kim. Reviewed-by: Kim
| * | Clamped opacity to the range [0, 1] in the SVG module.Suneel BS2009-06-221-0/+74
| | | | | | | | | | | | | | | | | | Modified and autotest added by Kim. Reviewed-by: Kim
| * | Fixed fill-rule for polygon SVG element.Suneel BS2009-06-221-14/+58
| | | | | | | | | | | | | | | | | | | | | | | | Polygon element should apply the fill rule which is specified in its fill-rule attribute. Default fill rule is 'WindingFill' (nonzero). Modified and autotest added by Kim. Reviewed-by: Kim
| * | perform normalization of signatures for signal transitionsKent Hansen2009-06-221-0/+25
| | | | | | | | | | | | Make state->addTransition(foo, SIGNAL( bar( ) ), ...) work.