mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-26 18:05:41 +01:00
yuzu/main: Remove redundant usages of QStringLiteral("")
An empty QStringLiteral can more efficiently be replaced with an empty QString.
This commit is contained in:
parent
6b35317ff3
commit
2e303095d5
@ -1655,7 +1655,7 @@ void GMainWindow::OnMenuInstallToNAND() {
|
|||||||
|
|
||||||
ui.action_Install_File_NAND->setEnabled(false);
|
ui.action_Install_File_NAND->setEnabled(false);
|
||||||
|
|
||||||
install_progress = new QProgressDialog(QStringLiteral(""), tr("Cancel"), 0, total_size, this);
|
install_progress = new QProgressDialog(QString{}, tr("Cancel"), 0, total_size, this);
|
||||||
install_progress->setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint &
|
install_progress->setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint &
|
||||||
~Qt::WindowMaximizeButtonHint);
|
~Qt::WindowMaximizeButtonHint);
|
||||||
install_progress->setAttribute(Qt::WA_DeleteOnClose, true);
|
install_progress->setAttribute(Qt::WA_DeleteOnClose, true);
|
||||||
@ -1705,12 +1705,12 @@ void GMainWindow::OnMenuInstallToNAND() {
|
|||||||
install_progress->close();
|
install_progress->close();
|
||||||
|
|
||||||
const QString install_results =
|
const QString install_results =
|
||||||
(new_files.isEmpty() ? QStringLiteral("")
|
(new_files.isEmpty() ? QString{}
|
||||||
: tr("%n file(s) were newly installed\n", "", new_files.size())) +
|
: tr("%n file(s) were newly installed\n", "", new_files.size())) +
|
||||||
(overwritten_files.isEmpty()
|
(overwritten_files.isEmpty()
|
||||||
? QStringLiteral("")
|
? QString{}
|
||||||
: tr("%n file(s) were overwritten\n", "", overwritten_files.size())) +
|
: tr("%n file(s) were overwritten\n", "", overwritten_files.size())) +
|
||||||
(failed_files.isEmpty() ? QStringLiteral("")
|
(failed_files.isEmpty() ? QString{}
|
||||||
: tr("%n file(s) failed to install\n", "", failed_files.size()));
|
: tr("%n file(s) failed to install\n", "", failed_files.size()));
|
||||||
|
|
||||||
QMessageBox::information(this, tr("Install Results"), install_results);
|
QMessageBox::information(this, tr("Install Results"), install_results);
|
||||||
@ -2202,8 +2202,7 @@ void GMainWindow::UpdateStatusBar() {
|
|||||||
|
|
||||||
if (shaders_building != 0) {
|
if (shaders_building != 0) {
|
||||||
shader_building_label->setText(
|
shader_building_label->setText(
|
||||||
tr("Building: %1 shader").arg(shaders_building) +
|
tr("Building: %n shader(s)", "", static_cast<int>(shaders_building)));
|
||||||
(shaders_building != 1 ? QString::fromStdString("s") : QString::fromStdString("")));
|
|
||||||
shader_building_label->setVisible(true);
|
shader_building_label->setVisible(true);
|
||||||
} else {
|
} else {
|
||||||
shader_building_label->setVisible(false);
|
shader_building_label->setVisible(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user