Debugger: Hide DebuggerRunParameters::m_validationErrors

Task-number: QTCREATORBUG-29168
Change-Id: I718e7177f033c0056ed10cb77d901227acca2930
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2025-01-13 17:37:46 +01:00
parent 36ed9f8c28
commit cbbac16d95
2 changed files with 5 additions and 6 deletions

View File

@@ -158,10 +158,10 @@ DebuggerRunParameters DebuggerRunParameters::fromRunControl(ProjectExplorer::Run
const Tasks tasks = DebuggerKitAspect::validateDebugger(kit);
for (const Task &t : tasks) {
if (t.type != Task::Warning)
params.validationErrors.append(t.description());
params.m_validationErrors.append(t.description());
}
} else {
params.validationErrors.append(Tr::tr("The kit does not have a debugger set."));
params.m_validationErrors.append(Tr::tr("The kit does not have a debugger set."));
}
}
}
@@ -223,8 +223,8 @@ Result DebuggerRunParameters::fixupParameters(ProjectExplorer::RunControl *runCo
m_debugger.environment.set(var, m_inferior.environment.expandedValueForKey(var));
// validate debugger if C++ debugging is enabled
if (!validationErrors.isEmpty())
return Result::Error(validationErrors.join('\n'));
if (!m_validationErrors.isEmpty())
return Result::Error(m_validationErrors.join('\n'));
if (m_isQmlDebugging) {
const auto device = runControl->device();

View File

@@ -241,8 +241,6 @@ public:
void setTestCase(int testCase) { m_testCase = testCase; }
int testCase() const { return m_testCase; }
QStringList validationErrors;
int qtVersion = 0;
QString qtNamespace;
@@ -337,6 +335,7 @@ private:
std::optional<int> m_exitCode = {};
int m_testCase = 0; // For Debugger testing.
QStringList m_validationErrors;
};
namespace Internal {