-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfourthwindow.h
More file actions
88 lines (78 loc) · 1.93 KB
/
fourthwindow.h
File metadata and controls
88 lines (78 loc) · 1.93 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<<<<<<< 61ddbc132891cf9533228634c5d59b0c5d30fb7b
#ifndef FOURTHWINDOW_H
#define FOURTHWINDOW_H
#include <mysocket.h>
#include <QMainWindow>
#include <qlabel.h>
#include <qpushbutton.h>
namespace Ui {
class FourthWindow;
}
class FourthWindow : public QMainWindow
{
Q_OBJECT
public:
explicit FourthWindow(QString _name, QString _money, QWidget *parent = 0);
~FourthWindow();
MySocket *mySocket;
QLabel *name[5]; //显示姓名
QLabel *money[5]; //显示金币
QPushButton *pk[5]; //显示按钮
QString which; // 选择姓名
private:
Ui::FourthWindow *ui;
public slots:
void dealReply(QString data);
private slots:
void on_refresh_clicked();
void on_close_clicked();
void on_pk_clicked();
void selectCourse(QString courseID);
void on_pk_2_clicked();
void on_pk_3_clicked();
void on_pk_4_clicked();
void on_pk_5_clicked();
};
#endif // FOURTHWINDOW_H
=======
#ifndef FOURTHWINDOW_H
#define FOURTHWINDOW_H
#include <mysocket.h>
#include <QMainWindow>
#include <qlabel.h>
#include <qpushbutton.h>
namespace Ui {
class FourthWindow;
}
class FourthWindow : public QMainWindow
{
Q_OBJECT
public:
explicit FourthWindow(QString _name, QString _money, QWidget *parent = 0);
~FourthWindow();
MySocket *mySocket;
QString myName; //我的名字
QLabel *name[5]; //显示姓名
QLabel *money[5]; //显示金币
QPushButton *pk[5]; //显示按钮
QString which; // 选择姓名
QString mymoney;
private:
Ui::FourthWindow *ui;
signals:
void closeTo();
public slots:
void dealReply(QString data);
void agreePK(QString pkName, QString courseID);
private slots:
void on_refresh_clicked();
void on_close_clicked();
void on_pk_clicked();
void selectCourse(QString courseID);
void on_pk_2_clicked();
void on_pk_3_clicked();
void on_pk_4_clicked();
void on_pk_5_clicked();
};
#endif // FOURTHWINDOW_H
>>>>>>> final version