I have a c++ class TrisState:

Qt Code:
  1. #ifndef TRISSTATE_H
  2. #define TRISSTATE_H
  3.  
  4. #include <QObject>
  5. #define WIDTH 3
  6. #define HEIGHT 3
  7. class TrisState : public QObject
  8. {
  9. Q_OBJECT
  10. Q_ENUMS(GameState)
  11. public:
  12. explicit TrisState(QObject *parent = 0);
  13. GameState x();
  14.  
  15. enum GameState {
  16. Player1 = 'X',
  17. Player2 = 'O',
  18. Draw = '-',
  19. Void = ' '
  20. };
  21.  
  22. private:
  23. GameState board[WIDTH][HEIGHT];
  24.  
  25. signals:
  26.  
  27. public slots:
  28.  
  29. };
  30.  
  31. #endif // TRISSTATE_H
To copy to clipboard, switch view to plain text mode 

and

Qt Code:
  1. #include "trisstate.h"
  2.  
  3.  
  4. TrisState::GameState TrisState::x()
  5. {
  6.  
  7. }
To copy to clipboard, switch view to plain text mode 

When i compile the code i've two errors:
trisstate.h:13: error: 'GameState' does not name a type
GameState x();
^

and

trisstate.cpp:4: error: no 'TrisState::GameState TrisState::x()' member function declared in class 'TrisState'
TrisState::GameState TrisState::x()
^

What am i wrong?