DRASTIC speed up of file loading by not refreshing until the file load is done. Very fast now.
This commit is contained in:
+7
-1
@@ -98,8 +98,14 @@ QVariant CANFrameModel::headerData(int section, Qt::Orientation orientation,
|
||||
|
||||
void CANFrameModel::addFrame(CANFrame &frame)
|
||||
{
|
||||
beginInsertRows(QModelIndex(), frames.count() + 1, frames.count() + 1);
|
||||
//beginInsertRows(QModelIndex(), frames.count() + 1, frames.count() + 1);
|
||||
frames.append(frame);
|
||||
//endInsertRows();
|
||||
}
|
||||
|
||||
void CANFrameModel::sendRefresh()
|
||||
{
|
||||
beginInsertRows(QModelIndex(), 0, frames.count());
|
||||
endInsertRows();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user