+void noAppDialog(QString const & title, QString const & msg, QMessageBox::Icon mode)
+{
+ int argc = 1;
+ char * argv[1];
+ QApplication app(argc, argv);
+ switch (mode)
+ {
+ case QMessageBox::Information: QMessageBox::information(0, title, msg); break;
+ case QMessageBox::Warning: QMessageBox::warning(0, title, msg); break;
+ case QMessageBox::Critical: QMessageBox::critical(0, title, msg); break;
+ default: break;
+ }
+}
+
+