From 22c1d34e645c53840413b289478f5ef55baae17c Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Wed, 18 Oct 2023 10:54:18 +0200 Subject: [PATCH] Copilot: Use normal checkboxes in settings We usually do not use the "Label [ ]" style, at the very least it looks different to other places in the settings. And without a ":" ("Label: [ ]") it also looks different to other lines in the same page. Just use normal checkboxes like we do elsewhere. Change-Id: I7f7d7aab399bef50dacb1efd83a5da460237e044 Reviewed-by: Marcus Tillmanns --- src/plugins/copilot/copilotsettings.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/plugins/copilot/copilotsettings.cpp b/src/plugins/copilot/copilotsettings.cpp index 4ef4e2b2a9b..586fd8528b9 100644 --- a/src/plugins/copilot/copilotsettings.cpp +++ b/src/plugins/copilot/copilotsettings.cpp @@ -93,14 +93,12 @@ CopilotSettings::CopilotSettings() autoComplete.setDefaultValue(true); autoComplete.setToolTip(Tr::tr("Automatically request suggestions for the current text cursor " "position after changes to the document.")); - autoComplete.setLabelPlacement(BoolAspect::LabelPlacement::InExtraLabel); useProxy.setDisplayName(Tr::tr("Use Proxy")); useProxy.setSettingsKey("Copilot.UseProxy"); useProxy.setLabelText(Tr::tr("Use proxy")); useProxy.setDefaultValue(false); useProxy.setToolTip(Tr::tr("Use a proxy to connect to the Copilot servers.")); - useProxy.setLabelPlacement(BoolAspect::LabelPlacement::InExtraLabel); proxyHost.setDisplayName(Tr::tr("Proxy Host")); proxyHost.setDisplayStyle(StringAspect::LineEditDisplay); @@ -131,7 +129,6 @@ CopilotSettings::CopilotSettings() saveProxyPassword.setDefaultValue(false); saveProxyPassword.setToolTip( Tr::tr("Save the password to access the proxy server. The password is stored insecurely.")); - saveProxyPassword.setLabelPlacement(BoolAspect::LabelPlacement::InExtraLabel); proxyPassword.setDisplayName(Tr::tr("Proxy Password")); proxyPassword.setDisplayStyle(StringAspect::PasswordLineEditDisplay); @@ -146,10 +143,8 @@ CopilotSettings::CopilotSettings() proxyRejectUnauthorized.setDefaultValue(true); proxyRejectUnauthorized.setToolTip(Tr::tr("Reject unauthorized certificates from the proxy " "server. This is a security risk.")); - proxyRejectUnauthorized.setLabelPlacement(BoolAspect::LabelPlacement::InExtraLabel); initEnableAspect(enableCopilot); - enableCopilot.setLabelPlacement(BoolAspect::LabelPlacement::InExtraLabel); readSettings();