MCPcopy Create free account
hub / github.com/TASEmulators/fceux / changeStackFontCB

Method changeStackFontCB

src/drivers/Qt/ConsoleDebugger.cpp:2905–2919  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

2903}
2904//----------------------------------------------------------------------------
2905void ConsoleDebugger::changeStackFontCB(void)
2906{
2907 bool ok = false;
2908
2909 QFont selFont = QFontDialog::getFont( &ok, stackText->QWidget::font(), this, tr("Select Font"), QFontDialog::MonospacedFonts );
2910
2911 if ( ok )
2912 {
2913 stackText->setFont( selFont );
2914
2915 //printf("Font Changed to: '%s'\n", font.toString().toStdString().c_str() );
2916
2917 g_config->setOption("SDL.DebuggerStackFont", selFont.toString().toStdString().c_str() );
2918 }
2919}
2920//----------------------------------------------------------------------------
2921void ConsoleDebugger::changeCpuFontCB(void)
2922{

Callers

nothing calls this directly

Calls 4

setOptionMethod · 0.80
toStringMethod · 0.80
trFunction · 0.50
setFontMethod · 0.45

Tested by

no test coverage detected