summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '4.5' into 4.6Tom Cooksey2009-09-178-10/+80
|\ | | | | | | | | | | | | Conflicts: tests/auto/qimagereader/tst_qimagereader.cpp tests/auto/qpainter/tst_qpainter.cpp tests/auto/qtwidgets/tst_qtwidgets.cpp
| * Revert "Added autotest to demonstrate clipping path problem"Alexis Menard2009-09-171-32/+0
| | | | | | | | | | | | This reverts commit e7042dea2431b8f64574d4e97eb896285b328c8b. Alexis : This should never have been here. E-mail is invalid.
| * Fix crash or painting error when drawing dashed lines with penWidth > 1Eskil Abrahamsen Blomfeldt2009-09-171-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | Since the width is multiplied into the dash, it needs to be divided out, otherwise you can get a dashOffset which is greater than the pattern at the index, and the dash can become negative. This will in turn lead to passing a negative width to the rasterizer, which at some point will get cast to an unsigned int and overflow. Depending on the position of the line and size of the buffer, this will either crash or produce garbled output. Task-number: QT-4444 Reviewed-by: Samuel
| * Fixes issue of forward only datasets failing when not set so.Bill King2009-09-171-0/+38
| | | | | | | | | | | | | | | | | | Previously you had to set forward only on non-scrollable datasets explicitly. This queries ODBC, to determine if it's a scrollable dataset, and sets forwardOnly to false if it isn't. Task-number: QT-353 Reviewed-by: Justin McPherson
| * Fixed the qkeysequence::translated autotest.Kim Motoyoshi Kalland2009-09-164-5/+9
| | | | | | | | | | | | | | | | The test failed because it tried to open a .qm file which didn't exist in Qt's translations directory. Fixed by running lrelease on the .ts file and copying the resulting .qm into the test directory. Reviewed-by: Trond
| * Disabled the qtwidgets test for the times being.Trond Kjernaasen2009-09-161-0/+2
| | | | | | | | Reviewed-by: Jesper
| * Fixed the QThread tests for Windows.Trond Kjernaasen2009-09-161-9/+18
| | | | | | | | | | Backported d04d67e146bce3d407f992c283d7ab3d0c25d428 and 08b54f274d57e4735d0042e295237f176506433d from 4.6.
| * Fixed QImageReader autotests.Trond Kjernaasen2009-09-161-10/+11
| | | | | | | | Reviewed-by: Kim
| * Added autotest to demonstrate clipping path problemandyc2009-09-151-0/+32
| |
* | Skip the multipleFBOInterleavedRendering autotest on when using OpenGL 1Tom Cooksey2009-09-171-0/+5
| | | | | | | | | | | | | | Interleaved rendering to GL targets is going to be flaky with the GL1 engine and wont be supported. Reviewed-by: Trustme
* | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6Shane Kearns2009-09-1619-89/+112
|\ \
| * | Fixed linking on Windows.Trond Kjernaasen2009-09-161-1/+1
| | | | | | | | | | | | Reviewed-by: Kim
| * | Stabilize testsOlivier Goffart2009-09-165-4/+19
| | |
| * | Fix tst_QGL::openGLVersionCheck() autotest on OpenGL ES platformsTom Cooksey2009-09-161-1/+9
| | | | | | | | | | | | Reviewed-by: Trustme
| * | Make test pass after license header changesPaul Olav Tvete2009-09-161-3/+3
| | | | | | | | | | | | Reviewed-by: TrustMe
| * | Updating line numbers in uic3 auto-testsJoão Abecasis2009-09-1611-80/+80
| | |
* | | Fix QTimer overflow with interval > 35 minutes on symbianShane Kearns2009-09-161-0/+12
|/ / | | | | | | | | | | | | | | For long intervals, restart the system timer every 2000 seconds New autotest to verify long timers don't crash or complete immediately Task-number: QT-651 Reviewed-by: axis
* | Stabilize tst_QComboBox::task260974_menuItemRectangleForComboBoxPopupOlivier Goffart2009-09-151-1/+1
| |
* | Slightly better code for the test.Alexis Menard2009-09-151-5/+6
| | | | | | | | | | | | Then the test doesn't leak. Reviewed-by:ogoffart
* | Fix macplist autotestJoão Abecasis2009-09-151-1/+0
| | | | | | | | | | This goes to show that once a test is running no one will look at the results...
* | Increasing a timeout on QProcess testsJoão Abecasis2009-09-151-1/+1
| | | | | | | | | | Not a proper fix, but let's see if this increases reliability of the results.
* | Fix QGraphicsView::scrollAfterResize autotest on Mac.Alexis Menard2009-09-151-3/+6
| | | | | | | | | | | | | | | | | | The auto-test was failing because it calculate the scrollbar indent using style primitives. It's very fragile and doesn't work on MacOS style (and may not work on other style too). Since we don't test style stuff here, we can just apply the plastique style for this test. Reviewed-by:TrustMe
* | QCursor support for Symbian OSShane Kearns2009-09-1513-0/+582
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-By: Jason Barron Reviewed-By: Alessandro Portale Summary: QT_NO_CURSOR is now not defined for symbian builds Existing QCursor APIs are all supported New public API, QApplication::setNavigationMode, to allow the navigation mode to be set. I.E. on an S60 3.2 phone, some applications will want a virtual mouse cursor (web browser), while others are designed for keypad navigation. Symbian HAL is used for detecting input capabilities. Fix DND, code cleanup & comment QCursor visibility now uses a refcount, and is called from DND and the setNavigationMode so they are both simpler and don't interfere with each other. QApplication::setNavigationMode New public API for configuring cursor/keypad navi style. This links in with ongoing work on the 4-way keypad navi branch, but 2-way and 4-way modes both act as 2-way mode until that is integrated Some of the demos/examples have cursor switched on (those that were not usable with keypad) Virtual mouse support for non touch, non mouse phones (tested on N78) add *.d and .metadata (carbide debug file / workspace dir) to .gitignore System pointers are unavailable when using sprite workaround, so the system cursor shapes are compiled into qtgui as resources. MAC port does this also for shapes that aren't standard on the MAC. Refactor Drag'n'Drop to use QCursor Add test case to check all system cursor shapes Simply a mainwindow containing a label widget for each cursor shape, with the cursor property set appropriately QCursor(QBitmap,QBitmap) supported Fixed problem with the image & mask being inverted when using the QCursor constructor that takes two mono bitmaps. add .make.cache files to .gitignore Correct implementation of QApplication::setOverrideCursor QApplication::restoreOverrideCursor and QApplication::setOverrideCursor are now working correctly on Symbian platform. Performance will be slower compared with other platforms, because the Symbian window server has a cursor associated with each native window. Add test case for custom cursors Create a pixmap cursor and associate it with a widget. No changes to production code, since test passed 1st time ;) Add manual test for QCursor Make cursor independent of construction order Updated to work around window server issue where contruction order affects what cursor is displayed in child windows. Also changed to effectiveWinId following review comments Also fixed a problem which would make qcursor not link if configured with QT_NO_CURSOR Moved some multiply declared extern functions from cpp to _p.h files Implemented Symbian versions of the cursor functions. Merged in work I'd done based on tower. Fill in bits of stub functions based on windows port Removed QT_NO_CURSOR from list of config options forced on symbian Recompiled configure.exe Added stub functions for the missing functions in s60 port
* | Make the scrollUpdate test function work.Jan-Arve Sæther2009-09-151-1/+1
| | | | | | | | | | | | We could sometimes have more than two paint events even before reaching QTRY_COMPARE, thus it would fail. The test failed on Windows.
* | Fix a bug in FocusScopes; ensure subFocus is set correctly.Andreas Aardal Hanssen2009-09-151-0/+16
| | | | | | | | | | | | | | | | The bug was triggered by setting focus on a parent scope (which then passes focus to the innermost scope). Subfocus was set up for the first scope, but not the inner scopes. Reviewed-by: TrustMe
* | Fix linenumbers.Jan-Arve Sæther2009-09-152-3/+3
| |
* | Don't do pixel tests in QGraphicsEffect on other than 32-bit display.Ariya Hidayat2009-09-151-0/+11
| | | | | | | | Reviewed-by: Paul Olav Tvete
* | Make test pass on WindowsPaul Olav Tvete2009-09-151-1/+3
| | | | | | | | Reviewed-by: Jan-Arve
* | Make the test work with shadow builds.Paul Olav Tvete2009-09-152-10/+10
| | | | | | | | Reviewed-by: Jesper
* | Support for focus scopes: QGraphicsItem::ItemIsFocusScope.Andreas Aardal Hanssen2009-09-151-0/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This feature is essential for Declarative UI, but does not add much value for C++ developers. A FocusScope provides a stack of focused widgets, and it ensures that the topmost item on the stack has focus if any of the items in the stack gains focus. When the topmost loses focus, focus is passed to the "parent" focus scope, and so on. You can get almost the same behavior using panels (ItemIsPanel), except panels impose other behavior, like stopping clickfocus propagation, and stopping event propagation in general. In a QML world you would typically use FocusScope for controlling focus locally, and panels when you need to maintain separate focus stacks. Reviewed-by: akennedy
* | Fix bugs in handling of initial focus.Andreas Aardal Hanssen2009-09-151-0/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | Make sure you can't set focus on an inactive scene, allow items with subfocus to gain focus even if added to a scene that's not active, and finally ensure that activating a panel in an active, but unfocused scene, gives focus to the scene. Also added a test that checks adding normal vs. panel items to an active vs. inactive scene, and what happens if you initially say the item should have focus. Reviewed-by: TrustMe
* | Remove this line; which no longer has any effect.Andreas Aardal Hanssen2009-09-151-0/+5
| | | | | | | | | | | | | | | | | | | | | | This line was added to fix crashes when deleting items that had a subFocusItem pointing to a child that was already deleted. This bug was fixed by ebb1162f54a29baeccb71d1e283146892629518f. After this, subFocusItem is always 0 at this point. The original change was eb3d5a73148cd7206c6b3b6672ed47b44611f745. Reviewed-by: TrustMe
* | Fix tst_QWidget::inputFocus_task257832 on WindowsJan-Arve Sæther2009-09-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The widget must be created before calling QInputContext::setFocusWidget. Otherwise we run into an assertion. Yes, this only occurs in debug configuration but its still annoying... Cherry-pick of commit d6b8f81a2440e7a507ecbb1becd90ef284510787 from master. Reviewed-by: thartman Conflicts: tests/auto/qwidget/tst_qwidget.cpp
* | Fix auto-test in QGraphicsItem.Alexis Menard2009-09-151-4/+2
| |
* | Added support in qimagereader to base plugin selection on stream contentGunnar Sletta2009-09-151-0/+71
| | | | | | | | Reviewed-by: Trond
* | Test if the direction influences the returned graphics anchor object.Jan-Arve Sæther2009-09-151-1/+7
| | | | | | | | Pointed out by Caio.
* | Fix update issues in QGraphicsView.Alexis Menard2009-09-151-0/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The bug appeared only when calling collidingItems right after setPos. When calling setPos on a parent the sceneTransform is mark as dirty, so when we paint the parent and its children if the scene transform of the parent was dirty then we update all children sceneTransform. In our case here, collidingItems call ensureTransform on one of the children which go recursively to the top most dirty item and update the sceneTransform. The problem is that all sibling children are not mark their sceneTransform dirty so next paint will skip them (since the parent is not dirty anymore). Task-number:260711 Reviewed-by:bnilsen
* | Merge commit 'origin/4.5' into 4.6Bill King2009-09-141-0/+61
|\ \ | |/
| * Fixes QSqlTableModel: trying to delete the wrong row.Bill King2009-09-141-0/+61
| | | | | | | | | | | | | | Uses the primary key from the index in the query, not the resulting location in the modified dataset. Task-number: 222678
* | Add filter strength to QGraphics[Colorize,Grayscale]Effect.Ariya Hidayat2009-09-141-0/+40
| | | | | | | | | | Autotest: included Reviewed-by: Bjørn Erik Nilsen
* | Add simple autotest for QGraphicsColorizeEffect.Ariya Hidayat2009-09-141-0/+25
| | | | | | | | Reviewed-by: Bjørn Erik Nilsen
* | Add simple autotest for QGraphicsGrayscaleEffect.Ariya Hidayat2009-09-141-0/+24
| | | | | | | | Reviewed-by: Bjørn Erik Nilsen
* | QSslCertificate autotest: allow test from shadow directoryPeter Hartmann2009-09-141-5/+0
| | | | | | | | Reviewed-by: TrustMe
* | Add strength factor to the colorize filter.Ariya Hidayat2009-09-141-0/+41
| | | | | | | | | | | | | | | | | | | | | | To allow fading between the original and the colorized version of the pixmaps, a new strength factor is introduced, 0.0 means the filter has no effect at all, 1.0 means full colorization. Still missing is the non-raster implementation. Autotest: included Reviewed-by: Bjørn Erik Nilsen
* | Implement synthetic enter/leave events for QWS.Paul Olav Tvete2009-09-141-2/+3
| | | | | | | | | | | | | | QWS uses alien widgets too, so we need the same logic as the other platforms. Reviewed-by: bnilsen
* | Workaround QWS Enter/Leave problem.Paul Olav Tvete2009-09-141-0/+5
| | | | | | | | Reviewed-by: bnilsen
* | API change. This will get rid of the ugly setAnchorSpacing() method.Jan-Arve Sæther2009-09-142-120/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Say hello to QGraphicsAnchor, move the spacing (and removeAnchor) functionality over to that class. This also opens up for a cleaner API when we add support for size policies or min/pref/max sizes for anchors. Also remove - addLeftAndRightAnchors() - addTopAndBottomAnchors() - addAllAnchors() in favor of - addAnchors(itemA, itemB, Qt::Orientations) API change discussed with Caio and Andreas. Reviewed-by: Alexis
* | Fix RTL text alignment in QComboBox items with SH_ComboBox_PopupEskil Abrahamsen Blomfeldt2009-09-141-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change 93ba0035f4eadfaf7217d95f18a442d418a064b8 removed truncation of a listview item's bounding rect to the viewport as documented in the commit log. An unwanted result was that the style option passed to the item delegates would sometimes contain a rectangle which was larger than the delegated area. The direct result was that a QComboBox drawn with a style with the SH_Combobox_Popup style hint in an RTL language would align its item text to the right edge of a rectangle which was wider than the popup menu, and thus only part of the text would be visible. Task-number: 260974 Reviewed-by: Olivier
* | Autotest preventing gl from crashing on shutdown with dangling contextsGunnar Sletta2009-09-141-0/+13
| |
* | Merge branch '4.5' into 4.6Thiago Macieira2009-09-124-3/+7
|\ \ | |/ | | | | | | | | Conflicts: tests/auto/qhttpnetworkconnection/qhttpnetworkconnection.pro tests/auto/qhttpnetworkreply/qhttpnetworkreply.pro