
If you don't want to see this commit on blames, use the hidden whitespace option on GitHub, or use `-w` in git-blame.
30 lines
705 B
C++
30 lines
705 B
C++
#include <QCoreApplication>
|
|
#include <QMessageBox>
|
|
|
|
#include "debug_functions.h"
|
|
|
|
void call_error(QString p_message)
|
|
{
|
|
QMessageBox *msgBox = new QMessageBox;
|
|
|
|
msgBox->setText(QCoreApplication::translate("debug_functions", "Error: %1")
|
|
.arg(p_message));
|
|
msgBox->setWindowTitle(
|
|
QCoreApplication::translate("debug_functions", "Error"));
|
|
|
|
// msgBox->setWindowModality(Qt::NonModal);
|
|
msgBox->exec();
|
|
}
|
|
|
|
void call_notice(QString p_message)
|
|
{
|
|
QMessageBox *msgBox = new QMessageBox;
|
|
|
|
msgBox->setText(p_message);
|
|
msgBox->setWindowTitle(
|
|
QCoreApplication::translate("debug_functions", "Notice"));
|
|
|
|
// msgBox->setWindowModality(Qt::NonModal);
|
|
msgBox->exec();
|
|
}
|