mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-11 01:10:13 +00:00
Fix Ui::ImportantTooltip render on OS X 10.6-10.7.
This commit is contained in:
parent
b4d10ca693
commit
132d884600
@ -153,9 +153,7 @@ void Tooltip::paintEvent(QPaintEvent *e) {
|
||||
|
||||
if (_useTransparency) {
|
||||
Platform::StartTranslucentPaint(p, e);
|
||||
}
|
||||
|
||||
if (_useTransparency) {
|
||||
p.setPen(_st->textBorder);
|
||||
p.setBrush(_st->textBg);
|
||||
PainterHighQualityEnabler hq(p);
|
||||
@ -334,7 +332,9 @@ void ImportantTooltip::checkAnimationFinish() {
|
||||
_cache = QPixmap();
|
||||
showChildren();
|
||||
setVisible(_visible);
|
||||
if (!_visible && _hiddenCallback) {
|
||||
if (_visible) {
|
||||
update();
|
||||
} else if (_hiddenCallback) {
|
||||
_hiddenCallback();
|
||||
}
|
||||
}
|
||||
@ -383,7 +383,6 @@ void ImportantTooltip::paintEvent(QPaintEvent *e) {
|
||||
|
||||
auto inner = countInner();
|
||||
if (_useTransparency) {
|
||||
Platform::StartTranslucentPaint(p, e);
|
||||
if (!_cache.isNull()) {
|
||||
auto opacity = _visibleAnimation.current(_visible ? 1. : 0.);
|
||||
p.setOpacity(opacity);
|
||||
|
Loading…
Reference in New Issue
Block a user