Commit 5e211e3e authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed last commit

parent 783aa1ef
...@@ -54,11 +54,11 @@ class PropertyModel: public QAbstractListModel ...@@ -54,11 +54,11 @@ class PropertyModel: public QAbstractListModel
Q_OBJECT Q_OBJECT
public: public:
virtual void pickModeChanged(const std::string& _mode) {} virtual void pickModeChanged(const std::string& _mode) {}
virtual void mouseEvent(QMouseEvent* _event) {} virtual void mouseEvent(QMouseEvent* _event) {}
explicit PropertyModel(QObject *parent = 0) : QAbstractListModel(parent) {} explicit PropertyModel(QObject *parent = 0) : QAbstractListModel(parent) {}
virtual ~PropertyModel() {} virtual ~PropertyModel() {}
virtual int rowCount(const QModelIndex & parent = QModelIndex()) const = 0; virtual int rowCount(const QModelIndex & parent = QModelIndex()) const = 0;
virtual QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const = 0; virtual QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const = 0;
......
...@@ -66,7 +66,7 @@ class PropertyNameListModel: public QAbstractListModel { ...@@ -66,7 +66,7 @@ class PropertyNameListModel: public QAbstractListModel {
class TypeInfoWrapper { class TypeInfoWrapper {
public: public:
TypeInfoWrapper(const std::type_info & ti, const char *friendlyName) : ti(&ti), friendlyName(friendlyName) {} TypeInfoWrapper(const std::type_info & ti, const char *friendlyName) : ti(&ti), friendlyName(friendlyName) {}
explicit TypeInfoWrapper(const std::type_info & ti) : ti(&ti),friendlyName("") {} TypeInfoWrapper(const std::type_info & ti) : ti(&ti),friendlyName("") {}
operator const std::type_info *() const { return ti; } operator const std::type_info *() const { return ti; }
operator const std::type_info &() const { return *ti; } operator const std::type_info &() const { return *ti; }
......
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