void histroydata::itemselect(void)
{
QListWidgetItem *curItem = ui.meterlist->currentItem();
histroyitem state(this);
state.address =curItem->data(Qt::UserRole).toString();
state.datashow();
state.exec();
}
void histroydata::keyPressEvent(QKeyEvent *event)
{
switch(event->key())
{
case Qt::Key_Enter:
itemselect();
break;
default:
QDialog::keyPressEvent(event);
}
}