Fixed text file permissions
[snark14.git] / tools / Display / displaywidget.cpp
1 /** @file displaywidget.cpp
2     @package snark14Display
3     @author Bruno M. Carvalho and Deniz Sarioz
4     licensed under (open-source) QPL v1.0
5     which accompanies this distribution in the file QPL
6 */
7
8 #include "displaywidget.hpp"
9
10 #include <qwidget.h>
11
12 /* 
13  *  Constructs a displaywidget which is a child of 'parent', with the 
14  *  name 'name' and widget flags set to 'f' 
15  *
16  *  The dialog will by default be modeless, unless you set 'modal' to
17  *  TRUE to construct a modal dialog.
18  */
19 displayWidget::displayWidget( QWidget* parent, const char* name, WFlags fl )
20     : QWidget( parent, name, fl )
21 {
22
23 }
24
25 /*  
26  *  Destroys the object and frees any allocated resources
27  */
28 displayWidget::~displayWidget()
29 {
30     // no need to delete child widgets, Qt does it all for us
31 }
32
33 void displayWidget::mousePressEvent(QMouseEvent* e)
34 {
35   emit clicked(e->x(), e->y());
36 }