Skip to content

Conversation

@slyshykO
Copy link

This is fast port to Qt5

@delaitre
Copy link
Owner

Thanks for that. I will test this as soon as I have some spare time!

I noticed :

-Ellipse::Ellipse(QDeclarativeItem* parent)

  • : QDeclarativeItem(parent)
    +Ellipse::Ellipse(QQuickItem* parent)
  • : QQuickPaintedItem(parent)
    , m_borderWidth(0.)
    {
  • // need to disable this flag to draw inside a QDeclarativeItem
  • setFlag(QGraphicsItem::ItemHasNoContents, false);
  • //FIXME: diasble flags settings ?
  • // need to disable this flag to draw inside a QQuickItem
  • //setFlag(QGraphicsItem::ItemHasNoContents, false);

// need to disable this flag to receive geometry change events
(used to discard the path cache)

  • setFlag(QGraphicsItem::ItemSendsGeometryChanges, true);
  • //setFlag(QGraphicsItem::ItemSendsGeometryChanges, true);
    }

and more or less the same thing in another class.

Does it mean ItemHasNoContents does not exist/is not needed anymore?

Same for ItemSendsGeometryChanges?

Thanks !

On 19 October 2014 02:36, Slyshyk Oleksiy notifications@github.com wrote:

This is fast port to Qt5

You can merge this Pull Request by running

git pull https://github.com/slyshykO/indigets qt5

Or view, comment on, or merge it at:

#1
Commit Summary

  • add qmake build
  • add qmldir fot dest directory
  • add msvd generated to ignor.
  • success compilation for Qt5
  • it is work.

File Changes

Patch Links:


Reply to this email directly or view it on GitHub
#1.

@slyshykO
Copy link
Author

I am commented setFlag() because i can't find proper flags in QQmlItem. Maybe they not used now. I only start learn QML.

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.

2 participants