diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2012-02-18 08:52:13 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-21 15:28:40 +0100 |
commit | 5d6b2d5e343e27940e5fd78cb2aa897aac6bc2ed (patch) | |
tree | 36611ecca3b35f515906cb59ba291ec0faca4d09 /tests/auto/corelib | |
parent | 689311a5683162889311ce6c994803b59a690746 (diff) |
QEasingCurve: add member-swap
Implementated as in QPen etc.
Change-Id: Ia08551bf7902b60e115d1b1d2353030597e34841
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib')
-rw-r--r-- | tests/auto/corelib/tools/qeasingcurve/tst_qeasingcurve.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/corelib/tools/qeasingcurve/tst_qeasingcurve.cpp b/tests/auto/corelib/tools/qeasingcurve/tst_qeasingcurve.cpp index 0a006ab5b4..d5d7ddeb1d 100644 --- a/tests/auto/corelib/tools/qeasingcurve/tst_qeasingcurve.cpp +++ b/tests/auto/corelib/tools/qeasingcurve/tst_qeasingcurve.cpp @@ -445,6 +445,13 @@ void tst_QEasingCurve::setCustomType() void tst_QEasingCurve::operators() { + { // member-swap() + QEasingCurve ec1, ec2; + ec2.setCustomType(&discreteEase); + ec1.swap(ec2); + QCOMPARE(ec1.type(), QEasingCurve::Custom); + } + // operator= QEasingCurve curve; QEasingCurve curve2; |