mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Add Qt 6 support
Tested only on Linux so far
This commit is contained in:
@@ -531,8 +531,8 @@ bool MainWidget::shareUrl(
|
||||
TextWithTags::Tags()
|
||||
};
|
||||
MessageCursor cursor = {
|
||||
url.size() + 1,
|
||||
url.size() + 1 + text.size(),
|
||||
int(url.size()) + 1,
|
||||
int(url.size()) + 1 + int(text.size()),
|
||||
QFIXED_MAX
|
||||
};
|
||||
auto history = peer->owner().history(peer);
|
||||
@@ -558,7 +558,7 @@ bool MainWidget::inlineSwitchChosen(PeerId peerId, const QString &botAndQuery) {
|
||||
}
|
||||
const auto h = peer->owner().history(peer);
|
||||
TextWithTags textWithTags = { botAndQuery, TextWithTags::Tags() };
|
||||
MessageCursor cursor = { botAndQuery.size(), botAndQuery.size(), QFIXED_MAX };
|
||||
MessageCursor cursor = { int(botAndQuery.size()), int(botAndQuery.size()), QFIXED_MAX };
|
||||
h->setLocalDraft(std::make_unique<Data::Draft>(
|
||||
textWithTags,
|
||||
0,
|
||||
|
Reference in New Issue
Block a user