summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
| * QHttpNetworkConnection autotest: include zlib dirPeter Hartmann2009-09-101-0/+1
| | | | | | | | | | | | test was not building Reviewed-by: Trust Me
| * tst_qinfo: Be more verbose in case of failuresMarkus Goetz2009-09-101-0/+6
| |
| * Fixes autotest for MS SQL ServerBill King2009-09-101-1/+4
| | | | | | | | Merging fix back into 4.5 tree
| * Fixes determination of end of odbc string on deficient driverBill King2009-09-101-0/+41
| | | | | | | | | | | | | | Ported this fix backwards from 4.6 to 4.5 Adds some cleanups (using QVarLengthArray), and reverting to the initial and correct calculation (when the driver doesn't deem fit to return SQL_NO_DATA).
| * Autotest: fix the test for NUL in SAN. It was missing "www".Thiago Macieira2009-09-091-1/+1
| | | | | | | | Reviewed-by: Marius Bugge Monsen
| * tst_qhostinfo: Backported some 4.6 fixes, increased timeoutMarkus Goetz2009-09-091-7/+4
| |
| * QHttpNetworkConnection autotest: include zlib dirPeter Hartmann2009-09-091-0/+1
| | | | | | | | | | | | test was not building Reviewed-by: Trust Me
| * network-settings.h: Check for DNS setup only when neededMarkus Goetz2009-09-081-0/+2
| |
| * Fix moc test after licence change.Olivier Goffart2009-09-081-1/+1
| | | | | | | | os9-newlines.h must not contains any linebreak
| * Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qt into 4.5Jason McDonald2009-09-081-0/+26
| |\
| * | Update license headers again.Jason McDonald2009-09-081227-4905/+4906
| | | | | | | | | | | | Reviewed-by: Trust Me
* | | Respect the layoutDirection property of the parent widget.Jan-Arve Sæther2009-09-111-0/+78
| | | | | | | | | | | | | | | | | | | | | Add a layoutDirection autotest, and sprinkle some of the tests with checkReverseDirection() Reviewed-by: Eduardo M. Fleury
* | | Better failure message when it failsPaul Olav Tvete2009-09-111-0/+4
| | | | | | | | | | | | | | | | | | | | | Some platforms do not recalculate the Qt::WA_UnderMouse attribute when a widget is shown underneath the mouse. Reviewed-by: Olivier
* | | Merge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6Janne Anttila2009-09-114-3/+28
|\ \ \
| * | | Skip pointless testPaul Olav Tvete2009-09-111-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | It is planned that this test will do something sensible in the future. Reviewed-by: Jesper
| * | | Out of memory fix for qUncompressRobert Griebl2009-09-111-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qUncompress shouldn't crash when running out of memory, since it might deal with buffers which are not under user control (same behavior as Qt 4.5). It will however throw a std::bad_alloc exception if Qt is compiled with exception handling. Reviewed-by: Harald Fernengel Reviewed-by: Ralf Engels Reviewed-by: Lars Knoll
| * | | animations now display a warning if they don't have a end valueThierry Bastian2009-09-111-0/+5
| | | | | | | | | | | | | | | | also improved the autotests
| * | | Fix autotests on QMenuBarThierry Bastian2009-09-111-1/+6
| | | | | | | | | | | | | | | | We have mousemove events but we were missing the mouse press ones.
* | | | Fixed QWidget::activateWindow for Symbian.Janne Anttila2009-09-111-11/+47
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | activeWindow documentation says: "active window is a visible top-level window that has the keyboard input focus" and "If you want to ensure that the window is stacked on top as well you should also call raise(). Note that the window must be visible, otherwise activateWindow has no effect." What we were doing earlier was basically raise. Now we just set the keyboard focus to underlying native window. Task-number: 260685 Reviewed-by: Jason Barron
* | | Merge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6Janne Anttila2009-09-113-5/+15
|\ \ \
| * | | Fixed a bug in the autotest for q3progressbar.Martin Smith2009-09-112-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The "standard" test would sometimes fail (Mac OS X) because extra paint events could be generated, which would cause paintNumber to be > 1. Comparing it to 1 would fail. This test should be redesigned, I think.
| * | | make tst_QLocalSocket::writeToClientAndDisconnect even more robustJoerg Bornemann2009-09-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | no more qApp->processEvents() ! Reviewed-by: ossi
* | | | Fixed QWidget::setWindowState for Symbian.Janne Anttila2009-09-112-0/+44
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this commit calling setWindowState(Qt::WindowFullScreen) on a widget instance affected all new widget instances created after this method. This bug happened due to fact that window decorations i.e. statuspane and softkeys visibility was only changed when switching to or from fullscreen state. In the reported bug it happened that second widget was initially in Qt::WindowNoState and it was changed to Maximized. Since window decorations are global not window specific at the moment, the default decoration visibility for second window is the one to which previous window has set them. In this case previous window was in fullscreen and that's why the decorations were visible also for second maximized window. Probably the right fix would be to change the decoration to window specific but that is quite a big change and for now the bug is fixed with this commit. Autotest: Excluding new test case, same results before and after. Task-number: 261048 Reviewed-by: Jason Barron
* | | Fixes regression in QStyleSheet regarding QFrame:no-frameOlivier Goffart2009-09-101-17/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Qt know the frame is drawn in PE_Widget with stylesheet. But the QStyleOption passed by QWidgetPrivate::drawBackground is really simple and doesn't contains frame information. We need to rely on the widget itself to know if we should look for the :no-frame pseudo element. Reviewed-by: jbache Task-number: 261110
* | | make tst_QLocalSocket::writeToClientAndDisconnect more robustJoerg Bornemann2009-09-101-1/+1
| | | | | | | | | | | | | | | | | | We must wait until all data is written before trying to read stuff. Reviewed-by: ossi
* | | Fixed a leak in lance that could cause crashes on exit.Trond Kjernåsen2009-09-101-0/+1
| | | | | | | | | | | | Reviewed-by: Kim
* | | Make test pass on QWSPaul Olav Tvete2009-09-101-0/+1
| | | | | | | | | | | | Reviewed-by: jbarron
* | | Wrong opacity set on the painter in QGraphicsEffect::draw.Bjørn Erik Nilsen2009-09-101-1/+24
| | | | | | | | | | | | | | | | | | | | | | | | We have to initialize the painter with the 'effected' item's opacity before calling QGraphicsEffect::draw; otherwise we'll use the previous rendered item's opacity (which is wrong). Reviewed-by: Michael Brasser
* | | Add an autotest for QGLWidget::renderPixmap()Tom Cooksey2009-09-101-0/+30
| | |
* | | Fix random selection when the order is descending.Alexis Menard2009-09-102-20/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit fix the random selection that appear when the sort is not ascending. The problem is that sometimes the sort is not yet made (timer is not yet fired) so the visible children list contains both sorted items and non sorted items (at the end). translateVisibleLocation was buggy assuming that the list is always sorted. We have now a dirty index that indicate where the dirty items start. And then when the sort is made the dirty index is reset. I have added auto-test for that and fix one that was broken for Mac. The new version of the auto-test showed a crash because of this broken selection. Task-number:258751 Reviewed-by:thierry
* | | Stabilize Graphics View testsOlivier Goffart2009-09-103-48/+93
| | | | | | | | | | | | Reviewed-by: Jesper
* | | Stabilize some tests.Olivier Goffart2009-09-103-4/+8
| | | | | | | | | | | | | | | | | | | | | For the QFontMetrics test, the different way of computing the with of a text returs different value (1 to 2 pixel difference). So we need to make sure to use the same way to compute the with that the one used to ellide.
* | | Autotest fix for QMainWindowThierry Bastian2009-09-101-2/+6
| | | | | | | | | | | | | | | On embedded, the size of the screen is too small to leave enough space for the dock widgets.
* | | Make exception safety test work with XML output and warningsmread2009-09-101-2/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The QTestLib XML output system throws exceptions when the system is out of memory, which is normally quite reasonable. However when it is used to report warnings during a catch block, this terminates the program. So this change temporarily disables allocation failures while the warning is being recorded. Reviewed-by: Jason Barron
* | | CompilePaul Olav Tvete2009-09-101-2/+8
| | | | | | | | | | | | Reviewed-by: Jeremy Katz
* | | Fixed tst_selftests failure.Rohan McGovern2009-09-101-6/+6
| | | | | | | | | | | | | | | It's acceptable for the exceptionthrow test to output: terminate called after throwing an instance of `int'
* | | Fixes another SQL Server autotest result.Bill King2009-09-101-2/+2
| | |
* | | tests/auto/qfiledialog/qfiledialog.pro fixedJoerg Bornemann2009-09-091-3/+3
| | | | | | | | | | | | Reviewed-by: thartman
* | | tests/auto/qdirmodel/qdirmodel.pro fixedJoerg Bornemann2009-09-091-2/+2
| | | | | | | | | | | | Reviewed-by: thartman
* | | tests/auto/qfile/test/test.pro fixedJoerg Bornemann2009-09-091-4/+4
| | | | | | | | | | | | Reviewed-by: thartman
* | | tests/auto/qdir/qdir.pro fixed after destroying it during Symbian mergeJoerg Bornemann2009-09-091-12/+8
| | | | | | | | | | | | Reviewed-by: thartman
* | | Account for right bearing in QFontMetrics::boundingRect(string)Eskil Abrahamsen Blomfeldt2009-09-091-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QFontMetrics::boundingRect() that takes a string needs to account for the right bearing of the last glyph, as it is documented to be the rectangle that contains the pixels of the text. I've added a test for this, and fixed tst_QFontMetrics::elidedText() to use boundingRect() to find the actual width of the text drawn (width() will return the advance of the text, which is larger than the actual width of the pixels.) I've also fixed a small typo in the "len" -> "ilen". Reviewed-by: Simon Hausmann
* | | Fix crash/bug in QGraphicsItem's subFocus handling.Andreas Aardal Hanssen2009-09-091-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | Removes dangling subFocusItem pointers when changing focus after reparenting. This change also includes a mini-optimization when adding focusable items to an inactive scene. Reviewed-by: brad
* | | Only active QGraphicsScenes can have active input focus.Andreas Aardal Hanssen2009-09-095-20/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change ensures that only active scenes can have active input focus items. If you try to set input focus on items that are in an inactive scene, these items will gain input focus only when the scene is activated. For scenes attached to a view, this change should only fix the bug that you could have a blinking line edit in a scene when the view is inactive, meaning you couldn't type into the line edit. For scenes that have no view, you now must activate the scene in order to give the items active input focus. This will affect those who use QGraphicsScene with custom key and focus handling. Reviewed-by: brad
* | | Remove ItemAutoDetectsFocusProxy from QGraphicsItem.Andreas Aardal Hanssen2009-09-091-71/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change partially reverts f68fed388dcdba6ab6dad3af4933bcd3aa123cf8, which was an attempt at getting FocusRealms working. Turns out this approach is wrong. The flag behaves badly when reparenting, and the feature conflicts with plain old setting focus. Discussed with Aaron; this change was already reverted in the kinetic-declarativeui branch. Reviewed-by: TrustMe
* | | skip tst_qscriptdebugger on Windows CE < 6Joerg Bornemann2009-09-091-0/+19
| | | | | | | | | | | | | | | | | | Currently the QScriptEngineDebugger uses far too much memory. Until task 261062 is resolved, we skip these test cases. Discussed with Kent.