| 124 | } |
| 125 | |
| 126 | void 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 | |
| 144 | SymbolWidget::SymbolWidget(QWidget *parent) |
| 145 | : QWidget(parent), |
no test coverage detected