00001 #include "backgammonview.h" 00002 00003 BackGammonView::BackGammonView(QCanvas* canvas,QWidget* parent) 00004 :QCanvasView(canvas,parent) 00005 { 00006 //do nothing 00007 } 00008 00009 00010 00011 BackGammonView::~BackGammonView() 00012 { 00013 //do nothing 00014 } 00015 00016 00017 00018 void BackGammonView::contentsMousePressEvent(QMouseEvent* e) 00019 { 00020 int x=e->x(); 00021 int y=e->y(); 00022 emit mouse(x,y); 00023 } 00024
1.4.2