MCPcopy Create free account
hub / github.com/Atarity/Lightpack / onFocusChanged

Method onFocusChanged

Software/src/LightpackApplication.cpp:271–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269 }
270}
271void LightpackApplication::onFocusChanged(QWidget *old, QWidget *now)
272{
273 Q_UNUSED(now);
274 Q_UNUSED(old);
275 DEBUG_LOW_LEVEL << Q_FUNC_INFO << (this->activeWindow() != NULL ? this->activeWindow()->metaObject()->className() : "null");
276 if(!m_isSettingsWindowActive && (this->activeWindow() == m_settingsWindow)) {
277 m_settingsWindow->onFocus();
278 m_isSettingsWindowActive = true;
279 } else {
280 if(m_isSettingsWindowActive && (this->activeWindow() == NULL)) {
281 m_settingsWindow->onBlur();
282 m_isSettingsWindowActive = false;
283 }
284 }
285}
286
287void LightpackApplication::quitFromWizard(int result)
288{

Callers

nothing calls this directly

Calls 2

onFocusMethod · 0.80
onBlurMethod · 0.80

Tested by

no test coverage detected