Commit 8080caad authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Fix 'No support for searching messages in sequence diagrams'

BUG:418386
FIXED-IN:2.30.80 (KDE releases 20.03.80)
parent 43919cf3
......@@ -10,6 +10,8 @@
#include "umlscenefinder.h"
#include "floatingtextwidget.h"
#include "messagewidget.h"
#include "uml.h"
#include "umldoc.h"
#include "umllistview.h"
......@@ -43,6 +45,14 @@ int UMLSceneFinder::collect(Category category, const QString &text)
if (w->name().contains(text, Qt::CaseInsensitive))
m_items.append(w->id());
}
foreach(MessageWidget* w, scene->messageList()) {
if (w->umlObject() && !includeObject(category, w->umlObject()))
continue;
if (w->name().contains(text, Qt::CaseInsensitive))
m_items.append(w->id());
if (w->floatingTextWidget()->text().contains(text, Qt::CaseInsensitive))
m_items.append(w->id());
}
return m_items.size();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment