Gui: Use override etc 2
This commit is contained in:
@@ -47,7 +47,7 @@ class GuiExport ViewProviderAnnotation : public ViewProviderDocumentObject
|
||||
public:
|
||||
/// Constructor
|
||||
ViewProviderAnnotation();
|
||||
virtual ~ViewProviderAnnotation();
|
||||
~ViewProviderAnnotation() override;
|
||||
|
||||
// Display properties
|
||||
App::PropertyColor TextColor;
|
||||
@@ -58,13 +58,13 @@ public:
|
||||
App::PropertyAngle Rotation;
|
||||
App::PropertyEnumeration RotationAxis;
|
||||
|
||||
void attach(App::DocumentObject *);
|
||||
void updateData(const App::Property*);
|
||||
std::vector<std::string> getDisplayModes() const;
|
||||
void setDisplayMode(const char* ModeName);
|
||||
void attach(App::DocumentObject *) override;
|
||||
void updateData(const App::Property*) override;
|
||||
std::vector<std::string> getDisplayModes() const override;
|
||||
void setDisplayMode(const char* ModeName) override;
|
||||
|
||||
protected:
|
||||
void onChanged(const App::Property* prop);
|
||||
void onChanged(const App::Property* prop) override;
|
||||
|
||||
private:
|
||||
SoFont * pFont;
|
||||
@@ -91,7 +91,7 @@ class GuiExport ViewProviderAnnotationLabel : public ViewProviderDocumentObject
|
||||
public:
|
||||
/// Constructor
|
||||
ViewProviderAnnotationLabel();
|
||||
virtual ~ViewProviderAnnotationLabel();
|
||||
~ViewProviderAnnotationLabel() override;
|
||||
|
||||
// Display properties
|
||||
App::PropertyColor TextColor;
|
||||
@@ -101,22 +101,22 @@ public:
|
||||
App::PropertyFont FontName;
|
||||
App::PropertyBool Frame;
|
||||
|
||||
void attach(App::DocumentObject *);
|
||||
void updateData(const App::Property*);
|
||||
std::vector<std::string> getDisplayModes() const;
|
||||
void setDisplayMode(const char* ModeName);
|
||||
void attach(App::DocumentObject *) override;
|
||||
void updateData(const App::Property*) override;
|
||||
std::vector<std::string> getDisplayModes() const override;
|
||||
void setDisplayMode(const char* ModeName) override;
|
||||
|
||||
/** @name Edit methods */
|
||||
//@{
|
||||
bool doubleClicked();
|
||||
void setupContextMenu(QMenu*, QObject*, const char*);
|
||||
bool doubleClicked() override;
|
||||
void setupContextMenu(QMenu*, QObject*, const char*) override;
|
||||
protected:
|
||||
bool setEdit(int ModNum);
|
||||
void unsetEdit(int ModNum);
|
||||
bool setEdit(int ModNum) override;
|
||||
void unsetEdit(int ModNum) override;
|
||||
//@}
|
||||
|
||||
protected:
|
||||
void onChanged(const App::Property* prop);
|
||||
void onChanged(const App::Property* prop) override;
|
||||
void drawImage(const std::vector<std::string>&);
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user