-
Notifications
You must be signed in to change notification settings - Fork 36.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #14527: qa: Revert "Make qt wallet test compatible with qt4"
fadffae Revert "Make qt wallet test compatible with qt4" (MarcoFalke) Pull request description: This removes the file added in #10098 Tree-SHA512: 4aa887ec02aec943f3d74f469c935acf57e43ddbea6f979bb37d3a14670571fa2276cf578e8978de92b5854d8b462f24e5e0addfb27b92fbedf90726eb5d985e
- Loading branch information
Showing
5 changed files
with
7 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,19 @@ | ||
#include <qt/callback.h> | ||
|
||
#include <QApplication> | ||
#include <QMessageBox> | ||
#include <QTimer> | ||
#include <QString> | ||
#include <QPushButton> | ||
#include <QString> | ||
#include <QTimer> | ||
#include <QWidget> | ||
|
||
void ConfirmMessage(QString* text, int msec) | ||
{ | ||
QTimer::singleShot(msec, makeCallback([text](Callback* callback) { | ||
QTimer::singleShot(msec, [text]() { | ||
for (QWidget* widget : QApplication::topLevelWidgets()) { | ||
if (widget->inherits("QMessageBox")) { | ||
QMessageBox* messageBox = qobject_cast<QMessageBox*>(widget); | ||
if (text) *text = messageBox->text(); | ||
messageBox->defaultButton()->click(); | ||
} | ||
} | ||
delete callback; | ||
}), &Callback::call); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters