-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Conversation
@brunoabinader, thanks for your PR! By analyzing this pull request, we identified @jfirebaugh, @1ec5 and @incanus to be potential reviewers. |
Tagging @tmpsantos for reviewing the Qt changes 👍 |
de2055e
to
84d9abf
Compare
@brunoabinader Sorry for the flip-flop, but after reviewing how style batch updates happen in GL JS and will need to happen in native for #5701, I think you had the right idea moving classes to 👍 on |
Reviewed offline. |
84d9abf
to
06a615e
Compare
@jfirebaugh rewrote the PR, keeping class handling in Style and applying the transition options changes. @tmpsantos we can forward the QML style property behavior changes to the upcoming QML style layer PR. |
|
||
auto duration = mbgl::Milliseconds(300); | ||
map.setTransitionOptions({ { duration } }); | ||
EXPECT_EQ(map.getTransitionOptions().duration->count(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you just do EXPECT_EQ(map.getTransitionOptions().duration, duration)
here? Ditto line 260.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes and no - with the current implementation I get invalid operands to binary expression ('const std::experimental::fundamentals_v1::optional<std::__1::chrono::duration<long long, std::__1::ratio<1, 1000000000> > >' and 'const std::__1::chrono::duration<long long, std::__1::ratio<1, 1000> >')
- but if I encapsulate duration
inside mbgl::Duration
then it works fine 👍 Thanks!
LGTM, modulo the nit in the test code and the CI failures. |
Now the style class transition options have its own getter/setter, which persists for each style until a new style is set.
06a615e
to
2619db1
Compare
2619db1
to
fdaf26b
Compare
Fixes #6118.
mbgl::Style
state changes.mbgl::setClassTransition
to cleanup class API.classes
property now belongs toQQuickMapboxGL
(map) instead ofQQuickMapboxGLStyle
(style)