Utils: Change individual TriStateAspect display strings individually

Seems to be the more common case.

Change-Id: Iff6b236983e37ebe74845a9013bac4a2b659edbb
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
hjk
2024-02-19 15:09:18 +01:00
parent 68cc7f11b7
commit 59dc7c9c92
4 changed files with 32 additions and 24 deletions

View File

@@ -111,15 +111,15 @@ DebuggerRunConfigurationAspect::DebuggerRunConfigurationAspect(Target *target)
m_cppAspect.setSettingsKey("RunConfiguration.UseCppDebugger");
m_cppAspect.setLabelText(Tr::tr("C++ debugger:"));
m_cppAspect.setOptionTexts(Tr::tr("Enabled"), Tr::tr("Disabled"), Tr::tr("Automatic"));
m_cppAspect.setOptionText(TriState::DefaultValue, Tr::tr("Automatic"));
m_qmlAspect.setSettingsKey("RunConfiguration.UseQmlDebugger");
m_qmlAspect.setLabelText(Tr::tr("QML debugger:"));
m_qmlAspect.setOptionTexts(Tr::tr("Enabled"), Tr::tr("Disabled"), Tr::tr("Automatic"));
m_qmlAspect.setOptionText(TriState::DefaultValue, Tr::tr("Automatic"));
m_pythonAspect.setSettingsKey("RunConfiguration.UsePythonDebugger");
m_pythonAspect.setLabelText(Tr::tr("Python debugger:"));
m_pythonAspect.setOptionTexts(Tr::tr("Enabled"), Tr::tr("Disabled"), Tr::tr("Automatic"));
m_pythonAspect.setOptionText(TriState::DefaultValue, Tr::tr("Automatic"));
// Make sure at least one of the debuggers is set to be active.
connect(&m_cppAspect, &TriStateAspect::changed, this, [this] {