Accepting request 1057153 from home:Vogtinator:qt5.15
Qt 5.15.8, untested as usual. qtdoc not included yet. OBS-URL: https://build.opensuse.org/request/show/1057153 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:5.15/libqt5-qtdeclarative?expand=0&rev=25
This commit is contained in:
parent
b5c48b7a32
commit
500e45da2f
4
_service
4
_service
@ -1,12 +1,12 @@
|
||||
<services>
|
||||
<service name="obs_scm" mode="disabled">
|
||||
<param name="changesgenerate">enable</param>
|
||||
<param name="versionformat">5.15.7+kde@TAG_OFFSET@</param>
|
||||
<param name="versionformat">5.15.8+kde@TAG_OFFSET@</param>
|
||||
<param name="url">https://invent.kde.org/qt/qt/qtdeclarative.git</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="filename">qtdeclarative-everywhere-src</param>
|
||||
<param name="revision">kde/5.15</param>
|
||||
<param name="parent-tag">v5.15.7-lts-lgpl</param>
|
||||
<param name="parent-tag">v5.15.8-lts-lgpl</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
</service>
|
||||
<service name="set_version" mode="disabled"/>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://invent.kde.org/qt/qt/qtdeclarative.git</param>
|
||||
<param name="changesrevision">3476736905fd029e8fa5a6c86db38a758d97f9cb</param></service></servicedata>
|
||||
<param name="changesrevision">e53eec414af66f72046960693d5b6ac8060fb384</param></service></servicedata>
|
@ -1,3 +1,37 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 9 09:19:15 UTC 2023 - Fabian Vogt <fabian@ritter-vogt.de>
|
||||
|
||||
- Update to version 5.15.8+kde22, rebased upstream:
|
||||
* Qml: Don't crash when as-casting to type with errors
|
||||
* Do not copy lookups
|
||||
* deliverSinglePointEventUntilAccepted(): skip items that aren't shown
|
||||
* V4 Lookup: Do not leak property caches
|
||||
* Fix glitches in big AnimatedSprite animations
|
||||
* HoverHandler: allow cursorShape binding before parentItem is set
|
||||
* QtTest: use delay properly in mouseWheel()
|
||||
* Set OpenGL state after invoking custom rendering
|
||||
* Ensure that HoverHandler isn't hovered after HoverLeave to parent item
|
||||
* Fix missing glyphs when changing distance field parameters
|
||||
* Document that the vendorext property is deprecated
|
||||
* tst_qqmlbinding: Avoid event loop flakyness on Ubuntu 20.04
|
||||
* Unset the QQmlAnimationTimer pointer from unregistered jobs
|
||||
* Reset the timer of all controlled animations upon timer destruction
|
||||
* Don't create an animation timer when destroying the animation job
|
||||
* Disable JIT for arm64 when doing macOS universal builds
|
||||
* Blacklist and fix failing tests on ARM macOS
|
||||
* qmake/vcxproj: Fix qmltypes files being displayed at project root
|
||||
* Use resize instead of shrink when clearing upload pools
|
||||
* Handle function as default arguments in toplevel functions
|
||||
* Do not crash on self-assignment of QQmlProperty
|
||||
* Do not resolve containing types of inline components too early
|
||||
* sg: Drop internal pool allocs upon QQuickWindow::releaseResources
|
||||
* Fix distorted subpixel text for non-RHI code path
|
||||
* QQuickTextInput: fix cursor positioning for QInputMethodEvent
|
||||
- Commits dropped by the rebase:
|
||||
* Fix Flickable with QTBUG-56075 patch applied
|
||||
- Update qtdeclarative-5.15.0-FixMaxXMaxYExtent.patch with contents from
|
||||
https://invent.kde.org/qt/qt/qtdeclarative/-/merge_requests/32
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 15 12:21:08 UTC 2022 - Fabian Vogt <fabian@ritter-vogt.de>
|
||||
|
||||
|
@ -19,11 +19,11 @@
|
||||
%define qt5_snapshot 1
|
||||
%define libname libQtQuick5
|
||||
%define base_name libqt5
|
||||
%define real_version 5.15.7
|
||||
%define so_version 5.15.7
|
||||
%define real_version 5.15.8
|
||||
%define so_version 5.15.8
|
||||
%define tar_version qtdeclarative-everywhere-src-%{version}
|
||||
Name: libqt5-qtdeclarative
|
||||
Version: 5.15.7+kde25
|
||||
Version: 5.15.8+kde22
|
||||
Release: 0
|
||||
Summary: Qt 5 Declarative Library
|
||||
License: LGPL-3.0-only OR (GPL-2.0-only OR GPL-3.0-or-later)
|
||||
@ -33,6 +33,7 @@ Source: %{tar_version}.tar.xz
|
||||
Source1: baselibs.conf
|
||||
# PATCH-FIX-OPENSUSE sse2_nojit.patch -- enable JIT and sse2 only on sse2 case
|
||||
Patch100: sse2_nojit.patch
|
||||
# https://invent.kde.org/qt/qt/qtdeclarative/-/merge_requests/32
|
||||
Patch103: qtdeclarative-5.15.0-FixMaxXMaxYExtent.patch
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: libQt5Core-private-headers-devel >= %{real_version}
|
||||
|
@ -1,6 +1,6 @@
|
||||
From b82b1954fd0ab4e1c8aff38dac7310f6c4f144e0 Mon Sep 17 00:00:00 2001
|
||||
From: David Redondo <qt@david-redondo.de>
|
||||
Date: Mon, 27 Jun 2022 15:31:10 +0200
|
||||
From 97e530bbc0066cf9f60891b99a5a974e4c3ced85 Mon Sep 17 00:00:00 2001
|
||||
From: David Redondo <kde@david-redondo.de>
|
||||
Date: Wed, 13 May 2020 11:04:23 +0200
|
||||
Subject: [PATCH] QQuickItemView: Fix max(X/Y)Extent()
|
||||
|
||||
QQuickFlickable maxXExtent() and maxYExtent() return the amount of space
|
||||
@ -9,26 +9,23 @@ returned width() if vertical and height() if horizontal. In these cases
|
||||
just defer to the QQuickFlickable base implementation like minXExtent()
|
||||
and minYExtent() already do.
|
||||
|
||||
This change also adds tst_qquicklistview2 to speed up development.
|
||||
tst_QQuickListView is almost 9000 lines long, and compiling it
|
||||
is slow. In addition, a similar approach (creating a second test to
|
||||
avoid the slowness of a massive one) already exists for QQuickItem
|
||||
tests.
|
||||
|
||||
Fixes: QTBUG-83890
|
||||
Pick-to: 5.15
|
||||
Pick-to: 6.2 6.4
|
||||
Change-Id: I7f4060c2f46ae07611bedceca0d322c5f7f6affb
|
||||
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
|
||||
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
|
||||
(cherry picked from commit 99047ae219ff6689da38cc988a25030fece655da)
|
||||
---
|
||||
src/quick/items/qquickitemview.cpp | 4 +-
|
||||
.../qquicklistview/tst_qquicklistview.cpp | 5 +
|
||||
.../quick/qquicklistview2/data/maxXExtent.qml | 54 +++++++++
|
||||
.../quick/qquicklistview2/data/maxYExtent.qml | 55 +++++++++
|
||||
.../quick/qquicklistview2/qquicklistview2.pro | 12 ++
|
||||
.../qquicklistview2/tst_qquicklistview2.cpp | 114 ++++++++++++++++++
|
||||
tests/auto/quick/quick.pro | 1 +
|
||||
7 files changed, 243 insertions(+), 2 deletions(-)
|
||||
src/quick/items/qquickitemview.cpp | 4 +-
|
||||
.../qquickgridview/tst_qquickgridview.cpp | 29 +++---
|
||||
.../qquicklistview/tst_qquicklistview.cpp | 14 ++-
|
||||
.../quick/qquicklistview2/data/maxXExtent.qml | 29 ++++++
|
||||
.../quick/qquicklistview2/data/maxYExtent.qml | 30 ++++++
|
||||
.../qquicklistview2/tst_qquicklistview2.cpp | 94 +++++++++++++++++++
|
||||
tests/auto/quick/quick.pro | 1 +
|
||||
7 files changed, 174 insertions(+), 27 deletions(-)
|
||||
create mode 100644 tests/auto/quick/qquicklistview2/data/maxXExtent.qml
|
||||
create mode 100644 tests/auto/quick/qquicklistview2/data/maxYExtent.qml
|
||||
create mode 100644 tests/auto/quick/qquicklistview2/qquicklistview2.pro
|
||||
create mode 100644 tests/auto/quick/qquicklistview2/tst_qquicklistview2.cpp
|
||||
|
||||
diff --git a/src/quick/items/qquickitemview.cpp b/src/quick/items/qquickitemview.cpp
|
||||
@ -53,71 +50,121 @@ index f8ad168a17..a797bec4ef 100644
|
||||
|
||||
if (d->hData.maxExtentDirty) {
|
||||
d->maxExtent = d->maxExtentForAxis(d->hData, true);
|
||||
diff --git a/tests/auto/quick/qquickgridview/tst_qquickgridview.cpp b/tests/auto/quick/qquickgridview/tst_qquickgridview.cpp
|
||||
index 46e3457d6e..7f79968440 100644
|
||||
--- a/tests/auto/quick/qquickgridview/tst_qquickgridview.cpp
|
||||
+++ b/tests/auto/quick/qquickgridview/tst_qquickgridview.cpp
|
||||
@@ -3543,51 +3543,46 @@ void tst_QQuickGridView::extents_data()
|
||||
|
||||
QTest::newRow("LeftToRight, LtR, TtB")
|
||||
<< QQuickGridView::FlowLeftToRight << Qt::LeftToRight << QQuickItemView::TopToBottom
|
||||
- << QPointF(0, -20) << QPointF(0, 0)
|
||||
- << QPointF(0, 20) << QPointF(240, 20)
|
||||
+ << QPointF(0, -20) << QPointF(0, 0) << QPointF(0, 20) << QPointF(0, 20)
|
||||
<< QPointF(0, -20) << QPointF(0, -20);
|
||||
|
||||
QTest::newRow("LeftToRight, RtL, TtB")
|
||||
<< QQuickGridView::FlowLeftToRight << Qt::RightToLeft << QQuickItemView::TopToBottom
|
||||
- << QPointF(0, -20) << QPointF(0, 0)
|
||||
- << QPointF(0, 20) << QPointF(240, 20)
|
||||
+ << QPointF(0, -20) << QPointF(0, 0) << QPointF(0, 20) << QPointF(0, 20)
|
||||
<< QPointF(0, -20) << QPointF(0, -20);
|
||||
|
||||
QTest::newRow("LeftToRight, LtR, BtT")
|
||||
<< QQuickGridView::FlowLeftToRight << Qt::LeftToRight << QQuickItemView::BottomToTop
|
||||
- << QPointF(0, 0) << QPointF(0, -30)
|
||||
- << QPointF(0, 320 - 20) << QPointF(240, 320 - 20) // content flow is reversed
|
||||
+ << QPointF(0, 0) << QPointF(0, -30) << QPointF(0, 320 - 20)
|
||||
+ << QPointF(0, 320 - 20) // content flow is reversed
|
||||
<< QPointF(0, -30) << QPointF(0, (-60.0 * 10) - 30);
|
||||
|
||||
QTest::newRow("LeftToRight, RtL, BtT")
|
||||
<< QQuickGridView::FlowLeftToRight << Qt::RightToLeft << QQuickItemView::BottomToTop
|
||||
- << QPointF(0, 0) << QPointF(0, -30)
|
||||
- << QPointF(0, 320 - 20) << QPointF(240, 320 - 20) // content flow is reversed
|
||||
+ << QPointF(0, 0) << QPointF(0, -30) << QPointF(0, 320 - 20)
|
||||
+ << QPointF(0, 320 - 20) // content flow is reversed
|
||||
<< QPointF(0, -30) << QPointF(0, (-60.0 * 10) - 30);
|
||||
|
||||
-
|
||||
QTest::newRow("TopToBottom, LtR, TtB")
|
||||
<< QQuickGridView::FlowTopToBottom << Qt::LeftToRight << QQuickItemView::TopToBottom
|
||||
- << QPointF(-20, 0) << QPointF(0, 0)
|
||||
- << QPointF(20, 0) << QPointF(20, 320)
|
||||
+ << QPointF(-20, 0) << QPointF(0, 0) << QPointF(20, 0) << QPointF(20, 0)
|
||||
<< QPointF(-20, 0) << QPointF(-20, 0);
|
||||
|
||||
QTest::newRow("TopToBottom, RtL, TtB")
|
||||
<< QQuickGridView::FlowTopToBottom << Qt::RightToLeft << QQuickItemView::TopToBottom
|
||||
- << QPointF(0, 0) << QPointF(-30, 0)
|
||||
- << QPointF(240 - 20, 0) << QPointF(240 - 20, 320) // content flow is reversed
|
||||
+ << QPointF(0, 0) << QPointF(-30, 0) << QPointF(240 - 20, 0)
|
||||
+ << QPointF(240 - 20, 0) // content flow is reversed
|
||||
<< QPointF(-30, 0) << QPointF((-80.0 * 6) - 30, 0);
|
||||
|
||||
QTest::newRow("TopToBottom, LtR, BtT")
|
||||
<< QQuickGridView::FlowTopToBottom << Qt::LeftToRight << QQuickItemView::BottomToTop
|
||||
- << QPointF(-20, -320) << QPointF(0, -320)
|
||||
- << QPointF(20, 0) << QPointF(20, 320)
|
||||
+ << QPointF(-20, -320) << QPointF(0, -320) << QPointF(20, 0) << QPointF(20, 0)
|
||||
<< QPointF(-20, 0) << QPointF(-20, 0);
|
||||
|
||||
QTest::newRow("TopToBottom, RtL, BtT")
|
||||
<< QQuickGridView::FlowTopToBottom << Qt::RightToLeft << QQuickItemView::BottomToTop
|
||||
- << QPointF(0, -320) << QPointF(-30, -320)
|
||||
- << QPointF(240 - 20, 0) << QPointF(240 - 20, 320) // content flow is reversed
|
||||
+ << QPointF(0, -320) << QPointF(-30, -320) << QPointF(240 - 20, 0)
|
||||
+ << QPointF(240 - 20, 0) // content flow is reversed
|
||||
<< QPointF(-30, 0) << QPointF((-80.0 * 6) - 30, 0);
|
||||
}
|
||||
|
||||
diff --git a/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp b/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp
|
||||
index b564fd3ba5..5f0aeb42f7 100644
|
||||
index d3deb513d0..2de6f5435c 100644
|
||||
--- a/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp
|
||||
+++ b/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp
|
||||
@@ -73,6 +73,8 @@ public:
|
||||
tst_QQuickListView();
|
||||
@@ -4278,26 +4278,24 @@ void tst_QQuickListView::extents_data()
|
||||
|
||||
private slots:
|
||||
+ // WARNING: please add new tests to tst_qquicklistview2; this file is too slow to work with.
|
||||
+
|
||||
void init();
|
||||
void cleanupTestCase();
|
||||
// Test QAbstractItemModel model types
|
||||
@@ -303,6 +305,8 @@ private slots:
|
||||
void dragDelegateWithMouseArea_data();
|
||||
void isCurrentItem_DelegateModel();
|
||||
QTest::newRow("Vertical, TopToBottom")
|
||||
<< QQuickListView::Vertical << Qt::LeftToRight << QQuickItemView::TopToBottom
|
||||
- << QPointF(0, -20) << QPointF(0, 0)
|
||||
- << QPointF(0, 20) << QPointF(240, 20)
|
||||
+ << QPointF(0, -20) << QPointF(0, 0) << QPointF(0, 20) << QPointF(0, 20)
|
||||
<< QPointF(0, -20) << QPointF(0, -20) << QPointF(0, -20);
|
||||
|
||||
+ // WARNING: please add new tests to tst_qquicklistview2; this file is too slow to work with.
|
||||
+
|
||||
private:
|
||||
template <class T> void items(const QUrl &source);
|
||||
template <class T> void changed(const QUrl &source);
|
||||
@@ -10200,6 +10204,7 @@ void tst_QQuickListView::dragDelegateWithMouseArea_data()
|
||||
QTest::newRow(enumValueName) << static_cast<QQuickItemView::LayoutDirection>(layDir);
|
||||
}
|
||||
QTest::newRow("Vertical, BottomToTop")
|
||||
<< QQuickListView::Vertical << Qt::LeftToRight << QQuickItemView::BottomToTop
|
||||
- << QPointF(0, 0) << QPointF(0, -30)
|
||||
- << QPointF(0, 320 - 20) << QPointF(240, 320 - 20) // content flow is reversed
|
||||
+ << QPointF(0, 0) << QPointF(0, -30) << QPointF(0, 320 - 20)
|
||||
+ << QPointF(0, 320 - 20) // content flow is reversed
|
||||
<< QPointF(0, -30) << QPointF(0, (-30.0 * 3) - 30) << QPointF(0, (-30.0 * 30) - 30);
|
||||
|
||||
QTest::newRow("Horizontal, LeftToRight")
|
||||
<< QQuickListView::Horizontal << Qt::LeftToRight << QQuickItemView::TopToBottom
|
||||
- << QPointF(-20, 0) << QPointF(0, 0)
|
||||
- << QPointF(20, 0) << QPointF(20, 320)
|
||||
+ << QPointF(-20, 0) << QPointF(0, 0) << QPointF(20, 0) << QPointF(20, 0)
|
||||
<< QPointF(-20, 0) << QPointF(-20, 0) << QPointF(-20, 0);
|
||||
|
||||
QTest::newRow("Horizontal, RightToLeft")
|
||||
<< QQuickListView::Horizontal << Qt::RightToLeft << QQuickItemView::TopToBottom
|
||||
- << QPointF(0, 0) << QPointF(-30, 0)
|
||||
- << QPointF(240 - 20, 0) << QPointF(240 - 20, 320) // content flow is reversed
|
||||
+ << QPointF(0, 0) << QPointF(-30, 0) << QPointF(240 - 20, 0)
|
||||
+ << QPointF(240 - 20, 0) // content flow is reversed
|
||||
<< QPointF(-30, 0) << QPointF((-240.0 * 3) - 30, 0) << QPointF((-240.0 * 30) - 30, 0);
|
||||
}
|
||||
+// WARNING: please add new tests to tst_qquicklistview2; this file is too slow to work with.
|
||||
|
||||
QTEST_MAIN(tst_QQuickListView)
|
||||
|
||||
diff --git a/tests/auto/quick/qquicklistview2/data/maxXExtent.qml b/tests/auto/quick/qquicklistview2/data/maxXExtent.qml
|
||||
new file mode 100644
|
||||
index 0000000000..3a50ae9edd
|
||||
index 0000000000..b9e88cfc9e
|
||||
--- /dev/null
|
||||
+++ b/tests/auto/quick/qquicklistview2/data/maxXExtent.qml
|
||||
@@ -0,0 +1,54 @@
|
||||
+/****************************************************************************
|
||||
+**
|
||||
+** Copyright (C) 2020 The Qt Company Ltd.
|
||||
+** Contact: https://www.qt.io/licensing/
|
||||
+**
|
||||
+** This file is part of the test suite of the Qt Toolkit.
|
||||
+**
|
||||
+** $QT_BEGIN_LICENSE:GPL-EXCEPT$
|
||||
+** 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
|
||||
+** a written agreement between you and The Qt Company. For licensing terms
|
||||
+** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
+** information use the contact form at https://www.qt.io/contact-us.
|
||||
+**
|
||||
+** 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.
|
||||
+**
|
||||
+** $QT_END_LICENSE$
|
||||
+**
|
||||
+****************************************************************************/
|
||||
@@ -0,0 +1,29 @@
|
||||
+// Copyright (C) 2022 The Qt Company Ltd.
|
||||
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
+
|
||||
+import QtQuick 2.15
|
||||
+import QtQuick
|
||||
+
|
||||
+Item {
|
||||
+ property alias view: view
|
||||
@ -145,39 +192,14 @@ index 0000000000..3a50ae9edd
|
||||
+}
|
||||
diff --git a/tests/auto/quick/qquicklistview2/data/maxYExtent.qml b/tests/auto/quick/qquicklistview2/data/maxYExtent.qml
|
||||
new file mode 100644
|
||||
index 0000000000..2c73092aad
|
||||
index 0000000000..3be8948691
|
||||
--- /dev/null
|
||||
+++ b/tests/auto/quick/qquicklistview2/data/maxYExtent.qml
|
||||
@@ -0,0 +1,55 @@
|
||||
+/****************************************************************************
|
||||
+**
|
||||
+** Copyright (C) 2020 The Qt Company Ltd.
|
||||
+** Contact: https://www.qt.io/licensing/
|
||||
+**
|
||||
+** This file is part of the test suite of the Qt Toolkit.
|
||||
+**
|
||||
+** $QT_BEGIN_LICENSE:GPL-EXCEPT$
|
||||
+** 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
|
||||
+** a written agreement between you and The Qt Company. For licensing terms
|
||||
+** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
+** information use the contact form at https://www.qt.io/contact-us.
|
||||
+**
|
||||
+** 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.
|
||||
+**
|
||||
+** $QT_END_LICENSE$
|
||||
+**
|
||||
+****************************************************************************/
|
||||
@@ -0,0 +1,30 @@
|
||||
+// Copyright (C) 2022 The Qt Company Ltd.
|
||||
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
+
|
||||
+import QtQuick 2.15
|
||||
+import QtQuick
|
||||
+
|
||||
+Item {
|
||||
+ property alias view: view
|
||||
@ -204,73 +226,35 @@ index 0000000000..2c73092aad
|
||||
+ }
|
||||
+ }
|
||||
+}
|
||||
diff --git a/tests/auto/quick/qquicklistview2/qquicklistview2.pro b/tests/auto/quick/qquicklistview2/qquicklistview2.pro
|
||||
new file mode 100644
|
||||
index 0000000000..1128c242c7
|
||||
--- /dev/null
|
||||
+++ b/tests/auto/quick/qquicklistview2/qquicklistview2.pro
|
||||
@@ -0,0 +1,12 @@
|
||||
+CONFIG += testcase
|
||||
+TARGET = tst_qquicklistview2
|
||||
+macos:CONFIG -= app_bundle
|
||||
+
|
||||
+SOURCES += tst_qquicklistview2.cpp
|
||||
+
|
||||
+include (../../shared/util.pri)
|
||||
+include (../shared/util.pri)
|
||||
+
|
||||
+TESTDATA = data/*
|
||||
+
|
||||
+QT += core-private gui-private qml-private quick-private testlib qmltest
|
||||
diff --git a/tests/auto/quick/qquicklistview2/tst_qquicklistview2.cpp b/tests/auto/quick/qquicklistview2/tst_qquicklistview2.cpp
|
||||
new file mode 100644
|
||||
index 0000000000..916c8730f4
|
||||
index 0000000000..40b440d9cd
|
||||
--- /dev/null
|
||||
+++ b/tests/auto/quick/qquicklistview2/tst_qquicklistview2.cpp
|
||||
@@ -0,0 +1,114 @@
|
||||
+/****************************************************************************
|
||||
+**
|
||||
+** Copyright (C) 2020 The Qt Company Ltd.
|
||||
+** Contact: https://www.qt.io/licensing/
|
||||
+**
|
||||
+** This file is part of the test suite of the Qt Toolkit.
|
||||
+**
|
||||
+** $QT_BEGIN_LICENSE:GPL-EXCEPT$
|
||||
+** 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
|
||||
+** a written agreement between you and The Qt Company. For licensing terms
|
||||
+** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
+** information use the contact form at https://www.qt.io/contact-us.
|
||||
+**
|
||||
+** 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.
|
||||
+**
|
||||
+** $QT_END_LICENSE$
|
||||
+**
|
||||
+****************************************************************************/
|
||||
@@ -0,0 +1,94 @@
|
||||
+// Copyright (C) 2021 The Qt Company Ltd.
|
||||
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
+
|
||||
+#include <QtTest/QtTest>
|
||||
+#include <QtQuickTest/QtQuickTest>
|
||||
+#include <QtQml/qqmlapplicationengine.h>
|
||||
+#include <QtQuick/qquickview.h>
|
||||
+#include <QtQuick/private/qquickitemview_p_p.h>
|
||||
+#include <QtQuick/private/qquicklistview_p.h>
|
||||
+#include <QtQuickTest/QtQuickTest>
|
||||
+#include <QStringListModel>
|
||||
+#include <QQmlApplicationEngine>
|
||||
+
|
||||
+#include "../../shared/util.h"
|
||||
+#include "../shared/viewtestutil.h"
|
||||
+#include <QtQuickTestUtils/private/viewtestutils_p.h>
|
||||
+#include <QtQuickTestUtils/private/visualtestutils_p.h>
|
||||
+#include <QtQuickTestUtils/private/qmlutils_p.h>
|
||||
+
|
||||
+using namespace QQuickViewTestUtil;
|
||||
+Q_LOGGING_CATEGORY(lcTests, "qt.quick.tests")
|
||||
+
|
||||
+using namespace QQuickViewTestUtils;
|
||||
+using namespace QQuickVisualTestUtils;
|
||||
+
|
||||
+class tst_QQuickListView2 : public QQmlDataTest
|
||||
+{
|
||||
+ Q_OBJECT
|
||||
+
|
||||
+public:
|
||||
+ tst_QQuickListView2();
|
||||
+
|
||||
@ -280,6 +264,7 @@ index 0000000000..916c8730f4
|
||||
+};
|
||||
+
|
||||
+tst_QQuickListView2::tst_QQuickListView2()
|
||||
+ : QQmlDataTest(QT_QMLTEST_DATADIR)
|
||||
+{
|
||||
+}
|
||||
+
|
||||
@ -313,7 +298,6 @@ index 0000000000..916c8730f4
|
||||
+void tst_QQuickListView2::maxExtent_data()
|
||||
+{
|
||||
+ QTest::addColumn<QString>("qmlFilePath");
|
||||
+
|
||||
+ QTest::addRow("maxXExtent") << "maxXExtent.qml";
|
||||
+ QTest::addRow("maxYExtent") << "maxYExtent.qml";
|
||||
+}
|
||||
@ -355,5 +339,5 @@ index 45bcf8a9ce..00f7d64d1e 100644
|
||||
qquickloader \
|
||||
qquickmousearea \
|
||||
--
|
||||
2.38.0
|
||||
GitLab
|
||||
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0c8c4fd1b27229ba7a89247d1a7c9a66d8a690fe37a0bb953e84c981eb58616c
|
||||
size 143345166
|
3
qtdeclarative-everywhere-src-5.15.8+kde22.obscpio
Normal file
3
qtdeclarative-everywhere-src-5.15.8+kde22.obscpio
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:76329658b394e869ff1a1a229f8551dc6f0ff4da65885181b365bbaa47bd907c
|
||||
size 143358478
|
@ -1,4 +1,4 @@
|
||||
name: qtdeclarative-everywhere-src
|
||||
version: 5.15.7+kde25
|
||||
mtime: 1670518976
|
||||
commit: 3476736905fd029e8fa5a6c86db38a758d97f9cb
|
||||
version: 5.15.8+kde22
|
||||
mtime: 1672930994
|
||||
commit: e53eec414af66f72046960693d5b6ac8060fb384
|
||||
|
Loading…
Reference in New Issue
Block a user