Removed deprecated QAbstractEventDispatcher::hasPendingEvents for Q 6

This commit is contained in:
thunder2 2025-07-23 00:51:03 +02:00
parent 1b1cb6e176
commit c8c833b3d6

View file

@ -613,7 +613,9 @@ void GenCertDialog::genPerson()
std::cout << "Waiting ed->processEvents()" << std::endl;
#endif
time_t waitEnd = time(NULL) + 10;//Wait no more than 10 sec to processEvents
#if QT_VERSION < QT_VERSION_CHECK (6, 0, 0)
if (ed->hasPendingEvents())
#endif
while(ed->processEvents(QEventLoop::AllEvents) && (time(NULL) < waitEnd));
std::string email_str = "" ;