mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix build for MSVC.
This commit is contained in:
parent
f13740cb7f
commit
18aaf3cc93
2 changed files with 2 additions and 3 deletions
|
@ -125,8 +125,8 @@ int PaintRightButton(QPainter &p, const PaintContext &context) {
|
||||||
.position = QPoint(
|
.position = QPoint(
|
||||||
left + size.height() / 2,
|
left + size.height() / 2,
|
||||||
top + (st::dialogRowOpenBotHeight - rightButton->text.minHeight()) / 2),
|
top + (st::dialogRowOpenBotHeight - rightButton->text.minHeight()) / 2),
|
||||||
.availableWidth = size.width() - size.height() / 2,
|
|
||||||
.outerWidth = size.width() - size.height() / 2,
|
.outerWidth = size.width() - size.height() / 2,
|
||||||
|
.availableWidth = size.width() - size.height() / 2,
|
||||||
.elisionLines = 1,
|
.elisionLines = 1,
|
||||||
});
|
});
|
||||||
return size.width() + st::dialogsUnreadPadding;
|
return size.width() + st::dialogsUnreadPadding;
|
||||||
|
|
|
@ -262,7 +262,6 @@ bool RecentRow::refreshBadge() {
|
||||||
|
|
||||||
QSize RecentRow::rightActionSize() const {
|
QSize RecentRow::rightActionSize() const {
|
||||||
if (_mainAppText) {
|
if (_mainAppText) {
|
||||||
const auto &font = st::dialogRowOpenBotTextStyle.font;
|
|
||||||
return QSize(
|
return QSize(
|
||||||
_mainAppText->maxWidth() + _mainAppText->minHeight(),
|
_mainAppText->maxWidth() + _mainAppText->minHeight(),
|
||||||
st::dialogRowOpenBotHeight);
|
st::dialogRowOpenBotHeight);
|
||||||
|
@ -314,8 +313,8 @@ void RecentRow::rightActionPaint(
|
||||||
+ (st::dialogRowOpenBotHeight - _mainAppText->minHeight()) / 2;
|
+ (st::dialogRowOpenBotHeight - _mainAppText->minHeight()) / 2;
|
||||||
_mainAppText->draw(p, {
|
_mainAppText->draw(p, {
|
||||||
.position = QPoint(x + size.height() / 2, y + top),
|
.position = QPoint(x + size.height() / 2, y + top),
|
||||||
.availableWidth = outerWidth,
|
|
||||||
.outerWidth = outerWidth,
|
.outerWidth = outerWidth,
|
||||||
|
.availableWidth = outerWidth,
|
||||||
.elisionLines = 1,
|
.elisionLines = 1,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue