Merge pull request #11837 from Rmys/master
qt5-svg, qt5-quickcontrols2 rebuild
This commit is contained in:
@@ -79,7 +79,7 @@ index f38c2b09c..6eed2a024 100644
|
|||||||
|
|
||||||
contentHeight = implicitContentHeight;
|
contentHeight = implicitContentHeight;
|
||||||
diff --git a/src/quicktemplates2/qquickcontrol.cpp b/src/quicktemplates2/qquickcontrol.cpp
|
diff --git a/src/quicktemplates2/qquickcontrol.cpp b/src/quicktemplates2/qquickcontrol.cpp
|
||||||
index bbbd0e622..1f4b47343 100644
|
index bbbd0e622..c4da24cd8 100644
|
||||||
--- a/src/quicktemplates2/qquickcontrol.cpp
|
--- a/src/quicktemplates2/qquickcontrol.cpp
|
||||||
+++ b/src/quicktemplates2/qquickcontrol.cpp
|
+++ b/src/quicktemplates2/qquickcontrol.cpp
|
||||||
@@ -845,6 +845,13 @@ void QQuickControlPrivate::executeBackground(bool complete)
|
@@ -845,6 +845,13 @@ void QQuickControlPrivate::executeBackground(bool complete)
|
||||||
@@ -126,6 +126,21 @@ index bbbd0e622..1f4b47343 100644
|
|||||||
void QQuickControlPrivate::updateBaselineOffset()
|
void QQuickControlPrivate::updateBaselineOffset()
|
||||||
{
|
{
|
||||||
Q_Q(QQuickControl);
|
Q_Q(QQuickControl);
|
||||||
|
@@ -2296,12 +2326,13 @@ QAccessible::Role QQuickControl::accessibleRole() const
|
||||||
|
|
||||||
|
void QQuickControl::accessibilityActiveChanged(bool active)
|
||||||
|
{
|
||||||
|
+ Q_D(QQuickControl);
|
||||||
|
if (!active)
|
||||||
|
return;
|
||||||
|
|
||||||
|
QQuickAccessibleAttached *accessibleAttached = qobject_cast<QQuickAccessibleAttached *>(qmlAttachedPropertiesObject<QQuickAccessibleAttached>(this, true));
|
||||||
|
Q_ASSERT(accessibleAttached);
|
||||||
|
- accessibleAttached->setRole(accessibleRole());
|
||||||
|
+ accessibleAttached->setRole(d->effectiveAccessibleRole());
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
diff --git a/src/quicktemplates2/qquickcontrol_p_p.h b/src/quicktemplates2/qquickcontrol_p_p.h
|
diff --git a/src/quicktemplates2/qquickcontrol_p_p.h b/src/quicktemplates2/qquickcontrol_p_p.h
|
||||||
index 8e979079e..a6e624c91 100644
|
index 8e979079e..a6e624c91 100644
|
||||||
--- a/src/quicktemplates2/qquickcontrol_p_p.h
|
--- a/src/quicktemplates2/qquickcontrol_p_p.h
|
||||||
@@ -171,6 +186,19 @@ index e6db14eb5..6197d1547 100644
|
|||||||
const int count = contentModel->count();
|
const int count = contentModel->count();
|
||||||
qreal maxHeight = 0;
|
qreal maxHeight = 0;
|
||||||
for (int i = 0; i < count; ++i) {
|
for (int i = 0; i < count; ++i) {
|
||||||
|
diff --git a/src/quicktemplates2/qquicklabel.cpp b/src/quicktemplates2/qquicklabel.cpp
|
||||||
|
index 71b60a2bc..2bc621674 100644
|
||||||
|
--- a/src/quicktemplates2/qquicklabel.cpp
|
||||||
|
+++ b/src/quicktemplates2/qquicklabel.cpp
|
||||||
|
@@ -263,7 +263,7 @@ void QQuickLabelPrivate::accessibilityActiveChanged(bool active)
|
||||||
|
Q_Q(QQuickLabel);
|
||||||
|
QQuickAccessibleAttached *accessibleAttached = qobject_cast<QQuickAccessibleAttached *>(qmlAttachedPropertiesObject<QQuickAccessibleAttached>(q, true));
|
||||||
|
Q_ASSERT(accessibleAttached);
|
||||||
|
- accessibleAttached->setRole(accessibleRole());
|
||||||
|
+ accessibleAttached->setRole(effectiveAccessibleRole());
|
||||||
|
maybeSetAccessibleName(text);
|
||||||
|
}
|
||||||
|
|
||||||
diff --git a/src/quicktemplates2/qquickoverlay.cpp b/src/quicktemplates2/qquickoverlay.cpp
|
diff --git a/src/quicktemplates2/qquickoverlay.cpp b/src/quicktemplates2/qquickoverlay.cpp
|
||||||
index 91bd59184..0ce518f84 100644
|
index 91bd59184..0ce518f84 100644
|
||||||
--- a/src/quicktemplates2/qquickoverlay.cpp
|
--- a/src/quicktemplates2/qquickoverlay.cpp
|
||||||
@@ -188,6 +216,66 @@ index 91bd59184..0ce518f84 100644
|
|||||||
}
|
}
|
||||||
|
|
||||||
void QQuickOverlay::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
|
void QQuickOverlay::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
|
||||||
|
diff --git a/src/quicktemplates2/qquickpopup.cpp b/src/quicktemplates2/qquickpopup.cpp
|
||||||
|
index 7df80a047..bfaa84e30 100644
|
||||||
|
--- a/src/quicktemplates2/qquickpopup.cpp
|
||||||
|
+++ b/src/quicktemplates2/qquickpopup.cpp
|
||||||
|
@@ -46,6 +46,7 @@
|
||||||
|
|
||||||
|
#include <QtQml/qqmlinfo.h>
|
||||||
|
#include <QtQuick/qquickitem.h>
|
||||||
|
+#include <QtQuick/private/qquickaccessibleattached_p.h>
|
||||||
|
#include <QtQuick/private/qquicktransition_p.h>
|
||||||
|
#include <QtQuick/private/qquickitem_p.h>
|
||||||
|
|
||||||
|
@@ -2720,6 +2721,19 @@ QPalette QQuickPopup::defaultPalette() const
|
||||||
|
}
|
||||||
|
|
||||||
|
#if QT_CONFIG(accessibility)
|
||||||
|
+QAccessible::Role QQuickPopup::effectiveAccessibleRole() const
|
||||||
|
+{
|
||||||
|
+ auto *attached = qmlAttachedPropertiesObject<QQuickAccessibleAttached>(this, false);
|
||||||
|
+
|
||||||
|
+ auto role = QAccessible::NoRole;
|
||||||
|
+ if (auto *accessibleAttached = qobject_cast<QQuickAccessibleAttached *>(attached))
|
||||||
|
+ role = accessibleAttached->role();
|
||||||
|
+ if (role == QAccessible::NoRole)
|
||||||
|
+ role = accessibleRole();
|
||||||
|
+
|
||||||
|
+ return role;
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
QAccessible::Role QQuickPopup::accessibleRole() const
|
||||||
|
{
|
||||||
|
return QAccessible::Dialog;
|
||||||
|
diff --git a/src/quicktemplates2/qquickpopup_p.h b/src/quicktemplates2/qquickpopup_p.h
|
||||||
|
index dc3ebf6f8..a3773be3e 100644
|
||||||
|
--- a/src/quicktemplates2/qquickpopup_p.h
|
||||||
|
+++ b/src/quicktemplates2/qquickpopup_p.h
|
||||||
|
@@ -454,7 +454,10 @@ protected:
|
||||||
|
virtual QPalette defaultPalette() const;
|
||||||
|
|
||||||
|
#if QT_CONFIG(accessibility)
|
||||||
|
+ QAccessible::Role effectiveAccessibleRole() const;
|
||||||
|
+private:
|
||||||
|
virtual QAccessible::Role accessibleRole() const;
|
||||||
|
+protected:
|
||||||
|
virtual void accessibilityActiveChanged(bool active);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
diff --git a/src/quicktemplates2/qquickpopupitem.cpp b/src/quicktemplates2/qquickpopupitem.cpp
|
||||||
|
index 0069b9fc1..143c37fc3 100644
|
||||||
|
--- a/src/quicktemplates2/qquickpopupitem.cpp
|
||||||
|
+++ b/src/quicktemplates2/qquickpopupitem.cpp
|
||||||
|
@@ -404,7 +404,7 @@ QPalette QQuickPopupItem::defaultPalette() const
|
||||||
|
QAccessible::Role QQuickPopupItem::accessibleRole() const
|
||||||
|
{
|
||||||
|
Q_D(const QQuickPopupItem);
|
||||||
|
- return d->popup->accessibleRole();
|
||||||
|
+ return d->popup->effectiveAccessibleRole();
|
||||||
|
}
|
||||||
|
|
||||||
|
void QQuickPopupItem::accessibilityActiveChanged(bool active)
|
||||||
diff --git a/src/quicktemplates2/qquickscrollbar.cpp b/src/quicktemplates2/qquickscrollbar.cpp
|
diff --git a/src/quicktemplates2/qquickscrollbar.cpp b/src/quicktemplates2/qquickscrollbar.cpp
|
||||||
index 4e2f509db..1c4b308cd 100644
|
index 4e2f509db..1c4b308cd 100644
|
||||||
--- a/src/quicktemplates2/qquickscrollbar.cpp
|
--- a/src/quicktemplates2/qquickscrollbar.cpp
|
||||||
@@ -217,6 +305,32 @@ index 4e2f509db..1c4b308cd 100644
|
|||||||
layoutVertical();
|
layoutVertical();
|
||||||
vertical->setSize(area->property("heightRatio").toReal());
|
vertical->setSize(area->property("heightRatio").toReal());
|
||||||
vertical->setPosition(area->property("yPosition").toReal());
|
vertical->setPosition(area->property("yPosition").toReal());
|
||||||
|
diff --git a/src/quicktemplates2/qquicktextarea.cpp b/src/quicktemplates2/qquicktextarea.cpp
|
||||||
|
index d09d9c3b2..4346afd95 100644
|
||||||
|
--- a/src/quicktemplates2/qquicktextarea.cpp
|
||||||
|
+++ b/src/quicktemplates2/qquicktextarea.cpp
|
||||||
|
@@ -512,7 +512,7 @@ void QQuickTextAreaPrivate::accessibilityActiveChanged(bool active)
|
||||||
|
Q_Q(QQuickTextArea);
|
||||||
|
QQuickAccessibleAttached *accessibleAttached = qobject_cast<QQuickAccessibleAttached *>(qmlAttachedPropertiesObject<QQuickAccessibleAttached>(q, true));
|
||||||
|
Q_ASSERT(accessibleAttached);
|
||||||
|
- accessibleAttached->setRole(accessibleRole());
|
||||||
|
+ accessibleAttached->setRole(effectiveAccessibleRole());
|
||||||
|
accessibleAttached->set_readOnly(q->isReadOnly());
|
||||||
|
accessibleAttached->setDescription(placeholder);
|
||||||
|
}
|
||||||
|
diff --git a/src/quicktemplates2/qquicktextfield.cpp b/src/quicktemplates2/qquicktextfield.cpp
|
||||||
|
index 8fa04bd3a..e83346cbd 100644
|
||||||
|
--- a/src/quicktemplates2/qquicktextfield.cpp
|
||||||
|
+++ b/src/quicktemplates2/qquicktextfield.cpp
|
||||||
|
@@ -359,7 +359,7 @@ void QQuickTextFieldPrivate::accessibilityActiveChanged(bool active)
|
||||||
|
Q_Q(QQuickTextField);
|
||||||
|
QQuickAccessibleAttached *accessibleAttached = qobject_cast<QQuickAccessibleAttached *>(qmlAttachedPropertiesObject<QQuickAccessibleAttached>(q, true));
|
||||||
|
Q_ASSERT(accessibleAttached);
|
||||||
|
- accessibleAttached->setRole(accessibleRole());
|
||||||
|
+ accessibleAttached->setRole(effectiveAccessibleRole());
|
||||||
|
accessibleAttached->set_readOnly(m_readOnly);
|
||||||
|
accessibleAttached->set_passwordEdit((m_echoMode == QQuickTextField::Password || m_echoMode == QQuickTextField::PasswordEchoOnEdit) ? true : false);
|
||||||
|
accessibleAttached->setDescription(placeholder);
|
||||||
diff --git a/tests/auto/controls/data/tst_scrollview.qml b/tests/auto/controls/data/tst_scrollview.qml
|
diff --git a/tests/auto/controls/data/tst_scrollview.qml b/tests/auto/controls/data/tst_scrollview.qml
|
||||||
index 0e8b08352..cd4931184 100644
|
index 0e8b08352..cd4931184 100644
|
||||||
--- a/tests/auto/controls/data/tst_scrollview.qml
|
--- a/tests/auto/controls/data/tst_scrollview.qml
|
||||||
|
|||||||
@@ -64,6 +64,13 @@
|
|||||||
</Package>
|
</Package>
|
||||||
|
|
||||||
<History>
|
<History>
|
||||||
|
<Update release="32">
|
||||||
|
<Date>2023-05-10</Date>
|
||||||
|
<Version>5.15.9</Version>
|
||||||
|
<Comment>Rebuild.</Comment>
|
||||||
|
<Name>Mustafa Cinasal</Name>
|
||||||
|
<Email>muscnsl@gmail.com</Email>
|
||||||
|
</Update>
|
||||||
<Update release="31">
|
<Update release="31">
|
||||||
<Date>2023-04-10</Date>
|
<Date>2023-04-10</Date>
|
||||||
<Version>5.15.9</Version>
|
<Version>5.15.9</Version>
|
||||||
|
|||||||
@@ -11,8 +11,31 @@ index 561e77e..12e0574 100644
|
|||||||
image->fill(d->backColor.rgba());
|
image->fill(d->backColor.rgba());
|
||||||
QPainter p(image);
|
QPainter p(image);
|
||||||
d->r.render(&p, bounds);
|
d->r.render(&p, bounds);
|
||||||
|
diff --git a/src/svg/qsvgfont_p.h b/src/svg/qsvgfont_p.h
|
||||||
|
index fd0a3fa..fcffbe8 100644
|
||||||
|
--- a/src/svg/qsvgfont_p.h
|
||||||
|
+++ b/src/svg/qsvgfont_p.h
|
||||||
|
@@ -74,6 +74,7 @@ public:
|
||||||
|
class Q_SVG_PRIVATE_EXPORT QSvgFont : public QSvgRefCounted
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
+ static constexpr qreal DEFAULT_UNITS_PER_EM = 1000;
|
||||||
|
QSvgFont(qreal horizAdvX);
|
||||||
|
|
||||||
|
void setFamilyName(const QString &name);
|
||||||
|
@@ -86,9 +87,7 @@ public:
|
||||||
|
void draw(QPainter *p, const QPointF &point, const QString &str, qreal pixelSize, Qt::Alignment alignment) const;
|
||||||
|
public:
|
||||||
|
QString m_familyName;
|
||||||
|
- qreal m_unitsPerEm;
|
||||||
|
- qreal m_ascent;
|
||||||
|
- qreal m_descent;
|
||||||
|
+ qreal m_unitsPerEm = DEFAULT_UNITS_PER_EM;
|
||||||
|
qreal m_horizAdvX;
|
||||||
|
QHash<QChar, QSvgGlyph> m_glyphs;
|
||||||
|
};
|
||||||
diff --git a/src/svg/qsvghandler.cpp b/src/svg/qsvghandler.cpp
|
diff --git a/src/svg/qsvghandler.cpp b/src/svg/qsvghandler.cpp
|
||||||
index b2227b6..8dda563 100644
|
index b2227b6..222b6d8 100644
|
||||||
--- a/src/svg/qsvghandler.cpp
|
--- a/src/svg/qsvghandler.cpp
|
||||||
+++ b/src/svg/qsvghandler.cpp
|
+++ b/src/svg/qsvghandler.cpp
|
||||||
@@ -1393,9 +1393,10 @@ static void parseFont(QSvgNode *node,
|
@@ -1393,9 +1393,10 @@ static void parseFont(QSvgNode *node,
|
||||||
@@ -47,6 +70,15 @@ index b2227b6..8dda563 100644
|
|||||||
|
|
||||||
QRectF rect(ncx-nr, ncy-nr, nr*2, nr*2);
|
QRectF rect(ncx-nr, ncy-nr, nr*2, nr*2);
|
||||||
QSvgNode *circle = new QSvgCircle(parent, rect);
|
QSvgNode *circle = new QSvgCircle(parent, rect);
|
||||||
|
@@ -2666,7 +2671,7 @@ static bool parseFontFaceNode(QSvgStyleProperty *parent,
|
||||||
|
|
||||||
|
qreal unitsPerEm = toDouble(unitsPerEmStr);
|
||||||
|
if (!unitsPerEm)
|
||||||
|
- unitsPerEm = 1000;
|
||||||
|
+ unitsPerEm = QSvgFont::DEFAULT_UNITS_PER_EM;
|
||||||
|
|
||||||
|
if (!name.isEmpty())
|
||||||
|
font->setFamilyName(name);
|
||||||
@@ -3046,15 +3051,16 @@ static QSvgStyleProperty *createRadialGradientNode(QSvgNode *node,
|
@@ -3046,15 +3051,16 @@ static QSvgStyleProperty *createRadialGradientNode(QSvgNode *node,
|
||||||
|
|
||||||
qreal ncx = 0.5;
|
qreal ncx = 0.5;
|
||||||
|
|||||||
@@ -60,6 +60,13 @@
|
|||||||
</Package>
|
</Package>
|
||||||
|
|
||||||
<History>
|
<History>
|
||||||
|
<Update release="31">
|
||||||
|
<Date>2023-05-10</Date>
|
||||||
|
<Version>5.15.9</Version>
|
||||||
|
<Comment>Rebuild.</Comment>
|
||||||
|
<Name>Mustafa Cinasal</Name>
|
||||||
|
<Email>muscnsl@gmail.com</Email>
|
||||||
|
</Update>
|
||||||
<Update release="30">
|
<Update release="30">
|
||||||
<Date>2023-04-10</Date>
|
<Date>2023-04-10</Date>
|
||||||
<Version>5.15.9</Version>
|
<Version>5.15.9</Version>
|
||||||
|
|||||||
Reference in New Issue
Block a user