void PacketList::clear() { // packet_history_clear(); related_packet_delegate_.clear(); packet_list_model_->clear(); proto_tree_->clear(); byte_view_tab_->clear(); /* XXX is this correct in all cases? * Reset the sort column, use packetlist as model in case the list is frozen. */ sortByColumn(-1, Qt::AscendingOrder); setColumnVisibility(); }
void PacketList::showEvent (QShowEvent *event) { Q_UNUSED(event); for (int i = 0; i < prefs.num_cols; i++) { int fmt, col_width; const char *long_str; fmt = get_column_format(i); long_str = get_column_width_string(fmt, i); if (long_str) { col_width = packet_list_model_->columnTextSize(long_str); } else { col_width = packet_list_model_->columnTextSize(MIN_COL_WIDTH_STR); } setColumnWidth(i, col_width); } setColumnVisibility(); }
void PacketList::showEvent (QShowEvent *) { setColumnVisibility(); }
void PacketList::thaw() { setModel(packet_list_model_); setUpdatesEnabled(true); setColumnVisibility(); }