From fd8d7261cc25a7a2efcf42c59f9f11d0280e4383 Mon Sep 17 00:00:00 2001 From: Jens Bache-Wiig Date: Fri, 25 Oct 2013 13:20:38 +0200 Subject: More styling improvements for Base Style - Better scalability - Retina support - Added glow filter to Private - Added focus rects Change-Id: I2ec36a9db546c21e20408429c5e17fde8d67b7c3 Reviewed-by: Gabriel de Dietrich --- tests/auto/controls/data/tst_scrollview.qml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'tests') diff --git a/tests/auto/controls/data/tst_scrollview.qml b/tests/auto/controls/data/tst_scrollview.qml index c9503b88..16ebf6c2 100644 --- a/tests/auto/controls/data/tst_scrollview.qml +++ b/tests/auto/controls/data/tst_scrollview.qml @@ -92,16 +92,20 @@ TestCase { function test_clickToCenter() { - var test_control = 'import QtQuick 2.1; \ - import QtQuick.Controls 1.1; \ - import QtQuick.Controls.Styles 1.1; \ - ScrollView { \ - id: _control1; \ - width: 100 ; height: 100; \ - Item { width: 200; height: 200 }\ - activeFocusOnTab: true; \ - style:ScrollViewStyle{} \ - } ' + var test_control = 'import QtQuick 2.1; \ + import QtQuick.Controls 1.1; \ + import QtQuick.Controls.Styles 1.1; \ + ScrollView { \ + id: _control1; \ + width: 100 ; height: 100; \ + Item { width: 200; height: 200 } \ + activeFocusOnTab: true; \ + style:ScrollViewStyle{ \ + handle: Item {width: 16 ; height: 16} \ + scrollBarBackground: Item {width: 16 ; height: 16} \ + incrementControl: Item {width: 16 ; height: 16} \ + decrementControl: Item {width: 16 ; height: 16}} }' + var scrollView = Qt.createQmlObject(test_control, container, '') verify(scrollView !== null, "view created is null") verify(scrollView.flickableItem.contentY === 0) -- cgit v1.2.3