2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 07:25:46 +00:00

Use crl::time/now instead of TimeMs/getms.

This commit is contained in:
John Preston
2019-02-19 10:57:53 +04:00
parent d208236994
commit fe618bd652
310 changed files with 1133 additions and 1141 deletions

View File

@@ -155,7 +155,7 @@ void TabbedPanel::windowActiveChanged() {
void TabbedPanel::paintEvent(QPaintEvent *e) {
Painter p(this);
auto ms = getms();
auto ms = crl::now();
// This call can finish _a_show animation and destroy _showAnimation.
auto opacityAnimating = _a_opacity.animating(ms);
@@ -208,7 +208,7 @@ void TabbedPanel::leaveEventHook(QEvent *e) {
if (preventAutoHide()) {
return;
}
auto ms = getms();
auto ms = crl::now();
if (_a_show.animating(ms) || _a_opacity.animating(ms)) {
hideAnimated();
} else {
@@ -226,7 +226,7 @@ void TabbedPanel::otherLeave() {
return;
}
auto ms = getms();
auto ms = crl::now();
if (_a_opacity.animating(ms)) {
hideByTimerOrLeave();
} else {