2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-02 23:55:12 +00:00

new image / file confirm / send codepath made by Task / TaskQueue, sending single file paste and image paste / drop with that new code

This commit is contained in:
John Preston
2015-10-26 22:39:02 -04:00
parent c606d6b459
commit 31b1ecb11c
18 changed files with 778 additions and 135 deletions

View File

@@ -138,6 +138,18 @@ void BackgroundWidget::replaceInner(LayeredWidget *n) {
update();
}
void BackgroundWidget::showLayerLast(LayeredWidget *n) {
_hidden.push_front(n);
n->setParent(this);
connect(n, SIGNAL(closed()), this, SLOT(onInnerClose()));
connect(n, SIGNAL(resized()), this, SLOT(update()));
connect(n, SIGNAL(destroyed(QObject*)), this, SLOT(boxDestroyed(QObject*)));
n->parentResized();
n->animStep(1);
n->hide();
update();
}
bool BackgroundWidget::animStep(float64 ms) {
float64 dt = ms / (hiding ? st::layerHideDuration : st::layerSlideDuration);
w->animStep(dt);