Commit 242b124a authored by Jan Möbius's avatar Jan Möbius

Silence some cppcheck warnings

parent 16bc12e0
......@@ -56,42 +56,42 @@ public:
MultiObjectPropertyModel(const QStringList& res, QObject *parent = 0);
virtual ~MultiObjectPropertyModel();
virtual int rowCount(const QModelIndex & parent = QModelIndex()) const;
virtual QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const;
virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
virtual int rowCount(const QModelIndex & parent = QModelIndex()) const override;
virtual QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const override;
virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
/// Revisualizes visualized properties.
virtual void objectUpdated();
virtual void objectUpdated() override;
/// Visualizes the selected properties.
virtual void visualize(QModelIndexList selectedIndices, QWidgetList widgets = QWidgetList());
virtual void visualize(QModelIndexList selectedIndices, QWidgetList widgets = QWidgetList()) override;
/// Removes the selected properties.
virtual void removeProperty(QModelIndexList selectedIndices);
virtual void removeProperty(QModelIndexList selectedIndices) override;
/// Duplicates the selected properties.
virtual void duplicateProperty(QModelIndexList selectedIndices);
virtual void duplicateProperty(QModelIndexList selectedIndices) override;
/// Searches for properties and creates PropertyVisualizers.
virtual void gatherProperties();
virtual void gatherProperties() override;
/// Clears the selected property visualization.
virtual void clear(QModelIndexList selectedIndices);
virtual void clear(QModelIndexList selectedIndices) override;
/// Hides the widget.
virtual void hideWidget();
virtual void hideWidget() override;
/// Returns the widget.
virtual QWidget* getWidget();
virtual QWidget* getWidget() override;
/// Updates the widget
virtual void updateWidget(const QModelIndexList& selectedIndices);
virtual void updateWidget(const QModelIndexList& selectedIndices) override;
/// Connects the PropertyVisualizer log signals with the log slot.
virtual void connectLogs(PropertyVisualizer* propViz);
virtual void connectLogs(PropertyVisualizer* propViz) override;
/// Returns the property info for the property with the given index.
virtual PropertyInfo getPropertyInfo(const QModelIndex index) const;
virtual PropertyInfo getPropertyInfo(const QModelIndex index) const override;
private:
QWidget* createWidgetForType(const TypeInfoWrapper& info) const;
......
......@@ -84,48 +84,48 @@ private slots:
void slotLog(QString _message){ emit log(_message);}
public:
virtual void pickModeChanged(const std::string& _mode) {}
virtual void mouseEvent(QMouseEvent* _event) {}
virtual void pickModeChanged(const std::string& _mode) override {}
virtual void mouseEvent(QMouseEvent* _event) override {}
explicit SingleObjectPropertyModel(QObject *parent = 0);
virtual ~SingleObjectPropertyModel();
virtual int rowCount(const QModelIndex & parent = QModelIndex()) const;
virtual QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const;
virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
virtual int rowCount(const QModelIndex & parent = QModelIndex()) const override;
virtual QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const override;
virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
/// Revisualizes visualized properties.
virtual void objectUpdated();
virtual void objectUpdated() override;
/// Visualizes the selected properties.
virtual void visualize(QModelIndexList selectedIndices, QWidgetList widgets = QWidgetList());
virtual void visualize(QModelIndexList selectedIndices, QWidgetList widgets = QWidgetList()) override;
/// Removes the selected properties.
virtual void removeProperty(QModelIndexList selectedIndices);
virtual void removeProperty(QModelIndexList selectedIndices) override;
/// Duplicates the selected properties.
virtual void duplicateProperty(QModelIndexList selectedIndices);
virtual void duplicateProperty(QModelIndexList selectedIndices) override;
/// Searches for properties and creates PropertyVisualizers.
virtual void gatherProperties(){ /* implemented by subclass */ }
virtual void gatherProperties() override { /* implemented by subclass */ }
/// Clears the selected property visualization.
virtual void clear(QModelIndexList selectedIndices);
virtual void clear(QModelIndexList selectedIndices) override;
/// Hides the widget.
inline void hideWidget() { widgets->hide(); }
inline void hideWidget() override { widgets->hide(); }
/// Returns the widget.
inline QWidget* getWidget() { return widgets; }
inline QWidget* getWidget() override { return widgets; }
/// Updates the widget
virtual void updateWidget(const QModelIndexList& selectedIndices);
virtual void updateWidget(const QModelIndexList& selectedIndices) override;
/// Connects the PropertyVisualizer log signals with the log slot.
void connectLogs(PropertyVisualizer* propViz);
void connectLogs(PropertyVisualizer* propViz) override;
/// Returns the property info for the property with the given index.
virtual PropertyInfo getPropertyInfo(const QModelIndex index) const;
virtual PropertyInfo getPropertyInfo(const QModelIndex index) const override;
/// Returns a qscript object that can be used to access visualisation parameters
virtual QScriptValue getScriptObject(const QModelIndex index, QScriptContext *ctx);
......
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