summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Add support for creating the object alongside the Data structure in ↵Thiago Macieira2009-07-021-100/+2
| | | | | | | | | | | | | | | | QSharedPointer" This reverts commit fb51a10ee0451274a430227566ae26efb2ac4474. Sorry, it didn't work. I can fix the MSVC error, but the problem is that older GCC versions (4.2) fail with the following code: template<typename T> struct Buffer { char buffer[128] __attribute__((aligned(__alignof__(T)))); }; The same works fine in GCC 4.4.
* Experimental: allow QSharedPointer to be used with forward declarations that ↵Thiago Macieira2009-07-028-12/+223
| | | | | | | | | | | | | are declared in this file. The one-definition rule allows the forward declaration appearing below to apply to code that was earlier. Therefore, if the compiler finds out how to delete the object, we can allow a QSharedPointer of a forward- declared-type. This means the actual problem is just a warning with g++. To catch the error, we need a separate .cpp file and I'd rather run this as an external test.
* Add support for creating the object alongside the Data structure inThiago Macieira2009-07-021-2/+100
| | | | | | | | | one go. This avoids one memory allocation. Currently, we only support calling the default constructors. I will *NOT* implement argument passing for C++03. I will implement it with rvalue references for C++0x-capable compilers.
* Add qobject_cast for QSharedPointer.Thiago Macieira2009-07-021-0/+123
| | | | | | | | | This obviously only works for classes that derive from QObject. And you must remember that QSharedPointer controls the QObject's lifetime, not the QObject parent-child relationship. Reviewed-by: dt Reviewed-by: Bradley T. Hughes
* Merge branch 'research/qdbus-improvements'Thiago Macieira2009-07-0211-16/+1315
|\
| * Implement a support for getting return arguments out of invokeMethodThiago Macieira2009-07-021-1/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with QDBusInterface. The problem was that I didn't know how to implement the operator= for all types. But it turns out that this was possible all along: the only types I have to implement the operator= for are the basic types, which are already demarshalled. The complex types are left in QDBusArgument semi-demarshalling, but we have QDBusMetaType::demarshall, which takes a void* to an already-constructed type and demarshalls into it. That's exactly what the doctor ordered. Task-number: 206765 Reviewed-By: Marius Bugge Monsen
| * Replace internalPropGet and internalPropSet with the QObject versions in ↵Thiago Macieira2009-07-021-8/+8
| | | | | | | | | | | | | | | | QDBusAbstractInterface. They're now good enough and as fast. Reviewed-By: Marius Bugge Monsen
| * Autotest: add tests for checking variant propertiesThiago Macieira2009-07-024-2/+60
| |
| * Autotest: Add property-setting and getting tests to QDBusInterfaceThiago Macieira2009-07-021-2/+100
| |
| * Autotest: Add testing of QDBusAbstractInterfaceThiago Macieira2009-07-028-0/+937
| |
| * Autotest: add tests for method call errorsThiago Macieira2009-07-021-2/+103
| |
| * Autotest: make sure we create the QDBusInterface after the object exists.Thiago Macieira2009-07-021-9/+12
| | | | | | | | | | | | | | | | | | The current code allows making calls to QDBusInterface objects that failed to introspect. It's technically a valid condition. You won't be able to connect to signals, get or set properties, but making calls was possible. I don't know if I want to keep this change in behaviour.
| * Adapt the message-sending code to return error messages from theThiago Macieira2009-07-021-2/+14
| | | | | | | | | | | | marshalling code. Reviewed-By: Harald Fernengel
* | add support for attaching meta data to translatable messagesOswald Buddenhagen2009-07-022-0/+40
| | | | | | | | Requirement: QT-457
* | Merge branch '4.5'Thiago Macieira2009-07-026-2/+216
|\ \ | |/
| * add license headersOswald Buddenhagen2009-07-025-0/+205
| |
| * Get more autotests passing/fixed up.Bill King2009-07-022-2/+16
| |
* | add a few QObject binding testsKent Hansen2009-07-021-0/+23
| |
* | QAnimation: fix a jump in values when restarting an animationThierry Bastian2009-07-011-0/+5
| |
* | Animations: adding an autotest for jumping values when restartingThierry Bastian2009-07-011-0/+52
| | | | | | | | | | The problem is that when restarting, the time is at the end. So the current value changes to the end value instead of the initial value.
* | Fixed inheritance of some attributes in SVG.Suneel BS2009-07-011-0/+124
| | | | | | | | | | | | | | Fixed inheritance of stroke attributes, the font-size and text-anchor attribute. Autotest added by Kim. Reviewed-by: Kim
* | tests: Remove QT_WA and non-Unicode code paths, dropping Win9x and NT supportminiak2009-07-0120-257/+133
| | | | | | | | | | Merge-request: 604 Reviewed-by: Marius Storm-Olsen <marius@trolltech.com>
* | Added QGraphicsScene::sendEvent().J-P Nurmi2009-07-011-1/+28
| | | | | | | | | | Merge-request: 787 Reviewed-by: Bjørn Erik Nilsen <bjorn.nilsen@nokia.com>
* | ItemViews: Fixed signal entered not being emitted when using the mouseThierry Bastian2009-07-011-0/+19
| | | | | | | | | | | | | | | | | | | | wheel The solution is to check the the current "entered item" hasn't change also when the scrollbars change values Task-number: 200665 Reviewed-by: janarve
* | Set the focus to a child widget when set on a QGroupBoxBenjamin Poulain2009-06-301-0/+11
| | | | | | | | | | | | | | | | | | When the focus is set on a QGroupBox with the policy NoFocus, the focus should be propagated to one of the child if it accepts the focus. This was failing because QWidget::focusWidget() returns the QGroupBox itself. Task-number: 257158 Reviewed-by: Denis
* | add 4.6 specific modifications to linguist tools testsOswald Buddenhagen2009-06-307-2/+123
| |
* | Merge commit 'origin/4.5'Oswald Buddenhagen2009-06-30200-0/+6573
|\ \ | |/
| * integrate linguist tool autotests into the qt testsuiteOswald Buddenhagen2009-06-30200-0/+6573
| | | | | | | | Task-number: 218935
* | add basic tests for QVariant/QObject qtscript integrationKent Hansen2009-06-301-0/+10
| | | | | | | | | | Some of the more advanced tests will fail for non-obvious reasons if these basic assumptions don't hold.
* | Merge branch '4.5'Marius Storm-Olsen2009-06-305-8/+43
|\ \ | |/
| * Compile qmake autotestMarius Storm-Olsen2009-06-301-1/+1
| |
| * QTemporaryFile: Report the user-provided openModeJoão Abecasis2009-06-291-0/+33
| | | | | | | | Reviewed-by: Thiago
| * Fix autotest failure in QStyle:drawItemPixmapJens Bache-Wiig2009-06-292-1/+5
| | | | | | | | | | | | | | This was basically a problem with shadow builds not being able to access the pixmap. Reviewed-by:eskil
| * bug fixDerick Hawcroft2009-06-291-6/+4
| | | | | | | | | | Task-number: 217003 Reviewed-by: Bill King
* | Fixes more DB autotests for testing against SQL ServerBill King2009-06-303-20/+44
| |
* | QXmlQuery: add setFocus(const QString &).Frans Englich2009-06-291-0/+52
| | | | | | | | | | | | | | | | Requested by Girish and Jurgen. Useful for training and small examples. Task-number: 245219 Reviewed-by: Tobias Koenig AutoTest: Included in this submit.
* | QMenuBar: adding autotest for the geometry calculationThierry Bastian2009-06-291-8/+34
| | | | | | | | Also fixed a bug that would take the VMargin 3 times instead of 2.
* | QMenuBar: adding autotest and simplify/fix geometry calculationThierry Bastian2009-06-291-0/+43
| |
* | QMenu: adding autotest for the geometry calculationsThierry Bastian2009-06-291-0/+35
| | | | | | | | I also fixed an off-by-1 pixel bug
* | Enable the new QWebHistory autotest, coming from src/3rdparty/webkitSimon Hausmann2009-06-294-1/+61
| | | | | | | | Reviewed-by: Trust me
* | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtJason McDonald2009-06-291-0/+76
|\ \
| * | Fixed QPushButton sizeHint recalculation bug.jasplin2009-06-291-0/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch causes the size hint of QPushButton to be recalculated in cases where the value of the autoDefault property may have changed due to changes in the ancestor chain. If not explicitly set, the value of the autoDefault property depends on the presence of a QDialog ancestor. Note: The new autotest covers two different use cases related to this behavior. Reviewed-by: janarve Task-number: 255581
* | | Fix license headers after multitouch+gestures merge.Jason McDonald2009-06-291-5/+5
|/ / | | | | | | | | | | | | Commercial license headers belong in source packages only. The repo must have the pre-release license headers. Reviewed-by: Trust Me
* | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtJason McDonald2009-06-2910-0/+1163
|\ \
| * | Added dummy backend for phonon for testing.Kurt Korbatits2009-06-2910-0/+1163
| | |
* | | Fix old/missing license headers from multitouch+gestures merge.Jason McDonald2009-06-293-6/+6
|/ / | | | | | | Reviewed-by: Trust Me
* | Merge branch '4.5'Thiago Macieira2009-06-281-0/+1
|\ \ | |/
| * Fix painting errors in QScrollArea on Mac (Carbon)Morten Sørvig2009-06-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is mainly a stop-gap solution for 4.5.x. It trades painting performance for correct painting. Commit 7988d05da changed the opaque test from q->testAttribute(Qt::WA_OpaquePaintEvent) to qt_widget_private(w)->isOpaque in qt_mac_update_widget_posisiton. This means we'll do optimized moves in more cases. Unfortunately it also causes painting errors in some cases (see the task). Revert the commit for now to put the 4.5 branch in a god shape. Task-number: 252295 Reviewed-by: nrc
* | QMenu: refactor of the update of the geometry to have one central placeThierry Bastian2009-06-261-2/+2
| | | | | | | | of calculation (ie. updateActionRects)
* | Autotest: remove or correct invalid testsThiago Macieira2009-06-261-20/+3
| | | | | | | | | | | | | | | | | | | | | | In making QUrl more strict with hostnames (to avoid malicious attacks), I'm implementing the STD3 checks described by RFC 3490. These tests are invalid, so they are being removed or corrected. STD3 requires that the hostname be composed of Letters, Digits, Hyphens (so no underlines) and limited to 63 characters. Also, an empty port doesn't make sense.