Add stub ToStr copied functions to fix up some implementations

* Eventually the main project's ToStr will move into a header file so
  that we don't have to duplicate any code.
This commit is contained in:
baldurk
2016-11-11 20:35:59 +01:00
parent 9fd1e6bae2
commit 1c61b82221
8 changed files with 354 additions and 43 deletions
+4 -5
View File
@@ -1000,7 +1000,7 @@ void TextureViewer::UI_UpdateTextureDetails()
if(current.format.compType != m_TexDisplay.typeHint && m_TexDisplay.typeHint != eCompType_None)
{
status += tr(" Viewed as TODO ToStr"); // m_TexDisplay.typeHint.Str();
status += tr(" Viewed as %1").arg(ToQStr(m_TexDisplay.typeHint));
}
ui->texStatusDim->setText(status);
@@ -1747,12 +1747,11 @@ void TextureViewer::AddResourceUsageEntry(QMenu &menu, uint32_t start, uint32_t
QAction *item = NULL;
if(start == end)
item = new QAction("EID " + QString::number(start) + ": " +
"TODO ToStr" /*usage.Str(m_Core.APIProps.pipelineType)*/,
this);
item = new QAction(
"EID " + QString::number(start) + ": " + ToQStr(usage, m_Ctx->APIProps().pipelineType), this);
else
item = new QAction("EID " + QString::number(start) + "-" + QString::number(end) + ": " +
"TODO ToStr" /*usage.Str(m_Core.APIProps.pipelineType)*/,
ToQStr(usage, m_Ctx->APIProps().pipelineType),
this);
QObject::connect(item, &QAction::triggered, this, &TextureViewer::texContextItem_triggered);