void Window::showLayer(LayeredWidget *w, bool fast) { layerHidden(); layerBG = new BackgroundWidget(this, w); if (fast) { layerBG->showFast(); } }
void Window::clearWidgets() { layerHidden(); if (_passcode) { _passcode->hide(); _passcode->deleteLater(); _passcode = 0; } if (settings) { anim::stop(settings); settings->hide(); settings->deleteLater(); settings->rpcInvalidate(); settings = 0; } if (main) { anim::stop(main); main->hide(); main->deleteLater(); main->rpcInvalidate(); main = 0; } if (intro) { anim::stop(intro); intro->hide(); intro->deleteLater(); intro->rpcInvalidate(); intro = 0; } title->updateBackButton(); updateGlobalMenu(); }
void Window::clearWidgets() { layerHidden(); if (settings) { anim::stop(settings); settings->hide(); settings->deleteLater(); settings = 0; } if (main) { anim::stop(main); main->hide(); main->deleteLater(); main = 0; } if (intro) { anim::stop(intro); intro->hide(); intro->deleteLater(); intro = 0; } }
void Window::showLayer(LayeredWidget *w) { layerHidden(); layerBG = new BackgroundWidget(this, w); }
void Window::showDocument(DocumentData *doc, QPixmap pix, HistoryItem *item) { layerHidden(); _mediaView->showDocument(doc, pix, item); _mediaView->activateWindow(); _mediaView->setFocus(); }
void Window::showPhoto(PhotoData *photo, PeerData *peer) { layerHidden(); _mediaView->showPhoto(photo, peer); _mediaView->activateWindow(); _mediaView->setFocus(); }
void Window::showPhoto(PhotoData *photo, HistoryItem *item) { layerHidden(); _mediaView->showPhoto(photo, item); _mediaView->activateWindow(); _mediaView->setFocus(); }
void Window::layerFinishedHide(BackgroundWidget *was) { if (was == layerBG) { QTimer::singleShot(0, this, SLOT(layerHidden())); } }
void Window::showPhoto(PhotoData *photo, HistoryItem *item) { layerHidden(); layer = new LayerWidget(this, photo, item); }