mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 15:43:55 +02:00
Fix build on Windows.
This commit is contained in:
parent
937eab5f27
commit
0b4986b47a
1 changed files with 0 additions and 5 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Reference in a new issue