From 04ed1a1812139b0cbef5599a6acd8ee9c3155c2f Mon Sep 17 00:00:00 2001 From: stonedDiscord <10584181+stonedDiscord@users.noreply.github.com> Date: Mon, 4 Jan 2021 16:44:14 +0100 Subject: add 3 second timer before OK shows up --- src/debug_functions.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/debug_functions.cpp') diff --git a/src/debug_functions.cpp b/src/debug_functions.cpp index b832164..f96d6b0 100644 --- a/src/debug_functions.cpp +++ b/src/debug_functions.cpp @@ -1,5 +1,6 @@ #include #include +#include #include "debug_functions.h" @@ -24,6 +25,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(); + } -- cgit From 714f54b9dccf1efbdd524e17b2dd4f4deefc8a01 Mon Sep 17 00:00:00 2001 From: stonedDiscord <10584181+stonedDiscord@users.noreply.github.com> Date: Mon, 4 Jan 2021 18:05:03 +0100 Subject: CI needs an extra include for bind --- src/debug_functions.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/debug_functions.cpp') diff --git a/src/debug_functions.cpp b/src/debug_functions.cpp index f96d6b0..477eec7 100644 --- a/src/debug_functions.cpp +++ b/src/debug_functions.cpp @@ -1,6 +1,7 @@ #include #include #include +#include #include "debug_functions.h" -- cgit