Backport qt5 packages
Backport qt5 packages since they are removed from the main gentoo repos.
This commit is contained in:
@ -0,0 +1,22 @@
|
||||
https://bugs.gentoo.org/973374
|
||||
https://codereview.qt-project.org/c/qt%2Fqtdeclarative/+/733089
|
||||
--- a/src/qml/qml/qqmltypecompiler.cpp
|
||||
+++ b/src/qml/qml/qqmltypecompiler.cpp
|
||||
@@ -919,12 +919,11 @@
|
||||
// Apply the ordering in the IR
|
||||
obj->setFirstAlias(ordered[0]);
|
||||
- if (ordered[0] == defaultPropertyAlias)
|
||||
- obj->indexOfDefaultPropertyOrAlias = 0;
|
||||
- for (qsizetype i = 0, end = ordered.size() - 1; i < end; ++i) {
|
||||
+ for (qsizetype i = 0, end = ordered.size() - 1; i < end; ++i)
|
||||
ordered[i]->next = ordered[i + 1];
|
||||
- if (ordered[i] == defaultPropertyAlias)
|
||||
- obj->indexOfDefaultPropertyOrAlias = i;
|
||||
- }
|
||||
ordered.last()->next = nullptr;
|
||||
+ if (defaultPropertyAlias) {
|
||||
+ auto it = std::find(ordered.constBegin(), ordered.constEnd(), defaultPropertyAlias);
|
||||
+ obj->indexOfDefaultPropertyOrAlias = std::distance(ordered.constBegin(), it);
|
||||
+ }
|
||||
|
||||
return true;
|
||||
Reference in New Issue
Block a user