aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotest/testresult.h
diff options
context:
space:
mode:
authorChristian Stenger <[email protected]>2024-07-24 14:28:22 +0200
committerChristian Stenger <[email protected]>2024-08-30 12:01:14 +0000
commitcf765fd5f8e0eba0a2b54eaf91ac23e1f4b6ebd8 (patch)
treed401bf220920ae2b19c9f58978318eae177d3d94 /src/plugins/autotest/testresult.h
parent3bcd5aff22c7e6042b4b9cd245e1d6fde9b25135 (diff)
AutoTest: Cut insignificant digits
Avoids displaying insignificant numbers of durations. Some frameworks use a smaller precision than others which looks strange for some frameworks. But for generalization reasons and a similar look we are using ms as base for displaying. Change-Id: Ib4b9e427778819ce09e93152042b3bf8705a7916 Reviewed-by: David Schulz <[email protected]>
Diffstat (limited to 'src/plugins/autotest/testresult.h')
-rw-r--r--src/plugins/autotest/testresult.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/autotest/testresult.h b/src/plugins/autotest/testresult.h
index ca4ed003a21..51959deb426 100644
--- a/src/plugins/autotest/testresult.h
+++ b/src/plugins/autotest/testresult.h
@@ -102,7 +102,7 @@ public:
void setDescription(const QString &description) { m_description = description; }
void setFileName(const Utils::FilePath &fileName) { m_file = fileName; }
void setLine(int line) { m_line = line; }
- void setDuration(const QString &milliSeconds) { m_duration.emplace(milliSeconds); }
+ void setDuration(const QString &milliSeconds);
void setResult(ResultType type) { m_result = type; }
static ResultType resultFromString(const QString &resultString);