-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinfoview.h
35 lines (29 loc) · 839 Bytes
/
infoview.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef INFOVIEW_H
#define INFOVIEW_H
#include <QWidget>
#include <QGraphicsOpacityEffect>
#include <QPropertyAnimation>
namespace Ui {
class InfoView;
}
class InfoView : public QWidget
{
Q_OBJECT
public:
explicit InfoView(QWidget *parent = nullptr);
~InfoView();
void resetView(int info[10], bool animate=true);
private:
Ui::InfoView *ui;
QGraphicsOpacityEffect *effect = nullptr;
QPropertyAnimation *disappear_animation = nullptr;
QPropertyAnimation *appear_animation = nullptr;
int infoList[10];
void setUpView();
void setUpAnimation();
void changeInfo();
void setMainType(QString type, QString subTitle);
void setVirusType(int num, QString imgs[], QString main_labels[], QString sub_labels[], bool dan);
void setAPI(int num, QString apis[]);
};
#endif // INFOVIEW_H