Rev 279 | 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_OBJECTpublic: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