summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp
diff options
context:
space:
mode:
authorShawn Hoffman <godisgovernment@gmail.com>2023-04-23 03:43:49 -0700
committerShawn Hoffman <godisgovernment@gmail.com>2023-04-25 12:34:27 -0700
commit51e528e45ffd744836c4ba69f9f0d1480337d8d4 (patch)
tree2504119fba07258f24f16a266e7c172d45c167f8 /Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp
parent8c2e9242555bdcbaa0067658bf8a4a41d6936405 (diff)
DolphinQt: cache icons instead of single pixmaps
Fixes dynamically changing dpi scaling. Load resources from svg if possible. Currently svg support is not in Qt build in Externals, and image files need to be added later.
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp b/Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp
index 2412bef831..588c353d88 100644
--- a/Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp
+++ b/Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp
@@ -126,11 +126,11 @@ void BreakpointWidget::CreateWidgets()
void BreakpointWidget::UpdateIcons()
{
- m_new->setIcon(Resources::GetScaledThemeIcon("debugger_add_breakpoint"));
- m_delete->setIcon(Resources::GetScaledThemeIcon("debugger_delete"));
- m_clear->setIcon(Resources::GetScaledThemeIcon("debugger_clear"));
- m_load->setIcon(Resources::GetScaledThemeIcon("debugger_load"));
- m_save->setIcon(Resources::GetScaledThemeIcon("debugger_save"));
+ m_new->setIcon(Resources::GetThemeIcon("debugger_add_breakpoint"));
+ m_delete->setIcon(Resources::GetThemeIcon("debugger_delete"));
+ m_clear->setIcon(Resources::GetThemeIcon("debugger_clear"));
+ m_load->setIcon(Resources::GetThemeIcon("debugger_load"));
+ m_save->setIcon(Resources::GetThemeIcon("debugger_save"));
}
void BreakpointWidget::closeEvent(QCloseEvent*)