mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Version 4.14.5: Fix build with GCC.
This commit is contained in:
parent
2213bedc12
commit
ed027c23d0
6 changed files with 3 additions and 13 deletions
|
@ -208,7 +208,6 @@ PreviewWrap::PreviewWrap(
|
||||||
_element->width(),
|
_element->width(),
|
||||||
_element->height()
|
_element->height()
|
||||||
).translated(_viewport.topLeft());
|
).translated(_viewport.topLeft());
|
||||||
const auto media = _element->media();
|
|
||||||
_elementInner = _element->innerGeometry().translated(
|
_elementInner = _element->innerGeometry().translated(
|
||||||
_elementGeometry.topLeft());
|
_elementGeometry.topLeft());
|
||||||
update();
|
update();
|
||||||
|
|
|
@ -406,9 +406,9 @@ void Manager::fillDefaults() {
|
||||||
set(u"%1+%2"_q.arg(ctrl).arg(index), command);
|
set(u"%1+%2"_q.arg(ctrl).arg(index), command);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto &&accounts = ranges::views::zip(
|
//auto &&accounts = ranges::views::zip(
|
||||||
kShowAccount,
|
// kShowAccount,
|
||||||
ranges::views::ints(1, ranges::unreachable));
|
// ranges::views::ints(1, ranges::unreachable));
|
||||||
|
|
||||||
//for (const auto &[command, index] : accounts) {
|
//for (const auto &[command, index] : accounts) {
|
||||||
// set(u"%1+shift+%2"_q.arg(ctrl).arg(index), command);
|
// set(u"%1+shift+%2"_q.arg(ctrl).arg(index), command);
|
||||||
|
|
|
@ -1935,7 +1935,6 @@ void Widget::searchMessages(QString query, Key inChat) {
|
||||||
const auto inChatChanged = [&] {
|
const auto inChatChanged = [&] {
|
||||||
const auto inPeer = inChat.peer();
|
const auto inPeer = inChat.peer();
|
||||||
const auto inTopic = inChat.topic();
|
const auto inTopic = inChat.topic();
|
||||||
const auto inSublist = inChat.sublist();
|
|
||||||
if (!inTopic
|
if (!inTopic
|
||||||
&& _openedForum
|
&& _openedForum
|
||||||
&& inPeer == _openedForum->channel()
|
&& inPeer == _openedForum->channel()
|
||||||
|
@ -2615,7 +2614,6 @@ bool Widget::setSearchInChat(
|
||||||
}
|
}
|
||||||
const auto peer = chat.peer();
|
const auto peer = chat.peer();
|
||||||
const auto topic = chat.topic();
|
const auto topic = chat.topic();
|
||||||
const auto sublist = chat.sublist();
|
|
||||||
const auto forum = peer ? peer->forum() : nullptr;
|
const auto forum = peer ? peer->forum() : nullptr;
|
||||||
if (chat.folder() || (forum && !topic)) {
|
if (chat.folder() || (forum && !topic)) {
|
||||||
chat = Key();
|
chat = Key();
|
||||||
|
|
|
@ -981,8 +981,6 @@ Ui::ChatPaintContext HistoryInner::preparePaintContext(
|
||||||
const QRect &clip) const {
|
const QRect &clip) const {
|
||||||
const auto visibleAreaPositionGlobal = mapToGlobal(
|
const auto visibleAreaPositionGlobal = mapToGlobal(
|
||||||
QPoint(0, _visibleAreaTop));
|
QPoint(0, _visibleAreaTop));
|
||||||
const auto visibleAreaPositionLocal = mapFromGlobal(
|
|
||||||
visibleAreaPositionGlobal);
|
|
||||||
return _controller->preparePaintContext({
|
return _controller->preparePaintContext({
|
||||||
.theme = _theme.get(),
|
.theme = _theme.get(),
|
||||||
.clip = clip,
|
.clip = clip,
|
||||||
|
|
|
@ -71,9 +71,6 @@ int gifMaxStatusWidth(DocumentData *document) {
|
||||||
|
|
||||||
[[nodiscard]] HistoryView::TtlRoundPaintCallback CreateTtlPaintCallback(
|
[[nodiscard]] HistoryView::TtlRoundPaintCallback CreateTtlPaintCallback(
|
||||||
Fn<void()> update) {
|
Fn<void()> update) {
|
||||||
const auto iconSize = Size(std::min(
|
|
||||||
st::historyFileInPause.width(),
|
|
||||||
st::historyFileInPause.height()));
|
|
||||||
const auto centerMargins = Margins(st::historyFileInPause.width() * 3);
|
const auto centerMargins = Margins(st::historyFileInPause.width() * 3);
|
||||||
|
|
||||||
const auto renderer = std::make_shared<QSvgRenderer>(
|
const auto renderer = std::make_shared<QSvgRenderer>(
|
||||||
|
@ -144,7 +141,6 @@ Gif::Gif(
|
||||||
? std::make_unique<MediaSpoiler>()
|
? std::make_unique<MediaSpoiler>()
|
||||||
: nullptr)
|
: nullptr)
|
||||||
, _downloadSize(Ui::FormatSizeText(_data->size)) {
|
, _downloadSize(Ui::FormatSizeText(_data->size)) {
|
||||||
auto hasDefaultDocumentLinks = false;
|
|
||||||
if (_data->isVideoMessage() && _parent->data()->media()->ttlSeconds()) {
|
if (_data->isVideoMessage() && _parent->data()->media()->ttlSeconds()) {
|
||||||
if (_spoiler) {
|
if (_spoiler) {
|
||||||
_drawTtl = CreateTtlPaintCallback([=] { repaint(); });
|
_drawTtl = CreateTtlPaintCallback([=] { repaint(); });
|
||||||
|
|
|
@ -408,7 +408,6 @@ void InlineList::paint(
|
||||||
: st->msgServiceBg())->c;
|
: st->msgServiceBg())->c;
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto radius = geometry.height() / 2.;
|
|
||||||
const auto fill = geometry.marginsAdded({
|
const auto fill = geometry.marginsAdded({
|
||||||
flipped ? bubbleSkip : 0,
|
flipped ? bubbleSkip : 0,
|
||||||
0,
|
0,
|
||||||
|
|
Loading…
Add table
Reference in a new issue