-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathranklistpage.h
70 lines (61 loc) · 1.42 KB
/
ranklistpage.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#ifndef RANKLISTPAGE_H
#define RANKLISTPAGE_H
#include <QWidget>
#include <QLabel>
#include <QtGui/QTextLine>
#include <QPropertyAnimation>
#include <QDebug>
#include <QImage>
#include <QFile>
#include "hoverbutton.h"
#include "gamewidget.h"
#include <QTime>
#include <QTemporaryDir>
#include <QTextBrowser>
#include "client.h"
#include "database.h"
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QSqlError>
#include <QMessageBox>
#include <QSqlTableModel>
#include <QTableView>
#include <QHeaderView>
#include <QStandardItemModel>
// #include "startpage.h"
// #include "ui_startpage.h"
extern Client *client;
extern database *mysql;
namespace Ui {
class rankListPage;
//class StartPage;
}
class rankListPage : public QWidget
{
Q_OBJECT
public:
explicit rankListPage(QWidget *parent = nullptr);
QPropertyAnimation *bkAnim;
void setUserRankList(QString s);
void setRankList(QString s);
~rankListPage();
protected:
virtual void keyPressEvent(QKeyEvent *ev);
private:
Ui::rankListPage *ui;
HoverButton *returnButton;
QLabel *background;
QTextBrowser *ranklist;
QTextBrowser *userRanklist;
QLabel *labelRanklist;
QLabel *labelUserRanklist;
QPropertyAnimation * ShowBackground();
QPropertyAnimation * ShowTitle();
void SetButton();
void setBkImg(QString path,QLabel *label);
void setAdaptedImg(QString path,QLabel *label);
void Sleep(int msec);
signals:
void showStartPage();
};
#endif // RANKLISTPAGE_H