1  void MainWindow::on_clearButton_clicked()
2  {
3    int status = QMessageBox::question( this,
4               tr("Delete all Records ?"),
5               tr("This operation will delete all saved records. "
6                "<p>Do you want to remove all saved records ? " ),
7                tr("Yes, Delete all records"), tr("No !"),
8                QString(), 1, 1);
9    if(status == 0)
10          ui->listWidget->clear();
11 }
