-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobal.cpp
More file actions
24 lines (21 loc) · 701 Bytes
/
Copy pathglobal.cpp
File metadata and controls
24 lines (21 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//#include <QApplication>
#include "global.h"
namespace GLOBAL {
/*
void warning(QWidget *parent, const QString &title,
const QString &text, const QString &detailedText)
{
QScopedPointer<QMessageBox> messageBox(new QMessageBox(parent));
if (parent)
messageBox->setWindowModality(Qt::WindowModal);
messageBox->setWindowTitle(QString("%1 - %2")
.arg(QApplication::applicationName()).arg(title));
messageBox->setText(text);
if (!detailedText.isEmpty())
messageBox->setInformativeText(detailedText);
messageBox->setIcon(QMessageBox::Warning);
messageBox->addButton(QMessageBox::Ok);
messageBox->exec();
}
*/
}