fix override warnings

This commit is contained in:
wmayer
2017-09-15 01:49:12 +02:00
parent 5e417af9c1
commit ed87b819cb
4 changed files with 14 additions and 14 deletions

View File

@@ -62,7 +62,7 @@ public:
/// recalculate the Feature
virtual App::DocumentObjectExecReturn *execute(void);
virtual void onDocumentRestored();
virtual short mustExecute() const;
virtual short mustExecute() const override;
//@}
void Restore(Base::XMLReader &reader);
@@ -73,14 +73,14 @@ public:
return "TechDrawGui::ViewProviderDrawingView";
}
//return PyObject as DrawViewPy
virtual PyObject *getPyObject(void);
virtual PyObject *getPyObject(void) override;
DrawPage* findParentPage() const;
bool allowAutoPos() {return autoPos;}; //sb in DPGI??
void setAutoPos(bool state) {autoPos = state;}; //autopos is obsolete
bool isMouseMove() {return mouseMove;};
void setMouseMove(bool state) {mouseMove = state;};
virtual QRectF getRect() const; //must be overridden by derived class
bool allowAutoPos() {return autoPos;} //sb in DPGI??
void setAutoPos(bool state) {autoPos = state;} //autopos is obsolete
bool isMouseMove() {return mouseMove;}
void setMouseMove(bool state) {mouseMove = state;}
virtual QRectF getRect() const; //must be overridden by derived class
virtual double autoScale(double w, double h) const;
virtual bool checkFit(DrawPage*) const;
virtual void setPosition(double x, double y);

View File

@@ -61,9 +61,9 @@ public:
virtual bool checkFit(TechDraw::DrawPage* p) const override;
//return PyObject as DrawViewSymbolPy
virtual PyObject *getPyObject(void);
virtual PyObject *getPyObject(void) override;
virtual short mustExecute() const;
virtual short mustExecute() const override;
protected: