예제 #1
0
파일: game.cpp 프로젝트: glebb/Spoony
void Game::showStartupScreen()
{
    clearGfxObjectsFromScene();

    if (qml_startscreen->isLoading())
    {
        QObject::connect(qml_startscreen, SIGNAL(statusChanged(QDeclarativeComponent::Status)),
                         this, SLOT(continueLoading()));
    }
    else continueLoading();
}
void DevicesConfigsLoader::addConfig(QUrl configUrl)
{
    // FIXME: forgotten pointers
    component = new QQmlComponent(_engine,configUrl);
    if (component->isLoading()) {
        QObject::connect(component, SIGNAL(statusChanged(QQmlComponent::Status)), this, SLOT(continueLoading()));
    }
    else {
        continueLoading();
    }
}
예제 #3
0
void QAPEWindow::timerEvent(QTimerEvent * event)
{
  if (event->timerId()==repaintTimer)
  {
    killTimer(repaintTimer);
    repaintTimer=0;
    renderArea->repaintConn();
    update();
  }
  else if (event->timerId()==deletedTimer)
  {
    killTimer(deletedTimer);
    continueLoading();
  }
}