mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-05-09 19:50:32 +00:00
Fix build on Windows.
This commit is contained in:
parent
937eab5f27
commit
0b4986b47a
@ -63,8 +63,6 @@ void TopBarSuggestionContent::setRightIcon(RightIcon icon) {
|
||||
|
||||
void TopBarSuggestionContent::draw(QPainter &p) {
|
||||
const auto kLinesForPhoto = 3;
|
||||
const auto rightPhotoSize = _titleSt.font->ascent * kLinesForPhoto;
|
||||
const auto rightPhotoPlaceholder = _titleSt.font->height * kLinesForPhoto;
|
||||
|
||||
const auto r = Ui::RpWidget::rect();
|
||||
p.fillRect(r, st::historyPinnedBg);
|
||||
@ -177,9 +175,6 @@ void TopBarSuggestionContent::paintEvent(QPaintEvent *) {
|
||||
}
|
||||
|
||||
rpl::producer<int> TopBarSuggestionContent::desiredHeightValue() const {
|
||||
const auto kLinesForPhoto = 3;
|
||||
const auto rightPhotoSize = _titleSt.font->ascent * kLinesForPhoto;
|
||||
const auto rightPhotoPlaceholder = _titleSt.font->height * kLinesForPhoto;
|
||||
return rpl::combine(
|
||||
_lastPaintedContentTop.value(),
|
||||
_lastPaintedContentLineAmount.value()
|
||||
|
Loading…
Reference in New Issue
Block a user