MCPcopy Create free account
hub / github.com/KLayout/klayout / has_gui

Function has_gui

src/laybasic/laybasic/layUtils.cc:31–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29namespace lay {
30
31bool
32has_gui ()
33{
34#if defined(HAVE_QT)
35#if QT_VERSION < 0x50000
36 return (QApplication::type () != QApplication::Tty);
37#else
38 return (dynamic_cast<QGuiApplication *> (QCoreApplication::instance ()) != 0);
39#endif
40#else
41 return false;
42#endif
43}
44
45}

Callers 2

layAbstractMenu.ccFile · 0.70
set_menuMethod · 0.70

Calls 2

typeEnum · 0.70
instanceFunction · 0.70

Tested by

no test coverage detected