PacketListModel::PacketListModel(QObject *parent, capture_file *cf) : QAbstractItemModel(parent), size_hint_enabled_(true), row_height_(-1), line_spacing_(0) { setCaptureFile(cf); connect(this, SIGNAL(itemHeightChanged(QModelIndex)), this, SLOT(emitItemHeightChanged(QModelIndex)), Qt::QueuedConnection); }
PacketListModel::PacketListModel(QObject *parent, capture_file *cf) : QAbstractItemModel(parent), max_row_height_(0), max_line_count_(1), idle_dissection_row_(0) { setCaptureFile(cf); PacketListRecord::clearStringPool(); connect(this, SIGNAL(maxLineCountChanged(QModelIndex)), this, SLOT(emitItemHeightChanged(QModelIndex)), Qt::QueuedConnection); idle_dissection_timer_ = new QElapsedTimer(); }
PacketListModel::PacketListModel(QObject *parent, capture_file *cf) : QAbstractItemModel(parent), uniform_row_heights_(true), row_height_(-1), line_spacing_(0), idle_dissection_row_(0) { setCaptureFile(cf); PacketListRecord::clearStringPool(); connect(this, SIGNAL(itemHeightChanged(QModelIndex)), this, SLOT(emitItemHeightChanged(QModelIndex)), Qt::QueuedConnection); idle_dissection_timer_ = new QElapsedTimer(); }
PacketListModel::PacketListModel(QObject *parent, capture_file *cf) : QAbstractItemModel(parent) { setCaptureFile(cf); }