MCPcopy Create free account
hub / github.com/ElementsProject/elements / ConfirmMessage

Function ConfirmMessage

src/qt/test/util.cpp:14–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12#include <QWidget>
13
14void ConfirmMessage(QString* text, std::chrono::milliseconds msec)
15{
16 QTimer::singleShot(msec, [text]() {
17 for (QWidget* widget : QApplication::topLevelWidgets()) {
18 if (widget->inherits("QMessageBox")) {
19 QMessageBox* messageBox = qobject_cast<QMessageBox*>(widget);
20 if (text) *text = messageBox->text();
21 messageBox->defaultButton()->click();
22 }
23 }
24 });
25}

Callers 2

EditAddressAndSubmitFunction · 0.85
BumpFeeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected