Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/render/annotate/AnnotatePlugin.cpp
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Line(s) | 87 | { | |||
---|---|---|---|---|---|
90 | connect( this, SIGNAL(visibilityChanged(bool,QString)), SLOT(enableModel(bool)) ); | 90 | connect( this, SIGNAL(visibilityChanged(bool,QString)), SLOT(enableModel(bool)) ); | ||
91 | } | 91 | } | ||
92 | 92 | | |||
93 | AnnotatePlugin::~AnnotatePlugin() | 93 | AnnotatePlugin::~AnnotatePlugin() | ||
94 | { | 94 | { | ||
95 | qDeleteAll( m_graphicsItems ); | 95 | qDeleteAll( m_graphicsItems ); | ||
96 | if ( m_marbleWidget ) { | 96 | if ( m_marbleWidget ) { | ||
97 | m_marbleWidget->model()->treeModel()->removeDocument( m_annotationDocument ); | 97 | m_marbleWidget->model()->treeModel()->removeDocument( m_annotationDocument ); | ||
98 | disconnect( this, SIGNAL(mouseMoveGeoPosition(QString)), m_marbleWidget, SIGNAL(mouseMoveGeoPosition(QString)) ); | ||||
98 | } | 99 | } | ||
99 | 100 | | |||
100 | delete m_overlayRmbMenu; | 101 | delete m_overlayRmbMenu; | ||
101 | delete m_polygonRmbMenu; | 102 | delete m_polygonRmbMenu; | ||
102 | delete m_nodeRmbMenu; | 103 | delete m_nodeRmbMenu; | ||
103 | delete m_textAnnotationRmbMenu; | 104 | delete m_textAnnotationRmbMenu; | ||
104 | delete m_polylineRmbMenu; | 105 | delete m_polylineRmbMenu; | ||
105 | 106 | | |||
106 | delete m_annotationDocument; | 107 | delete m_annotationDocument; | ||
107 | // delete m_networkAccessManager; | 108 | // delete m_networkAccessManager; | ||
108 | 109 | | |||
109 | delete m_clipboardItem; | 110 | delete m_clipboardItem; | ||
110 | qDeleteAll(m_actions); | 111 | qDeleteAll(m_actions); | ||
111 | | ||||
112 | disconnect( this, SIGNAL(mouseMoveGeoPosition(QString)), m_marbleWidget, SIGNAL(mouseMoveGeoPosition(QString)) ); | | |||
113 | } | 112 | } | ||
114 | 113 | | |||
115 | QStringList AnnotatePlugin::backendTypes() const | 114 | QStringList AnnotatePlugin::backendTypes() const | ||
116 | { | 115 | { | ||
117 | return QStringList(QStringLiteral("annotation")); | 116 | return QStringList(QStringLiteral("annotation")); | ||
118 | } | 117 | } | ||
119 | 118 | | |||
120 | QString AnnotatePlugin::renderPolicy() const | 119 | QString AnnotatePlugin::renderPolicy() const | ||
▲ Show 20 Lines • Show All 1672 Lines • Show Last 20 Lines |