| 187 | } |
| 188 | |
| 189 | void 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 | |
| 209 | void DebuggerView::goToInDisassembler(u32 address, bool switch_to_tab) |
| 210 | { |