Fix warning when launch Qt Port

QMetaObject::connectSlotsByName: No matching signal for on_tbInterfaces_hideEvent(QHideEvent*)
QMetaObject::connectSlotsByName: No matching signal for on_tbInterfaces_showEvent(QShowEvent*)
Object::connect: No such slot CaptureInterfacesDialog::tableItemPressed(QTableWidgetItem *)
Object::connect:  (sender name:   'tbInterfaces')
Object::connect:  (receiver name: 'CaptureInterfacesDialog')

svn path=/trunk/; revision=53808
This commit is contained in:
Alexis La Goutte 2013-12-06 10:24:50 +00:00
parent 8cfb238ad4
commit f9c27ac0d8
2 changed files with 5 additions and 4 deletions

View File

@ -57,7 +57,7 @@ CaptureInterfacesDialog::CaptureInterfacesDialog(QWidget *parent) :
stat_timer_ = NULL;
stat_cache_ = NULL;
connect(ui->tbInterfaces,SIGNAL(itemPressed(QTableWidgetItem *)),this,SLOT(tableItemPressed(QTableWidgetItem *)));
//connect(ui->tbInterfaces,SIGNAL(itemPressed(QTableWidgetItem *)),this,SLOT(tableItemPressed(QTableWidgetItem *)));
connect(ui->tbInterfaces,SIGNAL(itemClicked(QTableWidgetItem *)),this,SLOT(tableItemClicked(QTableWidgetItem *)));
}
@ -371,7 +371,7 @@ void CaptureInterfacesDialog::updateStatistics(void)
}
}
/*
void CaptureInterfacesDialog::on_tbInterfaces_hideEvent(QHideEvent *evt)
{
Q_UNUSED(evt);
@ -387,6 +387,7 @@ void CaptureInterfacesDialog::on_tbInterfaces_showEvent(QShowEvent *evt)
Q_UNUSED(evt);
if (stat_timer_) stat_timer_->start(stat_update_interval_);
}
*/
#endif /* HAVE_LIBPCAP */
/*

View File

@ -89,8 +89,8 @@ private slots:
void on_bStop_clicked();
void tableItemClicked(QTableWidgetItem * item);
void updateStatistics(void);
void on_tbInterfaces_hideEvent(QHideEvent *evt);
void on_tbInterfaces_showEvent(QShowEvent *evt);
//void on_tbInterfaces_hideEvent(QHideEvent *evt);
//void on_tbInterfaces_showEvent(QShowEvent *evt);
signals:
void startCapture();