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