mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix build with GCC.
This commit is contained in:
parent
0434e520fd
commit
145d112982
3 changed files with 4 additions and 2 deletions
|
@ -1118,7 +1118,6 @@ void ReactionPreview::paintEffect(QPainter &p) {
|
||||||
}
|
}
|
||||||
} else if (event->type() == QEvent::MouseMove) {
|
} else if (event->type() == QEvent::MouseMove) {
|
||||||
const auto point = static_cast<QMouseEvent*>(event.get())->pos();
|
const auto point = static_cast<QMouseEvent*>(event.get())->pos();
|
||||||
const auto index = lookup(point);
|
|
||||||
select(lookup(point));
|
select(lookup(point));
|
||||||
} else if (event->type() == QEvent::Leave) {
|
} else if (event->type() == QEvent::Leave) {
|
||||||
select(-1);
|
select(-1);
|
||||||
|
|
|
@ -106,6 +106,9 @@ void UserData::setPhone(const QString &newPhone) {
|
||||||
void UserData::setBotInfoVersion(int version) {
|
void UserData::setBotInfoVersion(int version) {
|
||||||
if (version < 0) {
|
if (version < 0) {
|
||||||
// We don't support bots becoming non-bots.
|
// We don't support bots becoming non-bots.
|
||||||
|
if (botInfo) {
|
||||||
|
botInfo->version = -1;
|
||||||
|
}
|
||||||
} else if (!botInfo) {
|
} else if (!botInfo) {
|
||||||
botInfo = std::make_unique<BotInfo>();
|
botInfo = std::make_unique<BotInfo>();
|
||||||
botInfo->version = version;
|
botInfo->version = version;
|
||||||
|
|
|
@ -299,7 +299,7 @@ infoProfileNameLabel: FlatLabel(infoProfileStatusLabel) {
|
||||||
linkFontOver: font(16px semibold underline);
|
linkFontOver: font(16px semibold underline);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
infoVerifiedCheckPosition: point(2px, 2px);
|
infoVerifiedCheckPosition: point(4px, 2px);
|
||||||
infoVerifiedCheck: icon {
|
infoVerifiedCheck: icon {
|
||||||
{ "profile_verified_star", profileVerifiedCheckBg },
|
{ "profile_verified_star", profileVerifiedCheckBg },
|
||||||
{ "profile_verified_check", profileVerifiedCheckFg }
|
{ "profile_verified_check", profileVerifiedCheckFg }
|
||||||
|
|
Loading…
Add table
Reference in a new issue