blob: b9dc78f452de597f30742390c9f6376557a52014 (
plain)
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
|
#ifndef SCOREBOARD_H
#define SCOREBOARD_H
#include <qtable.h>
class QWidget;
class QHeader;
class ScoreBoard : public QTable
{
Q_OBJECT
public:
ScoreBoard(QWidget *parent = 0, const char *name = 0);
int total(int id, QString &name);
public slots:
void newHole(int);
void newPlayer(const QString &name);
void setScore(int id, int hole, int score);
void parChanged(int hole, int par);
private:
QTable *table;
QHeader *vh;
QHeader *hh;
};
#endif
|