-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTopList.h
More file actions
36 lines (32 loc) · 726 Bytes
/
Copy pathTopList.h
File metadata and controls
36 lines (32 loc) · 726 Bytes
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
#ifndef TOPLIST_H
#define TOPLIST_H
#include <QWidget>
#include <QSqlQueryModel>
#include <QPropertyAnimation>
#include <QSortFilterProxyModel>
#include "PlayerResult.h"
namespace Ui {
class TopList;
}
class TopList : public QWidget
{
Q_OBJECT
public:
explicit TopList(QWidget *parent = 0);
~TopList();
protected:
void changeEvent(QEvent* e);
private:
void setHeaders();
public slots:
void onSetPlayerResult(PlayerResult& res);
void show();
private slots:
void sortByColumn(int col, Qt::SortOrder order);
private:
Ui::TopList *ui;
QSqlQueryModel* model;
QSortFilterProxyModel* proxy;
QPropertyAnimation* animation;
};
#endif // TOPLIST_H