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

Containment attached object #150

Closed
plfiorini opened this issue Mar 24, 2014 · 0 comments
Closed

Containment attached object #150

plfiorini opened this issue Mar 24, 2014 · 0 comments

Comments

@plfiorini
Copy link
Member

Expose containment properties with an attached object that lets us write code like this:

Item {
    Containment.onLocationChanged: {
        // Code that handles location (top edge, right edge, ...)
    }
}
@plfiorini plfiorini added this to the Version 0.3.0 milestone Mar 24, 2014
@plfiorini plfiorini self-assigned this Mar 24, 2014
plfiorini added a commit that referenced this issue Mar 25, 2014
Just like we did with elements.
The containment is exposed with an attached object.

Issue: #150
plfiorini added a commit that referenced this issue Mar 25, 2014
Create a ContainmentItem object to make the attached object available.

Issue: #150
plfiorini added a commit that referenced this issue Mar 25, 2014
Without this, containments can't access the Containment attached
object.

Issue: #150
plfiorini added a commit that referenced this issue Mar 25, 2014
Use the Containment attached object everywhere.

Issue: #150
Issue: #151
plfiorini added a commit that referenced this issue Mar 25, 2014
It's worth having a method that returns the actual root object
so that it can be accessed elsewhere.

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

No branches or pull requests

1 participant