mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +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(
|
||||
left + size.height() / 2,
|
||||
top + (st::dialogRowOpenBotHeight - rightButton->text.minHeight()) / 2),
|
||||
.availableWidth = size.width() - size.height() / 2,
|
||||
.outerWidth = size.width() - size.height() / 2,
|
||||
.availableWidth = size.width() - size.height() / 2,
|
||||
.elisionLines = 1,
|
||||
});
|
||||
return size.width() + st::dialogsUnreadPadding;
|
||||
|
|
|
@ -262,7 +262,6 @@ bool RecentRow::refreshBadge() {
|
|||
|
||||
QSize RecentRow::rightActionSize() const {
|
||||
if (_mainAppText) {
|
||||
const auto &font = st::dialogRowOpenBotTextStyle.font;
|
||||
return QSize(
|
||||
_mainAppText->maxWidth() + _mainAppText->minHeight(),
|
||||
st::dialogRowOpenBotHeight);
|
||||
|
@ -314,8 +313,8 @@ void RecentRow::rightActionPaint(
|
|||
+ (st::dialogRowOpenBotHeight - _mainAppText->minHeight()) / 2;
|
||||
_mainAppText->draw(p, {
|
||||
.position = QPoint(x + size.height() / 2, y + top),
|
||||
.availableWidth = outerWidth,
|
||||
.outerWidth = outerWidth,
|
||||
.availableWidth = outerWidth,
|
||||
.elisionLines = 1,
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue