forked from qt-creator/qt-creator
LocatorFilterEntry: Get rid of internalData
Change-Id: I2bcd64c39bdaf0fe8504b68ba4aaaef7cdcab475 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -225,7 +225,6 @@ private:
|
||||
entry.displayName = ClangdClient::displayNameFromDocumentSymbol(
|
||||
static_cast<SymbolKind>(info.kind()), info.name(),
|
||||
info.detail().value_or(QString()));
|
||||
entry.internalData = QVariant::fromValue(info);
|
||||
entry.linkForEditor = linkForDocSymbol(info);
|
||||
entry.extraInfo = parent.extraInfo;
|
||||
if (!entry.extraInfo.isEmpty())
|
||||
|
@@ -99,9 +99,6 @@ public:
|
||||
/* called by locator widget on accept. By default, when acceptor is empty,
|
||||
EditorManager::openEditor(LocatorFilterEntry) will be used instead. */
|
||||
Acceptor acceptor;
|
||||
/* can be used by the filter to save more information about the entry */
|
||||
/* Replaced by acceptor - DON'T USE IN NEW CODE, IT'S GOING TO BE REMOVED, SOON... */
|
||||
QVariant internalData;
|
||||
/* icon to display along with the entry */
|
||||
std::optional<QIcon> displayIcon;
|
||||
/* file path, if the entry is related to a file, is used e.g. for resolving a file icon */
|
||||
|
Reference in New Issue
Block a user