InterfaceTree::~InterfaceTree() { #ifdef HAVE_LIBPCAP if (stat_cache_) { capture_stat_stop(stat_cache_); stat_cache_ = NULL; } #endif // HAVE_LIBPCAP }
void InterfaceTree::hideEvent(QHideEvent *evt) { Q_UNUSED(evt); if (stat_timer_) stat_timer_->stop(); if (stat_cache_) { capture_stat_stop(stat_cache_); stat_cache_ = NULL; } }
void InterfaceTree::hideEvent(QHideEvent *) { #ifdef HAVE_LIBPCAP if (stat_timer_) stat_timer_->stop(); if (stat_cache_) { capture_stat_stop(stat_cache_); stat_cache_ = NULL; } #endif // HAVE_LIBPCAP }
void CaptureInterfacesDialog::on_tbInterfaces_hideEvent(QHideEvent *evt) { Q_UNUSED(evt); if (stat_timer_) stat_timer_->stop(); if (stat_cache_) { capture_stat_stop(stat_cache_); stat_cache_ = NULL; } }
InterfaceTree::~InterfaceTree() { QTreeWidgetItemIterator iter(this); if (stat_cache_) { capture_stat_stop(stat_cache_); stat_cache_ = NULL; } while (*iter) { QList<int> *points; QVariant v; v = (*iter)->data(1, Qt::UserRole); points = v.value<QList<int> *>(); delete(points); } }
InterfaceTree::~InterfaceTree() { #ifdef HAVE_LIBPCAP QTreeWidgetItemIterator iter(this); if (stat_cache_) { capture_stat_stop(stat_cache_); stat_cache_ = NULL; } while (*iter) { QList<int> *points; points = (*iter)->data(1, Qt::UserRole).value<QList<int> *>(); delete(points); ++iter; } #endif // HAVE_LIBPCAP }