summaryrefslogtreecommitdiffstats
path: root/tests/auto/qvariant
Commit message (Collapse)AuthorAgeFilesLines
* Fix memory leakOlivier Goffart2009-08-211-1/+1
| | | | | | | | | When the variant is invalid the shared is not destroyed. We even can avoid the creation of the PrivateShared if we know the variant is invalid Reviewed-by: Thierry
* Optimize contrcuction of variant of type pointer.Olivier Goffart2009-08-211-0/+1
| | | | | | | | | | | | | Constructing a variant of a pointer type was previously quite slow: QVariant had no information it was a pointer. It had to create a QVariant::PrivateShared, ask the QMetaType for a constructor (slow as it involve locking mutextes) and allocate a pointer. By detecting a pointer in qVariantFromValue, we can store the pointer value dirrectly in the Variant union. We then avoid 2 allocations, and the expensive locking in QMetaType::construct Reviewed-by: Thierry
* Fix QVariant::toFloat() and QVariant::toRealOlivier Goffart2009-08-201-1/+37
| | | | Reviewed-by: Thierry
* Update obsolete URL's in code and docs.Jason McDonald2009-08-121-1/+1
| | | | Reviewed-by: Trust Me
* Update contact URL in license headers.Jason McDonald2009-08-121-1/+1
| | | | Reviewed-by: Trust Me
* Make typeToName testcase pass, and add basic test for Math3D classes.Volker Hilsheimer2009-07-271-2/+84
| | | | Reviewed-by: Trustme
* 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 license header changes from 4.5Volker Hilsheimer2009-06-161-2/+2
|\
| * Update license headers as requested by the marketing department.Jason McDonald2009-06-161-2/+2
| | | | | | | | Reviewed-by: Trust Me
* | Adding support in QVariant for conversions between QUrl and QStringThierry Bastian2009-06-101-3/+11
| | | | | | | | Reviewed-by: ogoffart
* | Fixed to float support in QVariantThierry Bastian2009-04-271-0/+50
|/ | | | also added autotests
* Remove obsolete code from autotests.Jason McDonald2009-04-161-4/+0
| | | | | | | | Each version of Qt has its own set of autotests, therefore preprocessor directives relating to obsolete QT_VERSION's are not necessary. Reviewed-by: Carlos Duclos
* Long live Qt 4.5!Lars Knoll2009-03-233-0/+2924