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:
parent
e9d23a7a32
commit
02eb12ba3e
|
@ -44,6 +44,9 @@ class VSimpleCurve;
|
||||||
class VToolRotation : public VDrawTool, public QGraphicsItem
|
class VToolRotation : public VDrawTool, public QGraphicsItem
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
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:
|
public:
|
||||||
virtual ~VToolRotation();
|
virtual ~VToolRotation();
|
||||||
virtual void setDialog() Q_DECL_OVERRIDE;
|
virtual void setDialog() Q_DECL_OVERRIDE;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user