set MapDialog title
[toast/confclerk.git] / src / gui / mapwindow.cpp
1 #include "mapwindow.h"
2
3 MapWindow::MapWindow(const QPixmap &aImage, const QString &aName, QWidget *aParent)
4     : QDialog(aParent)
5 {
6     setupUi(this);
7     setMouseTracking(true); // to receive mouse events
8     setWindowTitle(aName);
9     map->setPixmap(aImage);
10 }
11
12 void MapWindow::mouseDoubleClickEvent(QMouseEvent *event)
13 {
14     close();
15 }
16