equal
deleted
inserted
replaced
712 << 20 // wheel scroll lines |
712 << 20 // wheel scroll lines |
713 << false // with modifiers |
713 << false // with modifiers |
714 << 1 // delta |
714 << 1 // delta |
715 << int(Qt::Vertical) // orientation of slider |
715 << int(Qt::Vertical) // orientation of slider |
716 << int(Qt::Vertical) // orientation of wheel |
716 << int(Qt::Vertical) // orientation of wheel |
717 #ifdef Q_WS_MAC |
|
718 << 1 // expected position after |
|
719 #else |
|
720 << 20 // expected position after |
717 << 20 // expected position after |
721 #endif |
|
722 << QPoint(0,0); |
718 << QPoint(0,0); |
723 |
719 |
724 QTest::newRow("Normal data page") << 0 // initial position |
720 QTest::newRow("Normal data page") << 0 // initial position |
725 << 0 // minimum |
721 << 0 // minimum |
726 << 100 // maximum |
722 << 100 // maximum |
744 << 20 // wheel scroll lines |
740 << 20 // wheel scroll lines |
745 << false // with modifiers |
741 << false // with modifiers |
746 << 1 // delta |
742 << 1 // delta |
747 << int(Qt::Horizontal) // orientation of slider |
743 << int(Qt::Horizontal) // orientation of slider |
748 << int(Qt::Vertical) // orientation of wheel |
744 << int(Qt::Vertical) // orientation of wheel |
749 << 0 // expected position after |
745 << 1 // expected position after |
750 << QPoint(1,1); |
746 << QPoint(1,1); |
751 |
747 |
752 // Scrolling in a slider of a different orientation than the wheel works |
|
753 // if the mouse pointer is within the widget's rect |
|
754 QTest::newRow("Different orientation2")<< 0 // initial position |
748 QTest::newRow("Different orientation2")<< 0 // initial position |
755 << 0 // minimum |
749 << 0 // minimum |
756 << 100 // maximum |
750 << 100 // maximum |
757 << 100 // single step |
751 << 100 // single step |
758 << 1 // page step |
752 << 1 // page step |
775 << 20 // wheel scroll lines |
769 << 20 // wheel scroll lines |
776 << false // with modifiers |
770 << false // with modifiers |
777 << 1 // delta |
771 << 1 // delta |
778 << int(Qt::Horizontal) // orientation of slider |
772 << int(Qt::Horizontal) // orientation of slider |
779 << int(Qt::Horizontal) // orientation of wheel |
773 << int(Qt::Horizontal) // orientation of wheel |
780 #ifdef Q_WS_MAC |
|
781 << 49 // expected position after |
|
782 #else |
|
783 << 30 // expected position after |
774 << 30 // expected position after |
784 #endif |
|
785 << QPoint(1,1); |
775 << QPoint(1,1); |
786 |
776 |
787 QTest::newRow("Past end") << 50 // initial position |
777 QTest::newRow("Past end") << 50 // initial position |
788 << 0 // minimum |
778 << 0 // minimum |
789 << 100 // maximum |
779 << 100 // maximum |
790 << 26 // single step |
780 << 26 // single step |
791 << 100 // page step |
781 << 100 // page step |
792 << false // inverted controls |
782 << false // inverted controls |
793 << 1 // wheel scroll lines |
783 << 1 // wheel scroll lines |
794 << false // with modifiers |
784 << false // with modifiers |
795 #ifdef Q_WS_MAC |
|
796 << 60 // delta |
|
797 #else |
|
798 << 2 // delta |
785 << 2 // delta |
799 #endif |
|
800 << int(Qt::Horizontal) // orientation of slider |
786 << int(Qt::Horizontal) // orientation of slider |
801 << int(Qt::Horizontal) // orientation of wheel |
787 << int(Qt::Horizontal) // orientation of wheel |
802 << 100 // expected position after |
788 << 100 // expected position after |
803 << QPoint(0,0); |
789 << QPoint(0,0); |
804 |
790 |
808 << 26 // single step |
794 << 26 // single step |
809 << 100 // page step |
795 << 100 // page step |
810 << false // inverted controls |
796 << false // inverted controls |
811 << 1 // wheel scroll lines |
797 << 1 // wheel scroll lines |
812 << false // with modifiers |
798 << false // with modifiers |
813 #ifdef Q_WS_MAC |
|
814 << -60 // delta |
|
815 #else |
|
816 << -2 // delta |
799 << -2 // delta |
817 #endif |
|
818 << int(Qt::Horizontal) // orientation of slider |
800 << int(Qt::Horizontal) // orientation of slider |
819 << int(Qt::Horizontal) // orientation of wheel |
801 << int(Qt::Horizontal) // orientation of wheel |
820 << 0 // expected position after |
802 << 0 // expected position after |
821 << QPoint(0,0); |
803 << QPoint(0,0); |
822 |
804 |