Added QStringLiteral and tr
This commit is contained in:
@@ -31,8 +31,8 @@ UpdaterDialog::UpdaterDialog(MainWindow &mainWindow) :
|
||||
connect(ui->buttonBox, &QDialogButtonBox::rejected, this, &UpdaterDialog::rejectedSlot);
|
||||
|
||||
auto url = m_mainWindow.settings().value(QStringLiteral("UpdaterPlugin/url"),
|
||||
QUrl(QStringLiteral("https://api.github.com/repos/0xFEEDC0DE64/QtZeiterfassung/releases"))).toUrl();
|
||||
m_reply = m_mainWindow.erfassung().manager()->get(QNetworkRequest(url));
|
||||
QStringLiteral("https://api.github.com/repos/0xFEEDC0DE64/QtZeiterfassung/releases")).toString();
|
||||
m_reply = m_mainWindow.erfassung().manager()->get(QNetworkRequest(QUrl(url)));
|
||||
connect(m_reply, &QNetworkReply::finished, this, &UpdaterDialog::finished);
|
||||
}
|
||||
|
||||
|
@@ -69,14 +69,14 @@ void WeatherWidget::finished()
|
||||
if(!obj.contains(QStringLiteral("weather")))
|
||||
{
|
||||
qWarning() << "no weather" << obj;
|
||||
setText("No weater found");
|
||||
setText(tr("No weather found"));
|
||||
goto after;
|
||||
}
|
||||
|
||||
if(!obj.contains(QStringLiteral("main")))
|
||||
{
|
||||
qWarning() << "no main" << obj;
|
||||
setText("No main found");
|
||||
setText(tr("No main found"));
|
||||
goto after;
|
||||
}
|
||||
|
||||
|
@@ -438,7 +438,7 @@ bool StripsWidget::createStrips()
|
||||
auto label = new QLabel(tr("Strip rendering aborted due error.\n"
|
||||
"Your bookings and time assignments for this day are in an illegal state!") % "\n" %
|
||||
errorMessage, this);
|
||||
label->setStyleSheet("color: red;");
|
||||
label->setStyleSheet(QStringLiteral("color: red;"));
|
||||
m_stripsLayout->addWidget(label);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user