summaryrefslogtreecommitdiff
path: root/noncore/games/backgammon/backgammonview.cpp
Unidiff
Diffstat (limited to 'noncore/games/backgammon/backgammonview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/backgammon/backgammonview.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/noncore/games/backgammon/backgammonview.cpp b/noncore/games/backgammon/backgammonview.cpp
index ecbc12b..6ee8f10 100644
--- a/noncore/games/backgammon/backgammonview.cpp
+++ b/noncore/games/backgammon/backgammonview.cpp
@@ -1,17 +1,23 @@
1#include "backgammonview.h" 1#include "backgammonview.h"
2 2
3BackGammonView::BackGammonView(QCanvas* canvas,QWidget* parent) 3BackGammonView::BackGammonView(QCanvas* canvas,QWidget* parent)
4 :QCanvasView(canvas,parent) 4 :QCanvasView(canvas,parent)
5{ 5{
6 //do nothing
6} 7}
7 8
9
10
8BackGammonView::~BackGammonView() 11BackGammonView::~BackGammonView()
9{ 12{
13 //do nothing
10} 14}
11 15
16
17
12void BackGammonView::contentsMousePressEvent(QMouseEvent* e) 18void BackGammonView::contentsMousePressEvent(QMouseEvent* e)
13{ 19{
14 int x=e->x(); 20 int x=e->x();
15 int y=e->y(); 21 int y=e->y();
16 //emit mousepressed(x,y); 22 emit mouse(x,y);
17} \ No newline at end of file 23}