mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Use ASCII name for duration column in draw list export. Refs #1246
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user