mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-25 16:06:31 +00:00
Remove some cases where resources were being loaded and parsed @ runtime
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
#include "3rdparty/flowlayout/FlowLayout.h"
|
||||
#include "Code/CaptureContext.h"
|
||||
#include "Code/QRDUtils.h"
|
||||
#include "Code/Resources.h"
|
||||
#include "ui_EventBrowser.h"
|
||||
|
||||
struct EventItemTag
|
||||
@@ -102,10 +103,6 @@ EventBrowser::EventBrowser(ICaptureContext &ctx, QWidget *parent)
|
||||
m_BookmarkStripLayout->addWidget(ui->bookmarkStripHeader);
|
||||
m_BookmarkStripLayout->addItem(m_BookmarkSpacer);
|
||||
|
||||
m_CurrentIcon.addFile(QStringLiteral(":/flag_green.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
m_FindIcon.addFile(QStringLiteral(":/find.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
m_BookmarkIcon.addFile(QStringLiteral(":/asterisk_orange.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
|
||||
Qt::Key keys[] = {
|
||||
Qt::Key_1, Qt::Key_2, Qt::Key_3, Qt::Key_4, Qt::Key_5,
|
||||
Qt::Key_6, Qt::Key_7, Qt::Key_8, Qt::Key_9, Qt::Key_0,
|
||||
@@ -747,11 +744,11 @@ bool EventBrowser::hasBookmark(uint32_t EID)
|
||||
void EventBrowser::RefreshIcon(RDTreeWidgetItem *item, EventItemTag tag)
|
||||
{
|
||||
if(tag.current)
|
||||
item->setIcon(COL_NAME, m_CurrentIcon);
|
||||
item->setIcon(COL_NAME, Icons::flag_green());
|
||||
else if(tag.bookmark)
|
||||
item->setIcon(COL_NAME, m_BookmarkIcon);
|
||||
item->setIcon(COL_NAME, Icons::asterisk_orange());
|
||||
else if(tag.find)
|
||||
item->setIcon(COL_NAME, m_FindIcon);
|
||||
item->setIcon(COL_NAME, Icons::find());
|
||||
else
|
||||
item->setIcon(COL_NAME, QIcon());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user