tests/auto/declarative/qdeclarativemousearea/tst_qdeclarativemousearea.cpp
changeset 33 3e2da88830cd
parent 30 5dc02b23752f
equal deleted inserted replaced
30:5dc02b23752f 33:3e2da88830cd
    43 #include <QtTest/QSignalSpy>
    43 #include <QtTest/QSignalSpy>
    44 #include <private/qdeclarativemousearea_p.h>
    44 #include <private/qdeclarativemousearea_p.h>
    45 #include <private/qdeclarativerectangle_p.h>
    45 #include <private/qdeclarativerectangle_p.h>
    46 #include <QtDeclarative/qdeclarativeview.h>
    46 #include <QtDeclarative/qdeclarativeview.h>
    47 #include <QtDeclarative/qdeclarativecontext.h>
    47 #include <QtDeclarative/qdeclarativecontext.h>
       
    48 
       
    49 #ifdef Q_OS_SYMBIAN
       
    50 // In Symbian OS test data is located in applications private dir
       
    51 #define SRCDIR "."
       
    52 #endif
    48 
    53 
    49 class tst_QDeclarativeMouseArea: public QObject
    54 class tst_QDeclarativeMouseArea: public QObject
    50 {
    55 {
    51     Q_OBJECT
    56     Q_OBJECT
    52 private slots:
    57 private slots:
   130     QCOMPARE(xminSpy.count(),1);
   135     QCOMPARE(xminSpy.count(),1);
   131     QCOMPARE(xmaxSpy.count(),1);
   136     QCOMPARE(xmaxSpy.count(),1);
   132     QCOMPARE(yminSpy.count(),1);
   137     QCOMPARE(yminSpy.count(),1);
   133     QCOMPARE(ymaxSpy.count(),1);
   138     QCOMPARE(ymaxSpy.count(),1);
   134 
   139 
       
   140     // filterChildren
       
   141     QSignalSpy filterChildrenSpy(drag, SIGNAL(filterChildrenChanged()));
       
   142 
       
   143     drag->setFilterChildren(true);
       
   144 
       
   145     QVERIFY(drag->filterChildren());
       
   146     QCOMPARE(filterChildrenSpy.count(), 1);
       
   147 
       
   148     drag->setFilterChildren(true);
       
   149     QCOMPARE(filterChildrenSpy.count(), 1);
       
   150 
   135     delete canvas;
   151     delete canvas;
   136 }
   152 }
   137 
   153 
   138 void tst_QDeclarativeMouseArea::resetDrag()
   154 void tst_QDeclarativeMouseArea::resetDrag()
   139 {
   155 {