mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 22:18:54 +01:00
Revert "Make qt wallet test compatible with qt4"
This reverts commit e9a64615c8.
This commit is contained in:
@@ -1,15 +1,13 @@
|
||||
#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);
|
||||
@@ -17,6 +15,5 @@ void ConfirmMessage(QString* text, int msec)
|
||||
messageBox->defaultButton()->click();
|
||||
}
|
||||
}
|
||||
delete callback;
|
||||
}), &Callback::call);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user