MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / handleUpdateSymbols

Method handleUpdateSymbols

src/plugins/codeeditor/symbol/symbolwidget.cpp:126–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126void SymbolWidgetPrivate::handleUpdateSymbols()
127{
128 if (!editor)
129 return;
130
131 symbolView->setSymbolPath(editor->getFile());
132 if (symbolView->isEmpty()) {
133 msgLabel->setVisible(true);
134 const auto &fileName = QFileInfo(editor->getFile()).fileName();
135 msgLabel->setText(SymbolWidget::tr("No symbols found in document \"%1\"").arg(fileName));
136 symbolView->setVisible(false);
137 } else {
138 msgLabel->setVisible(false);
139 symbolView->setVisible(true);
140 handleFollowCursor();
141 }
142}
143
144SymbolWidget::SymbolWidget(QWidget *parent)
145 : QWidget(parent),

Callers 1

setEditorMethod · 0.80

Calls 6

setSymbolPathMethod · 0.80
setVisibleMethod · 0.80
fileNameMethod · 0.80
getFileMethod · 0.45
isEmptyMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected