forked from qt-creator/qt-creator
CppTools: Distinguish between ProjectFile::{unclassified,unsupported}
There was no way to determine whether ProjectFile::classify() was run or not. Now, ProjectFile::classify() returns ProjectFile::Unsupported instead of ProjectFile::Unclassified. Change-Id: I660d0e42044bdefcac38058c6f4a3425983a6d93 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
committed by
David Schulz
parent
6bf8f85b33
commit
e2e78c6a5d
@@ -1151,7 +1151,7 @@ static void slotTooltipOverrideRequested
|
||||
&context.function, &context.scopeFromLine, &context.scopeToLine);
|
||||
context.expression = fixCppExpression(raw);
|
||||
context.isCppEditor = CppTools::ProjectFile::classify(document->filePath().toString())
|
||||
!= CppTools::ProjectFile::Unclassified;
|
||||
!= CppTools::ProjectFile::Unsupported;
|
||||
|
||||
if (context.expression.isEmpty()) {
|
||||
ToolTip::show(point, DebuggerToolTipManager::tr("No valid expression"),
|
||||
|
||||
Reference in New Issue
Block a user