void ReviewTool::createActions() { m_removeAnnotationAction = new QAction(i18n("Remove Comment"), this); m_removeAnnotationAction->setToolTip(i18n("Remove Comment")); addAction("remove_annotation", m_removeAnnotationAction); connect(m_removeAnnotationAction, SIGNAL(triggered()), this, SLOT(removeAnnotation())); }
TITANIUM_FUNCTION(View, removeAnnotation) { TITANIUM_ASSERT(arguments.size() == 1); auto _0 = arguments.at(0); TITANIUM_ASSERT(_0.IsObject()); removeAnnotation(static_cast<JSObject>(_0).GetPrivate<Annotation>()); return get_context().CreateUndefined(); }
bool Object::removeAnnotation(shared_ptr<Annotation> annotation) { return removeAnnotation(annotation->getFrame()->getFrameNumber()); }
Q_FOREACH ( QgsAnnotation *a, mAnnotations ) { removeAnnotation( a ); }