Changeset 62 in flair-src for trunk/tools/FlairGCS
- Timestamp:
- Aug 22, 2016, 4:33:24 PM (8 years ago)
- Location:
- trunk/tools/FlairGCS/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/FlairGCS/src/Map.cpp
r15 r62 19 19 #include <qendian.h> 20 20 21 //todo: merge Map and mapwidget 22 21 23 using namespace QtMobility; 22 24 … … 90 92 } 91 93 92 Map::~Map() {} 94 Map::~Map() { 95 for (int i = 0; i < points.count(); i++) delete points.at(i); 96 delete mapWidget; 97 98 if(geoMap!=0) delete geoMap; 99 } 93 100 94 101 bool Map::findServices(void) { -
trunk/tools/FlairGCS/src/mapwidget.cpp
r15 r62 75 75 landmarks = new QList<Landmark *>; 76 76 landmarks_old = new QList<Landmark *>; 77 } 78 79 MapWidget::~MapWidget() { 80 m_scene->removeItem(geoMap); 81 delete m_scene; 77 82 } 78 83 -
trunk/tools/FlairGCS/src/mapwidget.h
r15 r62 62 62 public: 63 63 MapWidget(Map *map, QWidget *parent = 0); 64 ~MapWidget(); 64 65 void setMap(QtMobility::QGraphicsGeoMap *geoMap); 65 66 QGraphicsScene *scene() const;
Note:
See TracChangeset
for help on using the changeset viewer.