Subversion Repositories svn1-original

Rev

Rev 381 | Blame | Compare with Previous | Last modification | View Log | RSS feed

/*============================================================================ 
** Copyright (C) 1998-2012 Vix Technology, All rights reserved
**============================================================================
**
**  Project/Product : 
**  Filename        : qmteamselector.h
**  Author(s)       : DDP
**
**  Description     : Based on a QSpinBox with features
**                      Return - will emit signal
**                      All text is selected on focus
**
**  Information     :
**   Compiler       : ANSI C++
**   Target         : 
**
***==========================================================================*/

#ifndef QMTEAMSELECTOR_H
#define QMTEAMSELECTOR_H

#include <QSpinBox>
#include <QTimer>

class QmTeamSelector : public QSpinBox
{
    Q_OBJECT

public:
    QmTeamSelector(QWidget * parent = 0);

private:
    void focusInEvent(QFocusEvent * event);
    void keyPressEvent(QKeyEvent * event);
    QTimer timer;

public slots:
        void selectControl(void);

signals:
        void teamSelected(void);

};

#endif // QMTEAMSELECTOR_H