2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

new photo viewer done, testing, added compressed checkbox in send-from-clipboard

This commit is contained in:
John Preston
2014-08-11 13:03:45 +04:00
parent f62db48251
commit d26afe1b64
29 changed files with 1274 additions and 491 deletions

View File

@@ -58,8 +58,9 @@ namespace anim {
const float64 &current() const {
return _cur;
}
void update(const float64 &dt, transition func) {
fvalue &update(const float64 &dt, transition func) {
_cur = _from + (*func)(_delta, dt);
return *this;
}
void finish() {
_cur = _from + _delta;
@@ -92,8 +93,9 @@ namespace anim {
int32 current() const {
return _cur;
}
void update(const float64 &dt, transition func) {
ivalue &update(const float64 &dt, transition func) {
_cur = qRound(_from + (*func)(_delta, dt));
return *this;
}
void finish() {
_cur = qRound(_from + _delta);
@@ -143,11 +145,12 @@ namespace anim {
const QColor &current() const {
return _cur;
}
void update(const float64 &dt, transition func) {
cvalue &update(const float64 &dt, transition func) {
_cur.setRedF(_from_r + (*func)(_delta_r, dt));
_cur.setGreenF(_from_g + (*func)(_delta_g, dt));
_cur.setBlueF(_from_b + (*func)(_delta_b, dt));
_cur.setAlphaF(_from_a + (*func)(_delta_a, dt));
return *this;
}
void finish() {
_cur.setRedF(_from_r + _delta_r);