Copilot: Fix UI text capitalization and punctuation

Change-Id: I49a38633a8df1b4d65ee02bebecf270287c800d9
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
Leena Miettinen
2023-06-19 10:59:49 +02:00
parent 021f0108cb
commit d81b3c6131

View File

@@ -24,7 +24,7 @@ AuthWidget::AuthWidget(QWidget *parent)
{
using namespace Layouting;
m_button = new QPushButton(Tr::tr("Sign in"));
m_button = new QPushButton(Tr::tr("Sign In"));
m_button->setEnabled(false);
m_progressIndicator = new Utils::ProgressIndicator(Utils::ProgressIndicatorSize::Small);
m_progressIndicator->setVisible(false);
@@ -91,13 +91,13 @@ void AuthWidget::updateClient(const Utils::FilePath &nodeJs, const Utils::FilePa
{
LanguageClientManager::shutdownClient(m_client);
m_client = nullptr;
setState(Tr::tr("Sign in"), false);
setState(Tr::tr("Sign In"), false);
m_button->setEnabled(false);
if (!nodeJs.isExecutableFile() || !agent.exists()) {
return;
}
setState(Tr::tr("Sign in"), true);
setState(Tr::tr("Sign In"), true);
m_client = new CopilotClient(nodeJs, agent);
connect(m_client, &Client::initialized, this, &AuthWidget::checkStatus);
@@ -117,7 +117,7 @@ void AuthWidget::signIn()
QDesktopServices::openUrl(QUrl(response.result()->verificationUri()));
m_statusLabel->setText(Tr::tr("A browser window will open, enter the code %1 when "
m_statusLabel->setText(Tr::tr("A browser window will open. Enter the code %1 when "
"asked.\nThe code has been copied to your clipboard.")
.arg(response.result()->userCode()));
m_statusLabel->setVisible(true);
@@ -129,7 +129,7 @@ void AuthWidget::signIn()
if (response.error()) {
QMessageBox::critical(this,
Tr::tr("Login failed"),
Tr::tr("Login Failed"),
Tr::tr(
"The login request failed: ")
+ response.error()->message());