Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NEMO#511 ToolBar animations now work as expected #2

Merged
merged 1 commit into from Oct 13, 2012

Conversation

faenil
Copy link
Member

@faenil faenil commented Oct 13, 2012

To know more about the bug, read https://bugs.nemomobile.org/show_bug.cgi?id=511

This bug is related to a design issue in QML, which is described here
https://bugreports.qt-project.org/browse/QTBUG-16856

To fix the bug: 

  • "" states have been given an explicit name
  • a new "default" state has been added 

There was also a wrong boolean condition which has now been fixed.

To know more about the bug, read https://bugs.nemomobile.org/show_bug.cgi?id=511

This bug is related to a design issue in QML, which is described here
https://bugreports.qt-project.org/browse/QTBUG-16856

To fix the bug: 
- "" states have been given an explicit name
- a new "default" state has been added 

There was also a wrong boolean condition which has now been fixed.
name: ""
when: !(privateVisibility == ToolBarVisibility.Visible || tools == null)
name: "visible"
when: (privateVisibility == ToolBarVisibility.Visible && tools != null)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. This means when tools == null, there is no matching state, so it'll use the default, which looks effectively identical to this state (excluding transitions). Does that work the same as before (is it meant to be visible)? In particular, will there be an animation if you change tools from null to non-null while otherwise visible?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind. The hidden state matches this case and will trigger transition.

@special
Copy link
Contributor

special commented Oct 13, 2012

LGTM. Thanks.

special added a commit that referenced this pull request Oct 13, 2012
NEMO#511: ToolBar animations now work as expected
@special special merged commit a2e5522 into nemomobile:master Oct 13, 2012
@faenil
Copy link
Member Author

faenil commented Oct 13, 2012

good :)

You're welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants