aboutsummaryrefslogtreecommitdiff
path: root/src/debug_functions.cpp
diff options
context:
space:
mode:
authoroldmud0 <oldmud0@users.noreply.github.com>2021-01-06 12:41:52 -0600
committerGitHub <noreply@github.com>2021-01-06 12:41:52 -0600
commitd308fc83def2b2d1cb16b88a0a3f9355851f6cb7 (patch)
treee91d492c8352be8c57404de09e9f72eb1f569cd6 /src/debug_functions.cpp
parentf2a957f850f9ada9de405c5cfc80434c1545bd3a (diff)
parentc4b739292a217bb6a844d3ef4e89b656ab3f2d4b (diff)
Merge pull request #316 from AttorneyOnline/messagebox
add BB packet for a MessageBox popup
Diffstat (limited to 'src/debug_functions.cpp')
-rw-r--r--src/debug_functions.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/debug_functions.cpp b/src/debug_functions.cpp
index b832164..477eec7 100644
--- a/src/debug_functions.cpp
+++ b/src/debug_functions.cpp
@@ -1,5 +1,7 @@
#include <QCoreApplication>
#include <QMessageBox>
+#include <QTimer>
+#include <functional>
#include "debug_functions.h"
@@ -24,6 +26,10 @@ void call_notice(QString p_message)
msgBox->setWindowTitle(
QCoreApplication::translate("debug_functions", "Notice"));
- // msgBox->setWindowModality(Qt::NonModal);
- msgBox->exec();
+ msgBox->setStandardButtons(QMessageBox::NoButton);
+
+ QTimer::singleShot(3000, msgBox, std::bind(&QMessageBox::setStandardButtons,msgBox,QMessageBox::Ok));
+
+ msgBox->exec();
+
}