diff options
author | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2016-02-27 13:15:46 +0100 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2016-03-15 21:44:12 +0000 |
commit | ef885485a19f0e70273650d88312af0195c32920 (patch) | |
tree | 48ca030228c456a53e08c45df97dee0944a7d2c8 /tests/auto/pressandhold | |
parent | e1add88186ed3ace78c7f6c1e3d683285a1a51fa (diff) |
Add SwipeDelegate
SwipeDelegate presents a view item that can be swiped left or right to
expose more options or information. It is used as a delegate in views
such as ListView.
Change-Id: I7533a2b223f652993b6cee730930ea6dc125c869
Task-number: QTBUG-51610
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'tests/auto/pressandhold')
-rw-r--r-- | tests/auto/pressandhold/tst_pressandhold.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/pressandhold/tst_pressandhold.cpp b/tests/auto/pressandhold/tst_pressandhold.cpp index f61c9f56..8ec77f46 100644 --- a/tests/auto/pressandhold/tst_pressandhold.cpp +++ b/tests/auto/pressandhold/tst_pressandhold.cpp @@ -68,6 +68,7 @@ void tst_PressAndHold::pressAndHold_data() QTest::addColumn<QByteArray>("signal"); QTest::newRow("Button") << QByteArray("import Qt.labs.controls 1.0; Button { text: 'Button' }") << QByteArray(SIGNAL(pressAndHold())); + QTest::newRow("SwipeDelegate") << QByteArray("import Qt.labs.controls 1.0; SwipeDelegate { text: 'SwipeDelegate' }") << QByteArray(SIGNAL(pressAndHold())); QTest::newRow("TextField") << QByteArray("import Qt.labs.controls 1.0; TextField { text: 'TextField' }") << QByteArray(SIGNAL(pressAndHold(QQuickMouseEvent*))); QTest::newRow("TextArea") << QByteArray("import Qt.labs.controls 1.0; TextArea { text: 'TextArea' }") << QByteArray(SIGNAL(pressAndHold(QQuickMouseEvent*))); } |