Add icons for texture viewer pixel history/debug buttons

This commit is contained in:
baldurk
2021-05-10 11:24:11 +01:00
parent 4eb2621bca
commit c6c133bdd0
10 changed files with 67 additions and 0 deletions
+5
View File
@@ -27,6 +27,7 @@
#include <math.h>
#include <QAction>
#include <QMenu>
#include "Code/Resources.h"
#include "toolwindowmanager/ToolWindowManager.h"
#include "ui_PixelHistoryView.h"
@@ -838,6 +839,8 @@ void PixelHistoryView::on_events_customContextMenuRequested(const QPoint &pos)
QAction jumpAction(tr("&Go to primitive %1 at Event %2").arg(tag.primitive).arg(tag.eventId), this);
jumpAction.setIcon(Icons::find());
QString debugText;
if(tag.primitive == ~0U)
@@ -858,6 +861,8 @@ void PixelHistoryView::on_events_customContextMenuRequested(const QPoint &pos)
QAction debugAction(debugText, this);
debugAction.setIcon(Icons::wrench());
contextMenu.addAction(&debugAction);
if(!m_Ctx.APIProps().shaderDebugging)