Implements function MessageHandler.
More...
Go to the source code of this file.
|
| void | MessageHandler (QtMsgType type, const QMessageLogContext &, const QString &msg) |
| | This is set by main to be the message handler of our GUI. More...
|
| |
Implements function MessageHandler.
- Homepage:\n http://www.bornagainproject.org
- License:\n GNU General Public License v3 or higher (see COPYING)
- Copyright
- Forschungszentrum Jülich GmbH 2018
- Authors
- Scientific Computing Group at MLZ (see CITATION, AUTHORS)
Definition in file MessageHandler.cpp.
◆ MessageHandler()
| void MessageHandler |
( |
QtMsgType |
type, |
|
|
const QMessageLogContext & |
, |
|
|
const QString & |
msg |
|
) |
| |
This is set by main to be the message handler of our GUI.
Definition at line 20 of file MessageHandler.cpp.
26 std::cerr <<
"DEBUG: " << msg.toStdString() << std::endl;
29 std::cerr <<
"INFO: " << msg.toStdString() << std::endl;
33 if (msg.left(4) ==
"QXcb")
35 std::cerr <<
"WARNING: " << msg.toStdString() << std::endl;
39 std::cerr <<
"FATAL: " << msg.toStdString() << std::endl;
40 qApp->restoreOverrideCursor();
41 QMessageBox::critical(QApplication::activeWindow(), qAppName(),
42 "Sorry, you encountered a fatal bug.\n"
43 "The application will terminate.\n"
44 "Please note the following and inform the maintainers.\n\n"
Referenced by main().