/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Tools/Libs/GuiFoundation/UIServices/Implementation/QtWaitForOperationDlg.cpp
31 строка
608 B
Ingrater
clang-tidy use modernize-use-equals-default check (#951)
21 май 2023, 11:31
Не верифицирован
21 май 2023, 11:31
345d6ff
Код
Авторство
О чём код?
#include <GuiFoundation/GuiFoundationPCH.h> #include <GuiFoundation/UIServices/QtWaitForOperationDlg.moc.h> #include <QTimer> ezQtWaitForOperationDlg::ezQtWaitForOperationDlg(QWidget* pParent) : QDialog(pParent) { setupUi(this); QTimer::singleShot(10, this, &ezQtWaitForOperationDlg::onIdle); } ezQtWaitForOperationDlg::~ezQtWaitForOperationDlg() = default; void ezQtWaitForOperationDlg::on_ButtonCancel_clicked() { reject(); } void ezQtWaitForOperationDlg::onIdle() { if (m_OnIdle()) { QTimer::singleShot(10, this, &ezQtWaitForOperationDlg::onIdle); } else { accept(); } }