Improved performance by using QStringLiteral everywhere

This commit is contained in:
0xFEEDC0DE64 committed 2017-12-13 09:41:20 +01:00
1 parent 775385f3e8
commit aa6e9df436
9 files changed
+66 -66

No files matched your search

+2 -2
View File
@@ -293,7 +293,7 @@ void MainWindow::contextMenuBooking(const QPoint &pos)
else if(selectedAction == deleteAction)
{
QMessageBox msgBox;
msgBox.setText("Do you really want to delete the booking?");
msgBox.setText(tr("Do you really want to delete the booking?"));
msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::Cancel);
msgBox.setDefaultButton(QMessageBox::Cancel);
if(msgBox.exec() == QMessageBox::Yes)
@@ -413,7 +413,7 @@ void MainWindow::contextMenuTimeAssignment(const QPoint &pos)
else if(selectedAction == deleteAction)
{
QMessageBox msgBox;
msgBox.setText("Do you really want to delete the time assignment?");
msgBox.setText(tr("Do you really want to delete the time assignment?"));
msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::Cancel);
msgBox.setDefaultButton(QMessageBox::Cancel);
if(msgBox.exec() == QMessageBox::Yes)