aboutsummaryrefslogtreecommitdiff
path: root/src/debug_functions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug_functions.cpp')
-rw-r--r--src/debug_functions.cpp17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/debug_functions.cpp b/src/debug_functions.cpp
index 6186b9da..77f2f35a 100644
--- a/src/debug_functions.cpp
+++ b/src/debug_functions.cpp
@@ -1,18 +1,14 @@
-#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->setText("Error: " + p_message);
+ msgBox->setWindowTitle("Error");
+
- // msgBox->setWindowModality(Qt::NonModal);
+ //msgBox->setWindowModality(Qt::NonModal);
msgBox->exec();
}
@@ -21,10 +17,9 @@ void call_notice(QString p_message)
QMessageBox *msgBox = new QMessageBox;
msgBox->setText(p_message);
+ msgBox->setWindowTitle("Notice");
- msgBox->setWindowTitle(
- QCoreApplication::translate("debug_functions", "Notice"));
- // msgBox->setWindowModality(Qt::NonModal);
+ //msgBox->setWindowModality(Qt::NonModal);
msgBox->exec();
}