mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 03:27:48 +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();
|
Application::getInstance()->initializeGL();
|
||||||
setAttribute(Qt::WA_AcceptTouchEvents);
|
setAttribute(Qt::WA_AcceptTouchEvents);
|
||||||
setAcceptDrops(true);
|
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);
|
connect(&_frameTimer, &QTimer::timeout, this, &GLCanvas::throttleRender);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue