qt5
Last change
on this file since 59c6cfe was
59c6cfe,
checked in by pavelpa <pavelpa@…>, 13 years ago
|
started work on displaying map
- implemented mapwindow
- map is hard-coded for now
TODO: finish getting map path from the event
|
-
Property mode set to
100644
|
File size:
292 bytes
|
Line | |
---|
1 | #include "mapwindow.h" |
---|
2 | |
---|
3 | MapWindow::MapWindow(const QPixmap &aImage, QWidget *aParent) |
---|
4 | : QDialog(aParent) |
---|
5 | { |
---|
6 | setupUi(this); |
---|
7 | setMouseTracking(true); // to receive mouse events |
---|
8 | map->setPixmap(aImage); |
---|
9 | } |
---|
10 | |
---|
11 | void MapWindow::mouseDoubleClickEvent(QMouseEvent *event) |
---|
12 | { |
---|
13 | close(); |
---|
14 | } |
---|
15 | |
---|
Note: See
TracBrowser
for help on using the repository browser.