@@ -87,7 +87,7 @@ NetworkEditor::NetworkEditor(boost::shared_ptr<CurrentModuleSelection> moduleSel
8787 scene_->setBackgroundBrush (Qt::darkGray);
8888 ModuleWidget::connectionFactory_.reset (new ConnectionFactory (scene_));
8989 ModuleWidget::closestPortFinder_.reset (new ClosestPortFinder (scene_));
90- ModuleWidget::highResolutionExpandFactor_ = highResolutionExpandFactor_;
90+ ModuleWidget::highResolutionExpandFactor_ = highResolutionExpandFactor_;
9191
9292 setScene (scene_);
9393 setDragMode (RubberBandDrag);
@@ -716,20 +716,6 @@ void NetworkEditor::mouseReleaseEvent(QMouseEvent *event)
716716 QGraphicsView::mouseReleaseEvent (event);
717717}
718718
719- void NetworkEditor::mouseDoubleClickEvent (QMouseEvent* event)
720- {
721- #if 0
722- if (!search_)
723- {
724- search_ = scene_->addWidget(new NetworkSearchWidget(this));
725- search_->setOpacity(0.9);
726- }
727- search_->setPos(mapToScene(event->pos()));
728- search_->setVisible(true);
729- #endif
730- QGraphicsView::mouseDoubleClickEvent (event);
731- }
732-
733719NetworkSearchWidget::NetworkSearchWidget (NetworkEditor* ned)
734720{
735721 setupUi (this );
@@ -787,6 +773,10 @@ class NetworkSearchEngine
787773 {
788774 subresults = searchItem (w, text);
789775 }
776+ else if (dynamic_cast <FloatingTextItem*>(item))
777+ {
778+ // skip--don't search errors or search results
779+ }
790780 else if (auto t = dynamic_cast <QGraphicsTextItem*>(item))
791781 {
792782 subresults = searchItem (t, text);
0 commit comments