/*============================================================================ ** 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 #include 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