forked from qt-creator/qt-creator
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 <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user