Subversion Repositories svn1-original

Rev

Rev 277 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 277 Rev 278
Line 4... Line 4...
4
**
4
**
5
**  Project/Product : 
5
**  Project/Product : 
6
**  Filename        : qmteamselector.h
6
**  Filename        : qmteamselector.h
7
**  Author(s)       : DDP
7
**  Author(s)       : DDP
8
**
8
**
9
**  Description     : Based on a QSoinBox with features
9
**  Description     : Based on a QSpinBox with features
10
**                      Return - will emit signal
10
**                      Return - will emit signal
11
**                      All text is selected on focus
11
**                      All text is selected on focus
12
**
12
**
13
**  Information     :
13
**  Information     :
14
**   Compiler       : ANSI C++
14
**   Compiler       : ANSI C++
Line 18... Line 18...
18
 
18
 
19
#ifndef QMTEAMSELECTOR_H
19
#ifndef QMTEAMSELECTOR_H
20
#define QMTEAMSELECTOR_H
20
#define QMTEAMSELECTOR_H
21
 
21
 
22
#include <QSpinBox>
22
#include <QSpinBox>
-
 
23
#include <QTimer>
23
 
24
 
24
class QmTeamSelector : public QSpinBox
25
class QmTeamSelector : public QSpinBox
25
{
26
{
26
    Q_OBJECT
27
    Q_OBJECT
27
 
28
 
Line 29... Line 30...
29
    QmTeamSelector();
30
    QmTeamSelector();
30
 
31
 
31
private:
32
private:
32
    void focusInEvent(QFocusEvent * event);
33
    void focusInEvent(QFocusEvent * event);
33
    void keyPressEvent(QKeyEvent * event);
34
    void keyPressEvent(QKeyEvent * event);
-
 
35
    QTimer timer;
-
 
36
 
-
 
37
public slots:
-
 
38
        void selectControl(void);
34
 
39
 
35
signals:
40
signals:
36
        void teamSelected(void);
41
        void teamSelected(void);
-
 
42
 
37
};
43
};
38
 
44
 
39
#endif // QMTEAMSELECTOR_H
45
#endif // QMTEAMSELECTOR_H