MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / eventFilter

Method eventFilter

src/qt/splashscreen.cpp:140–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140bool SplashScreen::eventFilter(QObject * obj, QEvent * ev) {
141 if (ev->type() == QEvent::KeyPress) {
142 QKeyEvent *keyEvent = static_cast<QKeyEvent *>(ev);
143 if(keyEvent->text()[0] == 'q') {
144 m_node.startShutdown();
145 }
146 }
147 return QObject::eventFilter(obj, ev);
148}
149
150void SplashScreen::slotFinish(QWidget *mainWin)
151{

Callers

nothing calls this directly

Calls 2

typeMethod · 0.80
startShutdownMethod · 0.80

Tested by

no test coverage detected