summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets
Commit message (Collapse)AuthorAgeFilesLines
* QHeaderView - preventing negative section sizes.Thorbjørn Lund Martsum2012-02-011-0/+10
| | | | | | | | | | | | | | This patch removes the posibility to call resizeSection with negative sizes. Sections with negative sizes affect the other sections, and it does not seem to have a useful, well-defined semantic. The length can also become negative - and visualIndexAt work strange. Change-Id: I632beb160649fa10e2106314557b8c5a106aa3cf Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
* Add the event loop quitlock feature to QtCore.Stephen Kelly2012-01-311-1/+515
| | | | | | | | | | | | | | | | A feature of a ref-counted quit (managed by a quit-lock class) is added to both QEventLoop and QCoreApplication. This allows, for example, an event loop to quit() when there is no more work for it to do. quitOnLastWindowClosed is implemented in terms of the refcount in QCoreApplication so that jobs can be completed before the application quits. Change-Id: I14c8f4e7ee12bbf81a6e5849290d4c8ff37fa110 Reviewed-by: David Faure <faure@kde.org> Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
* Remove many deprecated methodsLars Knoll2012-01-313-35/+33
| | | | | | | | | | Remove methods that have been marked as deprecated before Qt 4.6. Keep others, but inline them where possible and mark them as QT_DEPRECATED_SINCE(5, 0). Change-Id: If881821ae095f054b31cc13464f19e2007c20ed7 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
* Mac: Fix compilation with -qtnamespace setKai Koehne2012-01-311-1/+6
| | | | | | Change-Id: Id3b9f4e3edf2caeac32c8a44278cdf05a1fc70fb Reviewed-by: hjk <qthjk@ovi.com> Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
* Add public role names setter to QStandardItemModelChris Adams2012-01-311-0/+20
| | | | | | | | | This allows QStandardItemModel to be usable in QML without requiring clients to subclass it. Task-number: QTBUG-15067 Change-Id: I867fcd8137132affdf21f37a9fa293e855a09a13 Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
* Remove Symbian specific code from qtbase.Xizhi Zhu2012-01-311-4/+0
| | | | | Change-Id: I27d37d914b71e1e43c94e2a975ffec49e1ecd456 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* QValidator: Don't fallback to C Locale when validating inputJohn Layt2012-01-312-11/+11
| | | | | | | | | | QIntValidator and QDoubleValidator used to accept C formatted input if the input wasn't valid in the default locale. This change removes this, only the default locale is now used. Change-Id: I8b2d8f9f3849abe3fcb5c12083aae542a76eaf90 Reviewed-by: Jonas Gastal <jgastal@profusion.mobi> Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* Changed qapplication unittest to work from installation directoryKurt Korbatits2012-01-316-25/+18
| | | | | | | | | | - Changed to use TESTDATA and installTestHelperApp() - Changed to use QFINDTESTDATA instead of currentPath() Change-Id: Ia24ebc758d5d0fdfcca951500766adefbcf9fe93 Reviewed-by: Kurt Korbatits <kurt.korbatits@nokia.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Changed qsplitter unittest to work from install directoryKurt Korbatits2012-01-312-9/+2
| | | | | | | | | - Changed qsplitter unittest to use TESTDATA and QFINDTESTDATA Change-Id: I5db0fbfb20e6bd0ec169e884f16c1ec819f4e449 Reviewed-by: Kurt Korbatits <kurt.korbatits@nokia.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* QHeaderView - length returns wrong value fixThorbjørn Lund Martsum2012-01-301-0/+21
| | | | | | | | | | | | | | | | | | | | setSectionHidden called with (logindex, true) will sometimes prevent a (correct) call to resizeSection(logicalIndex, 0). This seems a bit odd - however it does execute d->doDelayedResizeSections(). Therefore the section is going to be hidden later. However it is a problem that the length meanwhile is wrong. (That is a value that is not the sum of the sections) This is fixed by execute updates before returning the length. Task-number: QTBUG-14242 Change-Id: Ia1d2f6db3213792b250a6a37942b56554261cd3a Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* Remove "All rights reserved" line from license headers.Jason McDonald2012-01-30131-131/+131
| | | | | | | | | | As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: I311e001373776812699d6efc045b5f742890c689 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* QWidgets to use QGuiApplication focus object change notificationsPekka Vuorela2012-01-271-8/+4
| | | | | | | | | | | | | Moving away from deprecated QInputPanel inputItem. Small behavioral changes: - On focus proxy widgets, disabling WA_InputMethodEnabled on proxy will no longer disable input method for proxy target. - setEnabled(false) on proxy widget will no longer disable input method for target as a special case. Change-Id: Ifb5b7144d29bd3aefdde7cf4a0bd396db06e67e2 Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
* Fix a typo in tst_qtreewidget autotest.Jędrzej Nowacki2012-01-261-1/+1
| | | | | Change-Id: I573467c3fdfc4b3d059b216258d39944ac546061 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Remove QTextControl and QLineControl.Andrew den Exter2012-01-251-4/+4
| | | | | | | | QtWidgets and QtDeclarative now both have their own versions of these so there's no need to keep them around any longer. Change-Id: I9c2201c8495a0a0816e2af16c8f647fcad991479 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Add a changed() signal to QValidator.Andrew den Exter2012-01-253-0/+49
| | | | | | | | | This provides a general notification of changes that may change the validity of previously validated input. Change-Id: I5ec6f127af60fdca68605fee903a08758bc01360 Reviewed-by: Jonas Gastal <jgastal@profusion.mobi> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Remove QEventLoop::DeferredDeletionBradley T. Hughes2012-01-231-72/+3
| | | | | | | | | | | | This flag has been deprecated since Qt 4.4, so remove it. tst_QApplication had 2 nearly identical tests, one for testing the QEventLoop::DeferredDeletion flag, and one to test sendPostedEvents() with QEvent::DeferredDelete. The latter is the preferred way, so keep that test, but remove the test for the obsoleted flag. Change-Id: Icdb7483c32b3c920bda31d2bbb4f7414ece6d826 Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* Ignore known tst_QStyleSheetStyle failures on Mac OS XBradley T. Hughes2012-01-231-0/+10
| | | | | | Task-number: QTBUG-23686 Change-Id: I566f3b3491576325389862bac2ad7c8526dd930b Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Ignore tst_QStyleSheetStyle::hoverColors() failures on Mac OS XBradley T. Hughes2012-01-231-0/+9
| | | | | | | | | Qt::WA_UnderMouse is not working at the moment, causing this test to fail. Task-number: QTBUG-23685 Change-Id: If167311b09ba8fc3d04d056590588b595825c443 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Ignore tst_QSizeGrip failures on Mac OS XBradley T. Hughes2012-01-231-1/+1
| | | | | | | | This test currently fails on Mac, mark it as insignificant. Task-number: QTBUG-23681 Change-Id: I7355cda953966778d651fafaff837f1083eeb3f4 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Skip tst_QMenu::QTBUG_10735_crashWithDialog() on Mac OS XBradley T. Hughes2012-01-231-0/+4
| | | | | | | | This test currently hangs, preventing the autotest from finishing. Task-number: QTBUG-23677 Change-Id: I3c5f56c10735d65fb35de4e22a1e2e6414532309 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Ignore tst_QMenu::keyboardNavigaction() failure on Mac OS XBradley T. Hughes2012-01-231-0/+7
| | | | | | | | | | The shortcut0 test data fails, indicating that keyboard navigation via shortcuts doesn't work on Mac OS X for the time being. Mark the failure as expected. Task-number: QTBUG-23684 Change-Id: I199222a87c09e6f491e5dcd21c9f65c28ecbb86d Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Skip tst_QPushButton::sizeHint() with Mac style on Mac OS XBradley T. Hughes2012-01-231-0/+5
| | | | | | | | QStyleFactory cannot create the Mac style, so skip the test for now. Task-number: QTBUG-23680 Change-Id: I2ae61aab152cd8a4e6a7270902df40dd3cc6df3b Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Mark tst_QDateTimeEdit with insignificant_test on Mac OS XBradley T. Hughes2012-01-231-3/+1
| | | | | | | | This tests has numerous failures on Mac OS X, ignore the test for now. Task-number: QTBUG-23674 Change-Id: I29bcfd379a6a13f9859e96c5cc6dc7e932feaf4a Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Mark tst_QComboBox::hide() with QEXPECT_FAIL() on Mac OS XBradley T. Hughes2012-01-231-0/+3
| | | | | | | Task-number: QTBUG-23678 Change-Id: I6ced2aa9392f2688ee982113addef7fffcf4b9f2 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Ignore tst_QAbstractSlider failures on Mac OS XBradley T. Hughes2012-01-231-0/+16
| | | | | | | | Mark current failures as expected. Task-number: QTBUG-23679 Change-Id: Ic574dbb0fea3a21ef9963ef16bdf85da4c809036 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Expect tst_QWizard::setPixmap() failure on Mac OS XBradley T. Hughes2012-01-231-4/+10
| | | | | | | Task-number: QTBUG-23701 Change-Id: Iba5b926e57c1565856d17bbfbff4d1da75645ad4 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Expect tst_QFileDilaog:clearLineEdit() failure on Mac OS XBradley T. Hughes2012-01-231-0/+3
| | | | | | | Task-number: QTBUG-23703 Change-Id: I981de80d6946d3637c493bede0adb1b90a539261 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Do not expect tst_QFileDialog::selectFiles() failure on Mac OS XBradley T. Hughes2012-01-231-2/+2
| | | | | | | | | | This test no longer fails: XPASS : tst_QFiledialog::selectFiles() '!listView->selectionModel()- Loc: [tst_qfiledialog.cpp(915)] Change-Id: Ib790c0f81b3d383117cceceaacbf0c3d6a673404 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Do not mark tst_QGraphicsWidget as insignificant anymoreBradley T. Hughes2012-01-231-1/+0
| | | | | | | Allow new failures in this test to block CI. Change-Id: I1c7e797740be2f77f82d00943f6f2018b686481f Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Expect tst_QGraphicsWidget::updateFocusChain...() failure on Mac OS XBradley T. Hughes2012-01-231-0/+3
| | | | | | | | | tst_QGraphicsWidget::updateFocusChainWhenChildDie() currently fails due to what appears to be window activation. Task-number: QTBUG-23699 Change-Id: I404f90d32dba64d558598d97cf805b6c025e6456 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Fix XPASS in tst_QGraphicsWidget on Mac OS XBradley T. Hughes2012-01-231-1/+3
| | | | | | | | | | | | Don't expect failure from these 2 tests anymore: XPASS : tst_QGraphicsWidget::initStyleOption(all) COMPARE() Loc: [tst_qgraphicswidget.cpp(1162)] XPASS : tst_QGraphicsWidget::initialShow2() COMPARE() Loc: [tst_qgraphicswidget.cpp(3196)] Change-Id: Ibd1178f8cab480fa9fad9c829083a4862749c60b Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Fix XPASS in tst_QGraphicsView on Mac OS XBradley T. Hughes2012-01-231-3/+2
| | | | | | | | These tests now fail with XPASS on Mac OS X, so remove/skip the QEXPECTED_FAIL(). Unfortunately we don't know which commit fixed this. Change-Id: Id919a2c9d56fd7c4dee8ccb8aa3293efdce603b2 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Expect tst_QGraphicsProxyWidget::updateAndDelete() failure on Mac OS XBradley T. Hughes2012-01-231-0/+3
| | | | | | | Task-number: QTBUG-23700 Change-Id: Ic472cea966761afc1e6e17479588b8b53ec4786c Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Replace Q_WS_MAC with Q_OS_MAC in tests/auto/widgetsBradley T. Hughes2012-01-2342-211/+195
| | | | | | | | tst_qwidget.cpp will not build/link without tst_qwidget_mac_helpers.mm, so re-add it to the build as well. Change-Id: I55130f62c215c4b82683d90456e31fdb09f833a8 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Update contact information in license headers.Jason McDonald2012-01-23131-131/+131
| | | | | | | Replace Nokia contact email address with Qt Project website. Change-Id: I431bbbf76d7c27d8b502f87947675c116994c415 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Obsolete QInputDialog::getInteger() 'officially'.Robin Burchell2012-01-221-13/+13
| | | | | | | | | It has long since been obsolete in code and removed from the documentation, but was never marked QT_DEPRECATED. Do so, and inline the implementation. Change-Id: Ic7bfdaf76269b7f9addeba83e64bc9525c581dda Reviewed-by: Jonas Gastal <jgastal@profusion.mobi> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Expect tst_QTreeView::editTriggers() failure on Mac OS XBradley T. Hughes2012-01-201-0/+3
| | | | | | | | | EditKeyPressed 4 test data fails, all other test data for the function pass. Task-number: QTBUG-23696 Change-Id: Ied56bd0b653ad4dcc2b6451b486aae7cad134211 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Expect tst_QColumnView::moveCursor() failure on Mac OS XBradley T. Hughes2012-01-201-0/+3
| | | | | | | | Both test data fail. Task-number: QTBUG-23697 Change-Id: Iee4b08a88db33c72c584e326e928863af61c8dd4 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Expect tooltip related test failures on Mac OS XBradley T. Hughes2012-01-203-0/+15
| | | | | | | | Mark test failures related to tool tips with QEXPECT_FAIL(). See QTBUG-23707 for description of the failures. Change-Id: I753256d1db748cef41cf1898620647c4cbacc472 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Ignore failures from tst_QWidget_window on Mac OS XBradley T. Hughes2012-01-201-0/+7
| | | | | | | | | The tst_windowFilePathAndwindowTitle test currently fails, so mark the failures as expected failures for now. Task-number: QTBUG-23682 Change-Id: If64a82c919b218b5c1c38ce5228081bb46fe70ac Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Add "nswindow" resource to the Cocoa native interface implementationBradley T. Hughes2012-01-191-6/+11
| | | | | | | | | This will return the NSWindow* for the given QWindow*. Port the QWidget autotest helper to use the native interface and the "nswindow" resource. Change-Id: I754b7e9288690ac3c99c3ec65c5526d5fe121234 Reviewed-by: João Abecasis <joao.abecasis@nokia.com> Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
* Remove the tst_QWidget::retainHIView() testBradley T. Hughes2012-01-193-118/+0
| | | | | | | | | Qt is Cocoa only now, and does not use HIView anymore, making this test is meaningless. The testAndRelease() and createAndRetain() helper functions are also no longer needed. Change-Id: I26180a4670c8e7445741d3aab510c4da7b65388c Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
* Disable 'make check' for tst_QWidget on Mac OS XBradley T. Hughes2012-01-191-0/+2
| | | | | | | | | This test crashes, which can destabilize the CI system, so don't run the test for now. It is still compiled as part of the build process, though. Task-number: QTBUG-23695 Change-Id: I841fab7c56b8dba33e8d1b074f118b65790f34ef Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Fix hang in tst_qwidgetaction on Windows.Friedemann Kleint2012-01-191-1/+1
| | | | | | | Increase timer interval. Change-Id: I2cf40415d356c29ebd753a0e78f43aee474123ca Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Remove QInputContext usage from QWidget testPekka Vuorela2012-01-191-21/+11
| | | | | Change-Id: Ifcd600f5efd5bd079dd2f8d66803e34ffa6df37f Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
* QWidget editors to return correct value for Qt::ImEnabledPekka Vuorela2012-01-192-1/+19
| | | | | | | | | | Qt::ImEnabled input method query was added for Qt5. Enhancing source compatibility with Qt4 by setting query value in QWidget if widget does not return any valid value. Change-Id: I274c1f6c47a5cb08ecf550b25e5b358622e21d90 Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
* Make tst_QGraphicsAnchorLayout1 pass on Mac OS XBradley T. Hughes2012-01-171-8/+6
| | | | | | | | | | On Mac OS X, tests are build with QT_DEBUG defined, but run against libraries built with QT_NO_DEBUG, so the expected warning output is not seen. Use a run-time check instead to know whether or not to expect the warning output. Change-Id: Ifb772b764d4135cc8f896827727939fd8cff5388 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Mark tst_QFileDialog2 failure as expected on Mac OS XBradley T. Hughes2012-01-171-0/+3
| | | | | Change-Id: I678e1c714ac9c376484b4a3a5d9bfd2bd100e685 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Flag tst_qmenubar tests as unstable.Toby Tomkins2012-01-161-0/+3
| | | | | | | | Task-number: QTBUG-4965 Task-number: QTBUG-11823 Change-Id: Ie8b5093867cf177197e405fdcf3205d4436c110a Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Flag tst_QDoubleSpinBox::task255471_decimalsValidation test as unstable.Toby Tomkins2012-01-161-0/+3
| | | | | | | Task-number: QTBUG-23641 Change-Id: Iaa44ab20d2e50cd6fb0a1327efef35c1036f9e4c Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>