585 |
585 |
586 disconnectSignals(); |
586 disconnectSignals(); |
587 QObject *currentView = mMainWindow.currentView(); |
587 QObject *currentView = mMainWindow.currentView(); |
588 if (currentView == mPostcaptureView) { |
588 if (currentView == mPostcaptureView) { |
589 // connecting view manager focus events to pre-capture views |
589 // connecting view manager focus events to pre-capture views |
590 connect(this, SIGNAL(focusGained()), currentView, SLOT(startTimers()), Qt::UniqueConnection); |
590 connect(this, SIGNAL(focusGained()), currentView, SLOT(handleFocusGained()), Qt::UniqueConnection); |
591 connect(this, SIGNAL(focusLost()), currentView, SLOT(handleFocusLost()), Qt::UniqueConnection); |
591 connect(this, SIGNAL(focusLost()), currentView, SLOT(handleFocusLost()), Qt::UniqueConnection); |
592 connect(currentView, SIGNAL(changeToPrecaptureView()), mStandbyHandler, SLOT(startTimer()), Qt::UniqueConnection); |
592 connect(currentView, SIGNAL(changeToPrecaptureView()), mStandbyHandler, SLOT(startTimer()), Qt::UniqueConnection); |
593 |
593 |
594 // connect necessary capturekey signals |
594 // connect necessary capturekey signals |
595 connectCaptureKeySignals(); |
595 connectCaptureKeySignals(); |