replaced QString uses with QStringLiteral

Minor code optimization according to Qt documentation.
This commit is contained in:
itsmattkc
2019-12-10 00:42:31 +11:00
parent f46b1245c4
commit 3bfe333878
8 changed files with 38 additions and 37 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ void TaskViewItem::SetTask(Task *t)
task_ = t;
// Set name label to the name (bolded)
task_name_lbl_->setText(QString("<b>%1</b>").arg(task_->text()));
task_name_lbl_->setText(QStringLiteral("<b>%1</b>").arg(task_->text()));
// Connect to the task
connect(task_, SIGNAL(StatusChanged(Task::Status)), this, SLOT(TaskStatusChange(Task::Status)));