23 QMessageBox::StandardButton
QET::QetMessageBox::critical (QWidget *parent,
const QString &title,
const QString &text, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton defaultButton) {
25 QMessageBox message_box(QMessageBox::Critical, title, text, buttons, parent, Qt::Sheet);
26 message_box.setWindowModality(Qt::WindowModal);
28 QMessageBox message_box(QMessageBox::Critical, title, text, buttons, parent);
30 message_box.setDefaultButton(defaultButton);
32 return(static_cast<QMessageBox::StandardButton>(message_box.exec()));
38 QMessageBox::StandardButton
QET::QetMessageBox::information(QWidget *parent,
const QString &title,
const QString &text, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton defaultButton) {
40 QMessageBox message_box(QMessageBox::Information, title, text, buttons, parent, Qt::Sheet);
41 message_box.setWindowModality(Qt::WindowModal);
43 QMessageBox message_box(QMessageBox::Information, title, text, buttons, parent);
45 message_box.setDefaultButton(defaultButton);
47 return(static_cast<QMessageBox::StandardButton>(message_box.exec()));
53 QMessageBox::StandardButton
QET::QetMessageBox::question (QWidget *parent,
const QString &title,
const QString &text, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton defaultButton) {
55 QMessageBox message_box(QMessageBox::Question, title, text, buttons, parent, Qt::Sheet);
56 message_box.setWindowModality(Qt::WindowModal);
58 QMessageBox message_box(QMessageBox::Question, title, text, buttons, parent);
60 message_box.setDefaultButton(defaultButton);
62 return(static_cast<QMessageBox::StandardButton>(message_box.exec()));
68 QMessageBox::StandardButton
QET::QetMessageBox::warning (QWidget *parent,
const QString &title,
const QString &text, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton defaultButton) {
70 QMessageBox message_box(QMessageBox::Warning, title, text, buttons, parent, Qt::Sheet);
71 message_box.setWindowModality(Qt::WindowModal);
73 QMessageBox message_box(QMessageBox::Warning, title, text, buttons, parent);
75 message_box.setDefaultButton(defaultButton);
77 return(static_cast<QMessageBox::StandardButton>(message_box.exec()));
QMessageBox::StandardButton question(QWidget *, const QString &, const QString &, QMessageBox::StandardButtons=QMessageBox::Ok, QMessageBox::StandardButton=QMessageBox::NoButton)
QMessageBox::StandardButton information(QWidget *, const QString &, const QString &, QMessageBox::StandardButtons=QMessageBox::Ok, QMessageBox::StandardButton=QMessageBox::NoButton)
QMessageBox::StandardButton critical(QWidget *, const QString &, const QString &, QMessageBox::StandardButtons=QMessageBox::Ok, QMessageBox::StandardButton=QMessageBox::NoButton)
QMessageBox::StandardButton warning(QWidget *, const QString &, const QString &, QMessageBox::StandardButtons=QMessageBox::Ok, QMessageBox::StandardButton=QMessageBox::NoButton)