source: src/gui/mapwindow.cpp @ 9afc0ee

qt5
Last change on this file since 9afc0ee was 9afc0ee, checked in by pavelpa <pavelpa@…>, 12 years ago

set MapDialog? title

  • Property mode set to 100644
File size: 341 bytes
Line 
1#include "mapwindow.h"
2
3MapWindow::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
12void MapWindow::mouseDoubleClickEvent(QMouseEvent *event)
13{
14    close();
15}
16
Note: See TracBrowser for help on using the repository browser.