mirror of
https://github.com/lubosz/overte.git
synced 2025-04-19 08:58:02 +02:00
Use the applicationStateChanged signal.
This commit is contained in:
parent
e27af75ad2
commit
292f37154b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue