Warning about dtkComposerScenePort::type()
During the development of
dtk-continuous-geometry I found that warning:
dtk/src/dtkComposer/dtkComposerScenePort.h:41:32: warning: 'dtkComposerScenePort::type' hides overloaded virtual function [-Woverloaded-virtual] dtkComposerScenePort::Type type(void); ^ /usr/include/qt5/QtWidgets/qgraphicsitem.h:421:17: note: hidden overloaded virtual function 'QGraphicsItem::type' declared here: different return type ('int' vs 'dtkComposerScenePort::Type') virtual int type() const; ^
That is annoying, and I think it cannot be fixed easily. I my opinion, that function
should be renamed to something like
portType(), but that will have impact on all pieces of code using that API.