forked from qt-creator/qt-creator
Autotest: Convert to Tr::tr
Change-Id: Ifd4b6ace78d02804ec3b3c1d60c5418081cad6c4 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "testtreeitem.h"
|
||||
|
||||
#include "autotestconstants.h"
|
||||
#include "autotesttr.h"
|
||||
#include "itestframework.h"
|
||||
#include "itestparser.h"
|
||||
#include "testconfiguration.h"
|
||||
@@ -66,9 +67,8 @@ QVariant ITestTreeItem::data(int /*column*/, int role) const
|
||||
switch (role) {
|
||||
case Qt::DisplayRole:
|
||||
if (m_type == Root && childCount() == 0)
|
||||
return QCoreApplication::translate("TestTreeItem", "%1 (none)").arg(m_name);
|
||||
else
|
||||
return m_name;
|
||||
return Tr::tr("%1 (none)").arg(m_name);
|
||||
return m_name;
|
||||
case Qt::ToolTipRole:
|
||||
return m_filePath.toString();
|
||||
case Qt::DecorationRole:
|
||||
|
||||
Reference in New Issue
Block a user