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

XML data should be opened by items and not by the layer. #37

Closed
Fr3nchK1ss opened this issue Apr 5, 2018 · 0 comments
Closed

XML data should be opened by items and not by the layer. #37

Fr3nchK1ss opened this issue Apr 5, 2018 · 0 comments
Assignees
Milestone

Comments

@Fr3nchK1ss
Copy link
Owner

Fr3nchK1ss commented Apr 5, 2018

So far a layer reads the XML data of a graphicItem, then create the item with "new item_xxx", then add it to the graphical layer. The XML data should be read by the item itself and the code should be something like:
foreach (itemX)
addItemToLayer(new itemX(QDomData));

So each graphicsItem must implement a new constructor taking DomData as argument.

@Fr3nchK1ss Fr3nchK1ss added this to the v2 milestone Apr 5, 2018
@Fr3nchK1ss Fr3nchK1ss self-assigned this Apr 5, 2018
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