| 305 | // --- Static helpers ---------------------------------------------------------- |
| 306 | |
| 307 | void MessageBox::information(QWidget* parent, const QString& title, const QString& text) { |
| 308 | MessageBox dlg(parent); |
| 309 | dlg.setTitle(title); |
| 310 | dlg.setText(text); |
| 311 | dlg.addButton(tr("OK"), kPrimaryRole); |
| 312 | dlg.exec(); |
| 313 | } |
| 314 | |
| 315 | void MessageBox::warning(QWidget* parent, const QString& title, const QString& text) { |
| 316 | MessageBox dlg(parent); |