Add pending function to guimessagedialog.

This commit is contained in:
Krad
2022-05-12 09:07:55 +08:00
parent d18332baed
commit a7a5e1e308
3 changed files with 54 additions and 22 deletions

View File

@@ -6,7 +6,7 @@
namespace Ui {
class GUIMessageDialog;
}
class QToolButton;
class GUIMessageDialog : public QDialog
{
Q_OBJECT
@@ -20,14 +20,22 @@ public:
void hideExitButton();
void startLoading();
void stopLoading();
void startPending();
void stopPending();
bool Pending(){
return pending;
}
void setOpacity(double);
protected:
void timerEvent(QTimerEvent* event) override ;
private:
Ui::GUIMessageDialog *ui;
QList<QString> frame;
QToolButton *btn_main;
QToolButton *btn_Append;
int frameIndex=0;
int timerID = -1;
bool pending = false;
};
#endif // GUIMESSAGEDIALOG_H