Qt: Icon updates

This commit is contained in:
KamFretoZ
2024-02-05 20:34:34 +07:00
committed by Connor McLaughlin
parent 0e6a9f637b
commit 1f6636f62b
43 changed files with 3119 additions and 1934 deletions

View File

@ -251,10 +251,10 @@ void DebuggerWindow::onCodeViewContextMenuRequested(const QPoint& pt)
menu.addAction(QStringLiteral("0x%1").arg(static_cast<uint>(address), 8, 16, QChar('0')))->setEnabled(false);
menu.addSeparator();
QAction* action = menu.addAction(QIcon(":/icons/media-record@2x.png"), tr("Toggle &Breakpoint"));
QAction* action = menu.addAction(QIcon::fromTheme("debug-toggle-breakpoint"), tr("Toggle &Breakpoint"));
connect(action, &QAction::triggered, this, [this, address]() { toggleBreakpoint(address); });
action = menu.addAction(QIcon(":/icons/debug-run-cursor.png"), tr("&Run To Cursor"));
action = menu.addAction(QIcon::fromTheme("debugger-go-to-cursor"), tr("&Run To Cursor"));
connect(action, &QAction::triggered, this, [address]() {
Host::RunOnCPUThread([address]() {
CPU::AddBreakpoint(address, true, true);
@ -263,10 +263,10 @@ void DebuggerWindow::onCodeViewContextMenuRequested(const QPoint& pt)
});
menu.addSeparator();
action = menu.addAction(QIcon(":/icons/antialias-icon.png"), tr("View in &Dump"));
action = menu.addAction(QIcon::fromTheme("debugger-go-to-address"), tr("View in &Dump"));
connect(action, &QAction::triggered, this, [this, address]() { scrollToMemoryAddress(address); });
action = menu.addAction(QIcon(":/icons/debug-trace.png"), tr("Follow Load/Store"));
action = menu.addAction(QIcon::fromTheme("debug-trace-line"), tr("Follow Load/Store"));
connect(action, &QAction::triggered, this, [this, address]() { tryFollowLoadStore(address); });
menu.exec(m_ui.codeView->mapToGlobal(pt));