You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
LaunchRegisterKey/ui/countdownmessagebox.h

20 lines
498 B
C++

#ifndef COUNTDOWNMESSAGEBOX_H
#define COUNTDOWNMESSAGEBOX_H
#include <QMessageBox>
#include <QTimer>
class CountdownMessageBox : public QMessageBox
{
public:
explicit CountdownMessageBox(int timeoutSeconds, QWidget *parent = nullptr);
static void showCountdownMessageBox(QWidget *parent, int timeoutSeconds, const QString &title);
private slots:
void updateCountdown();
private:
int m_timeoutSeconds;
QTimer *m_timer;
};
#endif // COUNTDOWNMESSAGEBOX_H