Commit cf2c39a1 authored by Jan Möbius's avatar Jan Möbius

Silence some cppcheck warnings

parent f676da75
......@@ -78,19 +78,19 @@ class Button : public Text
~Button ();
/// Bounding rectangle
QRectF boundingRect () const;
QRectF boundingRect () const override;
/// Sets the geometry
void setGeometry (const QRectF &_rect);
void setGeometry (const QRectF &_rect) override;
/// Button glow painting
void paint (QPainter *_painter, const QStyleOptionGraphicsItem *_option, QWidget *_widget = 0);
void paint (QPainter *_painter, const QStyleOptionGraphicsItem *_option, QWidget *_widget = 0) override;
/// Sets the background brush
void setBackgroundBrush (QBrush _brush);
void setBackgroundBrush (QBrush _brush) override;
/// Sets the background pen
void setBackgroundPen (QPen _pen);
void setBackgroundPen (QPen _pen) override;
signals:
/// emmited if the button gets pressed
......
......@@ -75,7 +75,7 @@ class ElementInput : public ElementInOut {
~ElementInput ();
/// Type (=Input)
Type type () const { return TypeInput; };
Type type () const override { return TypeInput; };
/// Sets the valid flag (needed during code generation)
void setValid (bool _value) { valid_ = _value; };
......@@ -90,10 +90,10 @@ class ElementInput : public ElementInOut {
QString value () const { return value_; };
/// Add connection
void addConnection (Connection *_conn);
void addConnection (Connection *_conn) override;
/// Remove connection
void removeConnection (Connection *_conn);
void removeConnection (Connection *_conn) override;
/// "Set" flag to mark input as set by user
void set (bool _set);
......
......@@ -68,13 +68,13 @@ class ElementOutput : public ElementInOut {
~ElementOutput ();
/// Type (=Output)
Type type () const { return TypeOutput; };
Type type () const override { return TypeOutput; } ;
/// Add connection
void addConnection (Connection *_conn);
void addConnection (Connection *_conn) override;
/// Remove connection
void removeConnection (Connection *_conn);
void removeConnection (Connection *_conn) override;
};
//=============================================================================
......
......@@ -62,7 +62,7 @@ class TypeAny : public Type {
TypeAny ();
/// Can this type be converted to the given type?
bool canConvertTo (QString _type);
bool canConvertTo (QString _type) override;
};
//=============================================================================
......
......@@ -62,7 +62,7 @@ class TypeBool : public Type {
TypeBool ();
/// Has configuration widget
bool hasWidget ();
bool hasWidget () override;
/// Returns configuration widget
TypeWidget *widget (QMap<QString, QString> _hints, QString _typeName, QWidget *_parent = NULL);
......
......@@ -70,13 +70,13 @@ class BoolWidget : public TypeWidget {
~BoolWidget ();
/// Convert current value to string
QString toValue ();
QString toValue () override;
/// Read value from string
void fromValue (QString _from);
void fromValue (QString _from) override;
/// Reset to default
void toDefault ();
void toDefault () override;
private:
......
......@@ -62,7 +62,7 @@ class TypeFilename : public Type {
TypeFilename ();
/// Has configuration widget
bool hasWidget ();
bool hasWidget () override;
/// Returns configuration widget
TypeWidget *widget (QMap<QString, QString> _hints, QString _typeName, QWidget *_parent = NULL);
......
......@@ -73,13 +73,13 @@ class FilenameWidget : public TypeWidget {
~FilenameWidget ();
/// Convert current value to string
QString toValue ();
QString toValue () override;
/// Read value from string
void fromValue (QString _from);
void fromValue (QString _from) override;
/// Reset to default
void toDefault ();
void toDefault () override;
private slots:
......
......@@ -62,7 +62,7 @@ class TypeMatrix4x4 : public Type {
TypeMatrix4x4 ();
/// Has configuration widget
bool hasWidget ();
bool hasWidget () override;
/// Returns configuration widget
TypeWidget *widget (QMap<QString, QString> _hints, QString _typeName, QWidget *_parent = NULL);
......
......@@ -69,13 +69,13 @@ class Matrix4x4Widget : public TypeWidget {
~Matrix4x4Widget ();
/// Convert current value to string
QString toValue ();
QString toValue () override;
/// Read value from string
void fromValue (QString _from);
void fromValue (QString _from) override;
/// Reset to default
void toDefault ();
void toDefault () override;
private slots:
void editingFinished ();
......
......@@ -71,13 +71,13 @@ class NumWidget : public TypeWidget {
~NumWidget ();
/// Convert current value to string
QString toValue ();
QString toValue () override;
/// Read value from string
void fromValue (QString _from);
void fromValue (QString _from) override;
/// Reset to default
void toDefault ();
void toDefault () override;
private slots:
......
......@@ -62,7 +62,7 @@ class TypeNumber : public Type {
TypeNumber ();
/// Has configuration widget
bool hasWidget ();
bool hasWidget () override;
/// Returns configuration widget
TypeWidget *widget (QMap<QString, QString> _hints, QString _typeName, QWidget *_parent = NULL);
......
......@@ -62,7 +62,7 @@ class TypeObjectId : public Type {
TypeObjectId ();
/// Has configuration widget
bool hasWidget ();
bool hasWidget () override;
/// Returns configuration widget
TypeWidget *widget (QMap<QString, QString> _hints, QString _typeName, QWidget *_parent = NULL);
......
......@@ -71,13 +71,13 @@ class ObjectIdWidget : public TypeWidget {
~ObjectIdWidget ();
/// Convert current value to string
QString toValue ();
QString toValue () override;
/// Read value from string
void fromValue (QString _from);
void fromValue (QString _from) override;
/// Reset to default
void toDefault ();
void toDefault () override;
private slots:
void showPickDialog ();
......
......@@ -62,7 +62,7 @@ class TypeSelection : public Type {
TypeSelection ();
/// Has configuration widget
bool hasWidget ();
bool hasWidget () override;
/// Returns configuration widget
TypeWidget *widget (QMap<QString, QString> _hints, QString _typeName, QWidget *_parent = NULL);
......
......@@ -74,13 +74,13 @@ class SelectionWidget : public TypeWidget {
~SelectionWidget ();
/// Convert current value to string
QString toValue ();
QString toValue () override;
/// Read value from string
void fromValue (QString _from);
void fromValue (QString _from) override;
/// Reset to default
void toDefault ();
void toDefault () override;
private:
QVector <QPair <QString,QString> > names_;
......
......@@ -62,7 +62,7 @@ class TypeString : public Type {
TypeString ();
/// Has configuration widget
bool hasWidget ();
bool hasWidget () override;
/// Returns configuration widget
TypeWidget *widget (QMap<QString, QString> _hints, QString _typeName, QWidget *_parent = NULL);
......
......@@ -71,13 +71,13 @@ class StringWidget : public TypeWidget {
~StringWidget ();
/// Convert current value to string
QString toValue ();
QString toValue () override;
/// Read value from string
void fromValue (QString _from);
void fromValue (QString _from) override;
/// Reset to default
void toDefault ();
void toDefault () override;
private:
QString default_;
......
......@@ -62,7 +62,7 @@ class TypeVec3D : public Type {
TypeVec3D ();
/// Has configuration widget
bool hasWidget ();
bool hasWidget () override;
/// Returns configuration widget
TypeWidget *widget (QMap<QString, QString> _hints, QString _typeName, QWidget *_parent = NULL);
......
......@@ -69,13 +69,13 @@ class Vec3DWidget : public TypeWidget {
~Vec3DWidget ();
/// Convert current value to string
QString toValue ();
QString toValue () override;
/// Read value from string
void fromValue (QString _from);
void fromValue (QString _from) override;
/// Reset to default
void toDefault ();
void toDefault () override;
private slots:
void editingFinished ();
......
......@@ -61,7 +61,7 @@ class TypeVec4D : public Type {
TypeVec4D ();
/// Has configuration widget
bool hasWidget ();
bool hasWidget () override;
/// Returns configuration widget
TypeWidget *widget (QMap<QString, QString> _hints, QString _typeName, QWidget *_parent = NULL);
......
......@@ -68,13 +68,13 @@ class Vec4DWidget : public TypeWidget {
~Vec4DWidget ();
/// Convert current value to string
QString toValue ();
QString toValue () override;
/// Read value from string
void fromValue (QString _from);
void fromValue (QString _from) override;
/// Reset to default
void toDefault ();
void toDefault () override;
private slots:
void editingFinished ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment