diff --git a/canframemodel.cpp b/canframemodel.cpp index fe54877..57d542d 100644 --- a/canframemodel.cpp +++ b/canframemodel.cpp @@ -281,7 +281,8 @@ QVariant CANFrameModel::headerData(int section, Qt::Orientation orientation, return QVariant(); } -void CANFrameModel::addFrame(const CANFrame &frame, bool autoRefresh = false) + +void CANFrameModel::addFrame(CANFrame frame, bool autoRefresh = false) { mutex.lock(); CANFrame tempFrame; diff --git a/canframemodel.h b/canframemodel.h index 7e93007..f53db11 100644 --- a/canframemodel.h +++ b/canframemodel.h @@ -23,7 +23,6 @@ public: int columnCount(const QModelIndex &) const; int totalFrameCount(); - void addFrame(const CANFrame &, bool); void sendRefresh(); void sendRefresh(int); void sendBulkRefresh(int); @@ -46,6 +45,9 @@ public: const QVector *getFilteredListReference() const; //Thus saith the Lord, NO. const QMap *getFiltersReference() const; //this neither +public slots: + void addFrame(CANFrame, bool); + signals: void updatedFiltersList();