Use the applicationStateChanged signal.

This commit is contained in:
Geenz 2014-03-12 21:08:55 -04:00
parent e27af75ad2
commit 292f37154b

View file

@ -19,7 +19,7 @@ void GLCanvas::initializeGL() {
Application::getInstance()->initializeGL();
setAttribute(Qt::WA_AcceptTouchEvents);
setAcceptDrops(true);
connect(Application::getInstance(), &Application::focusChanged, this, &GLCanvas::activeChanged);
connect(Application::getInstance(), &Application::applicationStateChanged, this, &GLCanvas::activeChanged);
connect(&_frameTimer, &QTimer::timeout, this, &GLCanvas::throttleRender);
}