aboutsummaryrefslogtreecommitdiff
path: root/src/debug_functions.cpp
blob: b83216402de2033d2eb7f5119de6eebcd24bfa60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#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();
}