Fix warning "Class implements the interface QGraphicsItem but does not list it

in Q_INTERFACES. qobject_cast to QGraphicsItem will not work!"

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2016-05-14 22:58:00 +03:00
parent e9d23a7a32
commit 02eb12ba3e

View file

@ -44,6 +44,9 @@ class VSimpleCurve;
class VToolRotation : public VDrawTool, public QGraphicsItem
{
Q_OBJECT
// Fix warning "Class implements the interface QGraphicsItem but does not list it
// in Q_INTERFACES. qobject_cast to QGraphicsItem will not work!"
Q_INTERFACES(QGraphicsItem)
public:
virtual ~VToolRotation();
virtual void setDialog() Q_DECL_OVERRIDE;