mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Enable QT_NO_CAST_FROM_ASCII & QT_NO_CAST_TO_ASCII
* Added a couple of utility macros to help with the conversion. lit() is paired with tr() for untranslated text. * QFormatStr is more explicitly for non-textual formatting strings. * Both are just #define'd to QStringLiteral()
This commit is contained in:
@@ -71,12 +71,12 @@ public:
|
||||
{
|
||||
switch(section)
|
||||
{
|
||||
case 0: return "EID";
|
||||
case 1: return "Source";
|
||||
case 2: return "Severity";
|
||||
case 3: return "Category";
|
||||
case 4: return "ID";
|
||||
case 5: return "Description";
|
||||
case 0: return lit("EID");
|
||||
case 1: return lit("Source");
|
||||
case 2: return lit("Severity");
|
||||
case 3: return lit("Category");
|
||||
case 4: return lit("ID");
|
||||
case 5: return lit("Description");
|
||||
default: break;
|
||||
}
|
||||
}
|
||||
@@ -228,10 +228,10 @@ DebugMessageView::DebugMessageView(ICaptureContext &ctx, QWidget *parent)
|
||||
m_ContextMenu = new QMenu(this);
|
||||
|
||||
m_ShowHidden = new QAction(tr("Show hidden rows"), this);
|
||||
m_ToggleSource = new QAction("", this);
|
||||
m_ToggleSeverity = new QAction("", this);
|
||||
m_ToggleCategory = new QAction("", this);
|
||||
m_ToggleMessageType = new QAction("", this);
|
||||
m_ToggleSource = new QAction(QString(), this);
|
||||
m_ToggleSeverity = new QAction(QString(), this);
|
||||
m_ToggleCategory = new QAction(QString(), this);
|
||||
m_ToggleMessageType = new QAction(QString(), this);
|
||||
|
||||
m_ShowHidden->setCheckable(true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user