MCPcopy Create free account
hub / github.com/baldurk/renderdoc / locationEdit_clicked

Method locationEdit_clicked

qrenderdoc/Windows/EventBrowser.cpp:5855–5889  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5853}
5854
5855void EventBrowser::locationEdit_clicked()
5856{
5857 m_BreadcrumbLocationText->setMinimumHeight(m_Breadcrumbs->sizeHint().height());
5858
5859 m_Breadcrumbs->setVisible(false);
5860 m_BreadcrumbLocationEditButton->setVisible(false);
5861 m_BreadcrumbLocationText->setVisible(true);
5862
5863 if(m_BreadcrumbLocationText->isVisible())
5864 {
5865 QVector<const ActionDescription *> path = m_Breadcrumbs->getPath();
5866
5867 QString pathString;
5868 for(const ActionDescription *p : path)
5869 {
5870 QString name = p->GetName(m_Ctx.GetStructuredFile());
5871 if(name.isEmpty())
5872 name = lit("unnamed%1").arg(p->eventId);
5873
5874 name.replace(QLatin1Char('\\'), lit("\\\\"));
5875 name.replace(QLatin1Char('/'), lit("\\/"));
5876
5877 if(!pathString.isEmpty())
5878 pathString += QLatin1Char('/');
5879
5880 pathString += name.trimmed();
5881 }
5882
5883 m_BreadcrumbLocationText->setText(pathString);
5884 m_BreadcrumbLocationText->setFocus(Qt::MouseFocusReason);
5885 m_BreadcrumbLocationText->selectAll();
5886
5887 m_InitialBreadcrumbLocation = pathString;
5888 }
5889}
5890
5891void EventBrowser::location_leave()
5892{

Callers

nothing calls this directly

Calls 14

QLatin1CharClass · 0.85
getPathMethod · 0.80
trimmedMethod · 0.80
setFocusMethod · 0.80
selectAllMethod · 0.80
heightMethod · 0.45
sizeHintMethod · 0.45
isVisibleMethod · 0.45
GetNameMethod · 0.45
GetStructuredFileMethod · 0.45
isEmptyMethod · 0.45
argMethod · 0.45

Tested by

no test coverage detected