MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / updateStyleSheet

Method updateStyleSheet

pcsx2-qt/Debugger/DebuggerView.cpp:189–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189void DebuggerView::updateStyleSheet()
190{
191 QString stylesheet;
192
193 if (m_flags & MONOSPACE_FONT)
194 {
195 // Easiest way to handle cross platform monospace fonts
196 // There are issues related to TabWidget -> Children font inheritance otherwise
197#if defined(WIN32)
198 stylesheet += QStringLiteral("font-family: 'Lucida Console';");
199#elif defined(__APPLE__)
200 stylesheet += QStringLiteral("font-family: 'Monaco';");
201#else
202 stylesheet += QStringLiteral("font-family: 'Monospace';");
203#endif
204 }
205
206 setStyleSheet(stylesheet);
207}
208
209void DebuggerView::goToInDisassembler(u32 address, bool switch_to_tab)
210{

Callers 1

updateThemeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected