forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Make qt wallet test compatible with qt4"
This reverts commit e9a6461.
- Loading branch information
MarcoFalke
committed
Oct 20, 2018
1 parent
be99270
commit fadffae
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