forked from qt-creator/qt-creator
CppEditor: Render forward decls less prominently in outline
Fixes: QTCREATORBUG-312 Change-Id: I9bb77add24737881eeee008620941b55118ee0e5 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -404,6 +404,7 @@ LanguageClientOutlineItem::LanguageClientOutlineItem(Client *client, const Docum
|
||||
, m_name(info.name())
|
||||
, m_detail(info.detail().value_or(QString()))
|
||||
, m_range(info.range())
|
||||
, m_selectionRange(info.selectionRange())
|
||||
, m_type(info.kind())
|
||||
{
|
||||
const QList<LanguageServerProtocol::DocumentSymbol> children = sortedSymbols(
|
||||
|
||||
@@ -27,6 +27,7 @@ public:
|
||||
LanguageClientOutlineItem(Client *client, const LanguageServerProtocol::DocumentSymbol &info);
|
||||
|
||||
LanguageServerProtocol::Range range() const { return m_range; }
|
||||
LanguageServerProtocol::Range selectionRange() const { return m_selectionRange; }
|
||||
LanguageServerProtocol::Position pos() const { return m_range.start(); }
|
||||
bool contains(const LanguageServerProtocol::Position &pos) const {
|
||||
return m_range.contains(pos);
|
||||
@@ -46,6 +47,7 @@ private:
|
||||
QString m_name;
|
||||
QString m_detail;
|
||||
LanguageServerProtocol::Range m_range;
|
||||
LanguageServerProtocol::Range m_selectionRange;
|
||||
int m_type = -1;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user