MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / slotShowMessageBox

Method slotShowMessageBox

App/Client/mainwindow.cpp:1368–1387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1366}
1367
1368void 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
1389void MainWindow::slotInformation(const QString& szInfo)
1390{

Callers

nothing calls this directly

Calls 3

SaveMethod · 0.45

Tested by

no test coverage detected