Fix build on Windows.

This commit is contained in:
John Preston 2025-04-15 20:14:04 +04:00
parent 937eab5f27
commit 0b4986b47a

View File

@ -63,8 +63,6 @@ void TopBarSuggestionContent::setRightIcon(RightIcon icon) {
void TopBarSuggestionContent::draw(QPainter &p) { void TopBarSuggestionContent::draw(QPainter &p) {
const auto kLinesForPhoto = 3; const auto kLinesForPhoto = 3;
const auto rightPhotoSize = _titleSt.font->ascent * kLinesForPhoto;
const auto rightPhotoPlaceholder = _titleSt.font->height * kLinesForPhoto;
const auto r = Ui::RpWidget::rect(); const auto r = Ui::RpWidget::rect();
p.fillRect(r, st::historyPinnedBg); p.fillRect(r, st::historyPinnedBg);
@ -177,9 +175,6 @@ void TopBarSuggestionContent::paintEvent(QPaintEvent *) {
} }
rpl::producer<int> TopBarSuggestionContent::desiredHeightValue() const { 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( return rpl::combine(
_lastPaintedContentTop.value(), _lastPaintedContentTop.value(),
_lastPaintedContentLineAmount.value() _lastPaintedContentLineAmount.value()