source: src/gui/mapwindow.cpp @ 59c6cfe

qt5
Last change on this file since 59c6cfe was 59c6cfe, checked in by pavelpa <pavelpa@…>, 12 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
3MapWindow::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
11void MapWindow::mouseDoubleClickEvent(QMouseEvent *event)
12{
13    close();
14}
15
Note: See TracBrowser for help on using the repository browser.