| 1366 | } |
| 1367 | |
| 1368 | void MainWindow::slotShowMessageBox( |
| 1369 | const QString &title, const QString &message, |
| 1370 | const QMessageBox::Icon &icon) |
| 1371 | { |
| 1372 | slotInformation(message); |
| 1373 | if(!m_Parameter.GetMessageBoxDisplayInformation()) |
| 1374 | return; |
| 1375 | |
| 1376 | QMessageBox msg(icon, title, message, QMessageBox::Ok, this); |
| 1377 | QCheckBox* cb = new QCheckBox( |
| 1378 | tr("Use message box to display information"), this); |
| 1379 | cb->setChecked(true); |
| 1380 | msg.setCheckBox(cb); |
| 1381 | RC_SHOW_WINDOW(&msg); |
| 1382 | if(!cb->isChecked()) |
| 1383 | { |
| 1384 | m_Parameter.SetMessageBoxDisplayInformation(false); |
| 1385 | m_Parameter.Save(); |
| 1386 | } |
| 1387 | } |
| 1388 | |
| 1389 | void MainWindow::slotInformation(const QString& szInfo) |
| 1390 | { |
nothing calls this directly
no test coverage detected