source:
src/gui/mapwindow.cpp
@
9afc0ee
Last change on this file since 9afc0ee was 9afc0ee, checked in by , 13 years ago | |
---|---|
|
|
File size: 341 bytes |
Line | |
---|---|
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 |
Note: See TracBrowser
for help on using the repository browser.