Use ASCII name for duration column in draw list export. Refs #1246

This commit is contained in:
baldurk
2019-01-24 10:15:36 +00:00
parent 953661fc81
commit 69a76bfb41
3 changed files with 16 additions and 1 deletions
@@ -30,6 +30,19 @@
#include "Styles/StyleData.h"
#include "QRDInterface.h"
template <>
std::string DoStringise(const TimeUnit &el)
{
BEGIN_ENUM_STRINGISE(TimeUnit)
{
STRINGISE_ENUM_CLASS(Seconds);
STRINGISE_ENUM_CLASS(Milliseconds);
STRINGISE_ENUM_CLASS(Microseconds);
STRINGISE_ENUM_CLASS(Nanoseconds);
}
END_ENUM_STRINGISE();
}
#define JSON_ID "rdocConfigData"
#define JSON_VER 1
@@ -389,6 +389,8 @@ enum class TimeUnit : int
Count,
};
DECLARE_REFLECTION_ENUM(TimeUnit);
DOCUMENT(R"(Gets the suffix for a time unit.
:return: The one or two character suffix.
+1 -1
View File
@@ -690,7 +690,7 @@ void EventBrowser::on_exportDraws_clicked()
if(!m_Times.empty())
{
line += QFormatStr(" | %1").arg(ui->events->headerText(COL_DURATION));
line += QFormatStr(" | %1 (%2)").arg(tr("Duration")).arg(ToQStr(m_TimeUnit));
}
stream << line << "\n";