2011-04-27 10:05:43 +00:00
|
|
|
/****************************************************************************
|
|
|
|
**
|
2016-01-15 12:36:27 +00:00
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
2011-04-27 10:05:43 +00:00
|
|
|
**
|
|
|
|
** This file is part of the test suite of the Qt Toolkit.
|
|
|
|
**
|
2016-01-15 12:36:27 +00:00
|
|
|
** $QT_BEGIN_LICENSE:GPL-EXCEPT$
|
2012-09-19 12:28:29 +00:00
|
|
|
** Commercial License Usage
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
2015-01-28 08:44:43 +00:00
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
2016-01-15 12:36:27 +00:00
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
2012-09-19 12:28:29 +00:00
|
|
|
**
|
2016-01-15 12:36:27 +00:00
|
|
|
** GNU General Public License Usage
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU
|
|
|
|
** General Public License version 3 as published by the Free Software
|
|
|
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
|
|
** included in the packaging of this file. Please review the following
|
|
|
|
** information to ensure the GNU General Public License requirements will
|
|
|
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
2011-04-27 10:05:43 +00:00
|
|
|
**
|
|
|
|
** $QT_END_LICENSE$
|
|
|
|
**
|
|
|
|
****************************************************************************/
|
|
|
|
#include <QtTest/QtTest>
|
2012-01-10 11:16:33 +00:00
|
|
|
#include <QtCore/QSize>
|
|
|
|
#include <QtCore/QRectF>
|
|
|
|
#include <QtGui/QTransform>
|
|
|
|
#include <QtGui/QGuiApplication>
|
|
|
|
#include <QtGui/QScreen>
|
2012-12-17 13:15:59 +00:00
|
|
|
#include <QtWidgets/QStyle>
|
|
|
|
#include <QtWidgets/QStyleFactory>
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2012-12-17 13:15:59 +00:00
|
|
|
#include "tst_qgraphicsview.h"
|
|
|
|
|
|
|
|
Q_DECLARE_METATYPE(ExpectedValueDescription)
|
|
|
|
Q_DECLARE_METATYPE(QList<int>)
|
|
|
|
Q_DECLARE_METATYPE(QList<QRectF>)
|
|
|
|
Q_DECLARE_METATYPE(QMatrix)
|
2011-04-27 10:05:43 +00:00
|
|
|
Q_DECLARE_METATYPE(QPainterPath)
|
|
|
|
Q_DECLARE_METATYPE(Qt::ScrollBarPolicy)
|
2012-12-17 13:15:59 +00:00
|
|
|
Q_DECLARE_METATYPE(ScrollBarCount)
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2017-01-14 09:22:59 +00:00
|
|
|
static void _scrollBarRanges_addTestData(const QByteArray &style, bool styled)
|
2011-04-27 10:05:43 +00:00
|
|
|
{
|
2016-09-28 19:48:14 +00:00
|
|
|
const int viewWidth = 250;
|
|
|
|
const int viewHeight = 100;
|
|
|
|
|
|
|
|
static Q_CONSTEXPR struct Data {
|
|
|
|
const char *name;
|
|
|
|
QRectF sceneRect;
|
|
|
|
ScrollBarCount sceneRectOffsetFactors;
|
|
|
|
int scale;
|
|
|
|
Qt::ScrollBarPolicy hbarpolicy, vbarpolicy;
|
|
|
|
ExpectedValueDescription hmin, hmax, vmin, vmax;
|
|
|
|
} data [] = {
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"1",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"2",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 50, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(50, 1, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(0, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"3",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 50, viewHeight + 100),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(50, 1, 1),
|
|
|
|
ExpectedValueDescription(0, 0),
|
|
|
|
ExpectedValueDescription(100, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"4",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"5",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth + 50, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
ExpectedValueDescription(-100),
|
|
|
|
ExpectedValueDescription(-50, 1, 1),
|
|
|
|
ExpectedValueDescription(-100),
|
|
|
|
ExpectedValueDescription(-100, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"6",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth + 50, viewHeight + 100),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
ExpectedValueDescription(-100),
|
|
|
|
ExpectedValueDescription(-50, 1, 1),
|
|
|
|
ExpectedValueDescription(-100),
|
|
|
|
ExpectedValueDescription(0, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"7",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 1, viewHeight + 1),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(1, 1, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(1, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"8",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 51, viewHeight + 1),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(51, 1, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(1, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"9",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 51, viewHeight + 101),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(51, 1, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(101, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"10",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-101, -101, viewWidth + 1, viewHeight + 1),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
ExpectedValueDescription(-101),
|
|
|
|
ExpectedValueDescription(-100, 1, 1),
|
|
|
|
ExpectedValueDescription(-101),
|
|
|
|
ExpectedValueDescription(-100, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"11",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-101, -101, viewWidth + 51, viewHeight + 1),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
ExpectedValueDescription(-101),
|
|
|
|
ExpectedValueDescription(-50, 1, 1),
|
|
|
|
ExpectedValueDescription(-101),
|
|
|
|
ExpectedValueDescription(-100, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"12",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-101, -101, viewWidth + 51, viewHeight + 101),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
ExpectedValueDescription(-101),
|
|
|
|
ExpectedValueDescription(-50, 1, 1),
|
|
|
|
ExpectedValueDescription(-101),
|
|
|
|
ExpectedValueDescription(0, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"13",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 1, 1),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(0, 2, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(0, 2, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"14",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 50, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 1, 1),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(50, 2, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(0, 2, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"15",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 50, viewHeight + 100),
|
|
|
|
ScrollBarCount(0, 0, 1, 1),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(50, 2, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(100, 2, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"16",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth, viewHeight),
|
|
|
|
ScrollBarCount(-1, -1, 1, 1),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
ExpectedValueDescription(-100, -1),
|
|
|
|
ExpectedValueDescription(-100, 1, 1),
|
|
|
|
ExpectedValueDescription(-100, -1),
|
|
|
|
ExpectedValueDescription(-100, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"17",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth + 50, viewHeight),
|
|
|
|
ScrollBarCount(-1, -1, 1, 1),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
ExpectedValueDescription(-100, -1),
|
|
|
|
ExpectedValueDescription(-50, 1, 1),
|
|
|
|
ExpectedValueDescription(-100, -1),
|
|
|
|
ExpectedValueDescription(-100, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"18",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth + 50, viewHeight + 100),
|
|
|
|
ScrollBarCount(-1, -1, 1, 1),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
ExpectedValueDescription(-100, -1),
|
|
|
|
ExpectedValueDescription(-50, 1, 1),
|
|
|
|
ExpectedValueDescription(-100, -1),
|
|
|
|
ExpectedValueDescription(0, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"1 x2",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
2,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(viewWidth, 1, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(viewHeight, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"2 x2",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 50, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
2,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(viewWidth + 100, 1, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(viewHeight, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"3 x2",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 50, viewHeight + 100),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
2,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(viewWidth + 100, 1, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(viewHeight + 200, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"4 x2",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
2,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
ExpectedValueDescription(-200),
|
|
|
|
ExpectedValueDescription(viewWidth - 200, 1, 1),
|
|
|
|
ExpectedValueDescription(-200),
|
|
|
|
ExpectedValueDescription(viewHeight - 200, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"5 x2",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth + 50, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
2,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
ExpectedValueDescription(-200),
|
|
|
|
ExpectedValueDescription(viewWidth - 100, 1, 1),
|
|
|
|
ExpectedValueDescription(-200),
|
|
|
|
ExpectedValueDescription(viewHeight - 200, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"6 x2",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth + 50, viewHeight + 100),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
2,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
Qt::ScrollBarAsNeeded,
|
|
|
|
ExpectedValueDescription(-200),
|
|
|
|
ExpectedValueDescription(viewWidth - 100, 1, 1),
|
|
|
|
ExpectedValueDescription(-200),
|
|
|
|
ExpectedValueDescription(viewHeight, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"1 No ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"2 No ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 50, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(50),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"3 No ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 50, viewHeight + 100),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(50),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(100),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"4 No ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"5 No ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth + 50, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
ExpectedValueDescription(-100),
|
|
|
|
ExpectedValueDescription(-50),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"6 No ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth + 50, viewHeight + 100),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
ExpectedValueDescription(-100),
|
|
|
|
ExpectedValueDescription(-50),
|
|
|
|
ExpectedValueDescription(-100),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"7 No ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 1, viewHeight + 1),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"8 No ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 51, viewHeight + 1),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(51),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"9 No ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 51, viewHeight + 101),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(51),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(101),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"10 No ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-101, -101, viewWidth + 1, viewHeight + 1),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
ExpectedValueDescription(-101),
|
|
|
|
ExpectedValueDescription(-100),
|
|
|
|
ExpectedValueDescription(-101),
|
|
|
|
ExpectedValueDescription(-100),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"11 No ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-101, -101, viewWidth + 51, viewHeight + 1),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
ExpectedValueDescription(-101),
|
|
|
|
ExpectedValueDescription(-50),
|
|
|
|
ExpectedValueDescription(-101),
|
|
|
|
ExpectedValueDescription(-100),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"12 No ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-101, -101, viewWidth + 51, viewHeight + 101),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
ExpectedValueDescription(-101),
|
|
|
|
ExpectedValueDescription(-50),
|
|
|
|
ExpectedValueDescription(-101),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"13 No ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 1, 1),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(0, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(0, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"14 No ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 50, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 1, 1),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(50, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(0, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"15 No ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 50, viewHeight + 100),
|
|
|
|
ScrollBarCount(0, 0, 1, 1),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(50, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(100, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"16 No ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth, viewHeight),
|
|
|
|
ScrollBarCount(-1, -1, 1, 1),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
ExpectedValueDescription(-100, -1),
|
|
|
|
ExpectedValueDescription(-100),
|
|
|
|
ExpectedValueDescription(-100, -1),
|
|
|
|
ExpectedValueDescription(-100),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"17 No ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth + 50, viewHeight),
|
|
|
|
ScrollBarCount(-1, -1, 1, 1),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
ExpectedValueDescription(-100, -1),
|
|
|
|
ExpectedValueDescription(-50),
|
|
|
|
ExpectedValueDescription(-100, -1),
|
|
|
|
ExpectedValueDescription(-100),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"18 No ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth + 50, viewHeight + 100),
|
|
|
|
ScrollBarCount(-1, -1, 1, 1),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
ExpectedValueDescription(-100, -1),
|
|
|
|
ExpectedValueDescription(-50),
|
|
|
|
ExpectedValueDescription(-100, -1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"1 x2 No ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
2,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(viewWidth),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(viewHeight),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"2 x2 No ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 50, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
2,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(viewWidth + 100),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(viewHeight),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"3 x2 No ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 50, viewHeight + 100),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
2,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(viewWidth + 100),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(viewHeight + 200),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"4 x2 No ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
2,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
ExpectedValueDescription(-200),
|
|
|
|
ExpectedValueDescription(viewWidth - 200),
|
|
|
|
ExpectedValueDescription(-200),
|
|
|
|
ExpectedValueDescription(viewHeight - 200),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"5 x2 No ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth + 50, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
2,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
ExpectedValueDescription(-200),
|
|
|
|
ExpectedValueDescription(viewWidth - 100),
|
|
|
|
ExpectedValueDescription(-200),
|
|
|
|
ExpectedValueDescription(viewHeight - 200),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"6 x2 No ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth + 50, viewHeight + 100),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
2,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
ExpectedValueDescription(-200),
|
|
|
|
ExpectedValueDescription(viewWidth - 100),
|
|
|
|
ExpectedValueDescription(-200),
|
|
|
|
ExpectedValueDescription(viewHeight),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"1 Always ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(0, 1, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(0, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"2 Always ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 50, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(50, 1, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(0, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"3 Always ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 50, viewHeight + 100),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(50, 1, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(100, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"4 Always ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(-100),
|
|
|
|
ExpectedValueDescription(-100, 1, 1),
|
|
|
|
ExpectedValueDescription(-100),
|
|
|
|
ExpectedValueDescription(-100, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"5 Always ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth + 50, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(-100),
|
|
|
|
ExpectedValueDescription(-50, 1, 1),
|
|
|
|
ExpectedValueDescription(-100),
|
|
|
|
ExpectedValueDescription(-100, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"6 Always ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth + 50, viewHeight + 100),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(-100),
|
|
|
|
ExpectedValueDescription(-50, 1, 1),
|
|
|
|
ExpectedValueDescription(-100),
|
|
|
|
ExpectedValueDescription(0, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"7 Always ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 1, viewHeight + 1),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(1, 1, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(1, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"8 Always ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 51, viewHeight + 1),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(51, 1, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(1, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"9 Always ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 51, viewHeight + 101),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(51, 1, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(101, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"10 Always ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-101, -101, viewWidth + 1, viewHeight + 1),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(-101),
|
|
|
|
ExpectedValueDescription(-100, 1, 1),
|
|
|
|
ExpectedValueDescription(-101),
|
|
|
|
ExpectedValueDescription(-100, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"11 Always ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-101, -101, viewWidth + 51, viewHeight + 1),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(-101),
|
|
|
|
ExpectedValueDescription(-50, 1, 1),
|
|
|
|
ExpectedValueDescription(-101),
|
|
|
|
ExpectedValueDescription(-100, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"12 Always ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-101, -101, viewWidth + 51, viewHeight + 101),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(-101),
|
|
|
|
ExpectedValueDescription(-50, 1, 1),
|
|
|
|
ExpectedValueDescription(-101),
|
|
|
|
ExpectedValueDescription(0, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"13 Always ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 1, 1),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(0, 2, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(0, 2, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"14 Always ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 50, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 1, 1),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(50, 2, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(0, 2, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"15 Always ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 50, viewHeight + 100),
|
|
|
|
ScrollBarCount(0, 0, 1, 1),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(50, 2, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(100, 2, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"16 Always ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth, viewHeight),
|
|
|
|
ScrollBarCount(-1, -1, 1, 1),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(-100, -1),
|
|
|
|
ExpectedValueDescription(-100, 1, 1),
|
|
|
|
ExpectedValueDescription(-100, -1),
|
|
|
|
ExpectedValueDescription(-100, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"17 Always ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth + 50, viewHeight),
|
|
|
|
ScrollBarCount(-1, -1, 1, 1),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(-100, -1),
|
|
|
|
ExpectedValueDescription(-50, 1, 1),
|
|
|
|
ExpectedValueDescription(-100, -1),
|
|
|
|
ExpectedValueDescription(-100, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"18 Always ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth + 50, viewHeight + 100),
|
|
|
|
ScrollBarCount(-1, -1, 1, 1),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(-100, -1),
|
|
|
|
ExpectedValueDescription(-50, 1, 1),
|
|
|
|
ExpectedValueDescription(-100, -1),
|
|
|
|
ExpectedValueDescription(0, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"1 x2 Always ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
2,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(viewWidth, 1, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(viewHeight, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"2 x2 Always ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 50, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
2,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(viewWidth + 100, 1, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(viewHeight, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"3 x2 Always ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 50, viewHeight + 100),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
2,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(viewWidth + 100, 1, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(viewHeight + 200, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"4 x2 Always ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
2,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(-200),
|
|
|
|
ExpectedValueDescription(viewWidth - 200, 1, 1),
|
|
|
|
ExpectedValueDescription(-200),
|
|
|
|
ExpectedValueDescription(viewHeight - 200, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"5 x2 Always ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth + 50, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
2,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(-200),
|
|
|
|
ExpectedValueDescription(viewWidth - 100, 1, 1),
|
|
|
|
ExpectedValueDescription(-200),
|
|
|
|
ExpectedValueDescription(viewHeight - 200, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"6 x2 Always ScrollBars",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth + 50, viewHeight + 100),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
2,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(-200),
|
|
|
|
ExpectedValueDescription(viewWidth - 100, 1, 1),
|
|
|
|
ExpectedValueDescription(-200),
|
|
|
|
ExpectedValueDescription(viewHeight, 1, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"1 Vertical Only",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(0, 1, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"2 Vertical Only",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 50, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(50, 1, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"3 Vertical Only",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 50, viewHeight + 100),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(50, 1, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(100),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"4 Vertical Only",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(-100),
|
|
|
|
ExpectedValueDescription(-100, 1, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"5 Vertical Only",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth + 50, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(-100),
|
|
|
|
ExpectedValueDescription(-50, 1, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"6 Vertical Only",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth + 50, viewHeight + 100),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(-100),
|
|
|
|
ExpectedValueDescription(-50, 1, 1),
|
|
|
|
ExpectedValueDescription(-100),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"7 Vertical Only",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 1, viewHeight + 1),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(1, 1, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"8 Vertical Only",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 51, viewHeight + 1),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(51, 1, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"9 Vertical Only",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 51, viewHeight + 101),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(51, 1, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(101),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"10 Vertical Only",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-101, -101, viewWidth + 1, viewHeight +1),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(-101),
|
|
|
|
ExpectedValueDescription(-100, 1, 1),
|
|
|
|
ExpectedValueDescription(-101),
|
|
|
|
ExpectedValueDescription(-100),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"11 Vertical Only",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-101, -101, viewWidth + 51, viewHeight + 1),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(-101),
|
|
|
|
ExpectedValueDescription(-50, 1, 1),
|
|
|
|
ExpectedValueDescription(-101),
|
|
|
|
ExpectedValueDescription(-100),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"12 Vertical Only",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-101, -101, viewWidth + 51, viewHeight + 101),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(-101),
|
|
|
|
ExpectedValueDescription(-50, 1, 1),
|
|
|
|
ExpectedValueDescription(-101),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"13 Vertical Only",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 1, 1),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(0, 2, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(0, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"14 Vertical Only",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 50, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 1, 1),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(50, 2, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(0, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"15 Vertical Only",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 50, viewHeight + 100),
|
|
|
|
ScrollBarCount(0, 0, 1, 1),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(50, 2, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(100, 1),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"16 Vertical Only",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth, viewHeight),
|
|
|
|
ScrollBarCount(-1, -1, 1, 1),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(-100, -1),
|
|
|
|
ExpectedValueDescription(-100, 1, 1),
|
|
|
|
ExpectedValueDescription(-100, -1),
|
|
|
|
ExpectedValueDescription(-100),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"17 Vertical Only",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth + 50, viewHeight),
|
|
|
|
ScrollBarCount(-1, -1, 1, 1),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(-100, -1),
|
|
|
|
ExpectedValueDescription(-50, 1, 1),
|
|
|
|
ExpectedValueDescription(-100, -1),
|
|
|
|
ExpectedValueDescription(-100),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"18 Vertical Only",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth + 50, viewHeight + 100),
|
|
|
|
ScrollBarCount(-1, -1, 1, 1),
|
|
|
|
1,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(-100, -1),
|
|
|
|
ExpectedValueDescription(-50, 1, 1),
|
|
|
|
ExpectedValueDescription(-100, -1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"1 x2 Vertical Only",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
2,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(viewWidth, 1, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(viewHeight),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"2 x2 Vertical Only",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 50, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
2,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(viewWidth + 100, 1, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(viewHeight),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"3 x2 Vertical Only",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(0, 0, viewWidth + 50, viewHeight + 100),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
2,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(viewWidth + 100, 1, 1),
|
|
|
|
ExpectedValueDescription(),
|
|
|
|
ExpectedValueDescription(viewHeight + 200),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"4 x2 Vertical Only",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
2,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(-200),
|
|
|
|
ExpectedValueDescription(viewWidth - 200, 1, 1),
|
|
|
|
ExpectedValueDescription(-200),
|
|
|
|
ExpectedValueDescription(viewHeight - 200),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"5 x2 Vertical Only",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth + 50, viewHeight),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
2,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(-200),
|
|
|
|
ExpectedValueDescription(viewWidth - 100, 1, 1),
|
|
|
|
ExpectedValueDescription(-200),
|
|
|
|
ExpectedValueDescription(viewHeight - 200),
|
|
|
|
},
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
"6 x2 Vertical Only",
|
2016-09-28 19:48:14 +00:00
|
|
|
QRectF(-100, -100, viewWidth + 50, viewHeight + 100),
|
|
|
|
ScrollBarCount(0, 0, 0, 0),
|
|
|
|
2,
|
|
|
|
Qt::ScrollBarAlwaysOff,
|
|
|
|
Qt::ScrollBarAlwaysOn,
|
|
|
|
ExpectedValueDescription(-200),
|
|
|
|
ExpectedValueDescription(viewWidth - 100, 1, 1),
|
|
|
|
ExpectedValueDescription(-200),
|
|
|
|
ExpectedValueDescription(viewHeight),
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
const QSize viewSize(viewWidth, viewHeight);
|
|
|
|
|
|
|
|
for (const Data &e : data) {
|
2017-01-14 09:22:59 +00:00
|
|
|
QTest::addRow("%s%s, %s", style.data(), styled ? ", Styled" : "", e.name)
|
2016-09-28 19:48:14 +00:00
|
|
|
<< style << viewSize
|
|
|
|
<< e.sceneRect
|
|
|
|
<< e.sceneRectOffsetFactors
|
|
|
|
<< QTransform().scale(e.scale, e.scale)
|
|
|
|
<< e.hbarpolicy
|
|
|
|
<< e.vbarpolicy
|
|
|
|
<< e.hmin << e.hmax << e.vmin << e.vmax
|
|
|
|
<< styled;
|
|
|
|
}
|
2011-04-27 10:05:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void _scrollBarRanges_data()
|
|
|
|
{
|
2017-01-14 09:22:59 +00:00
|
|
|
QTest::addColumn<QByteArray>("style");
|
2011-04-27 10:05:43 +00:00
|
|
|
QTest::addColumn<QSize>("viewportSize");
|
|
|
|
QTest::addColumn<QRectF>("sceneRect");
|
2012-12-17 13:15:59 +00:00
|
|
|
QTest::addColumn<ScrollBarCount>("sceneRectOffsetFactors");
|
2011-04-27 10:05:43 +00:00
|
|
|
QTest::addColumn<QTransform>("transform");
|
|
|
|
QTest::addColumn<Qt::ScrollBarPolicy>("hbarpolicy");
|
|
|
|
QTest::addColumn<Qt::ScrollBarPolicy>("vbarpolicy");
|
2012-12-17 13:15:59 +00:00
|
|
|
QTest::addColumn<ExpectedValueDescription>("hmin");
|
|
|
|
QTest::addColumn<ExpectedValueDescription>("hmax");
|
|
|
|
QTest::addColumn<ExpectedValueDescription>("vmin");
|
|
|
|
QTest::addColumn<ExpectedValueDescription>("vmax");
|
2011-04-27 10:05:43 +00:00
|
|
|
QTest::addColumn<bool>("useStyledPanel");
|
|
|
|
|
2017-01-14 09:22:59 +00:00
|
|
|
const auto styles = QStyleFactory::keys();
|
|
|
|
for (const QString &style : styles) {
|
|
|
|
_scrollBarRanges_addTestData(style.toLatin1(), false);
|
|
|
|
_scrollBarRanges_addTestData(style.toLatin1(), true);
|
2012-12-17 13:15:59 +00:00
|
|
|
}
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2012-01-10 11:16:33 +00:00
|
|
|
const QScreen *screen = QGuiApplication::primaryScreen();
|
2013-04-17 13:05:24 +00:00
|
|
|
if (screen && qFuzzyCompare((double)screen->logicalDotsPerInchX(), 96.0)) {
|
2017-01-14 09:22:59 +00:00
|
|
|
_scrollBarRanges_addTestData("motif", false);
|
|
|
|
_scrollBarRanges_addTestData("motif", true);
|
2012-01-10 11:16:33 +00:00
|
|
|
}
|
2011-04-27 10:05:43 +00:00
|
|
|
}
|