mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-04 00:25:17 +00:00
Fix build with Xcode.
This commit is contained in:
@@ -25,7 +25,6 @@ struct ReactionId {
|
|||||||
return custom ? *custom : DocumentId();
|
return custom ? *custom : DocumentId();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Q_DECLARE_METATYPE(ReactionId);
|
|
||||||
|
|
||||||
inline bool operator<(const ReactionId &a, const ReactionId &b) {
|
inline bool operator<(const ReactionId &a, const ReactionId &b) {
|
||||||
return a.data < b.data;
|
return a.data < b.data;
|
||||||
@@ -38,3 +37,5 @@ inline bool operator==(const ReactionId &a, const ReactionId &b) {
|
|||||||
[[nodiscard]] MTPReaction ReactionToMTP(ReactionId id);
|
[[nodiscard]] MTPReaction ReactionToMTP(ReactionId id);
|
||||||
|
|
||||||
} // namespace Data
|
} // namespace Data
|
||||||
|
|
||||||
|
Q_DECLARE_METATYPE(Data::ReactionId);
|
||||||
|
@@ -161,8 +161,7 @@ Selector::Selector(
|
|||||||
std::move(iconFactory))
|
std::move(iconFactory))
|
||||||
, _size(st::reactStripSize)
|
, _size(st::reactStripSize)
|
||||||
, _skipx(countSkipLeft())
|
, _skipx(countSkipLeft())
|
||||||
, _skipy((st::reactStripHeight - st::reactStripSize) / 2)
|
, _skipy((st::reactStripHeight - st::reactStripSize) / 2) {
|
||||||
, _skipBottom(st::reactStripHeight - st::reactStripSize - _skipy) {
|
|
||||||
setMouseTracking(true);
|
setMouseTracking(true);
|
||||||
|
|
||||||
parentController->content()->alive(
|
parentController->content()->alive(
|
||||||
|
@@ -132,7 +132,6 @@ private:
|
|||||||
int _columns = 0;
|
int _columns = 0;
|
||||||
int _skipx = 0;
|
int _skipx = 0;
|
||||||
int _skipy = 0;
|
int _skipy = 0;
|
||||||
int _skipBottom = 0;
|
|
||||||
int _pressed = -1;
|
int _pressed = -1;
|
||||||
bool _appearing = false;
|
bool _appearing = false;
|
||||||
bool _toggling = false;
|
bool _toggling = false;
|
||||||
|
@@ -82,8 +82,6 @@ private:
|
|||||||
static constexpr auto kFramesCount
|
static constexpr auto kFramesCount
|
||||||
= Ui::RoundAreaWithShadow::kFramesCount;
|
= Ui::RoundAreaWithShadow::kFramesCount;
|
||||||
|
|
||||||
using ReactionId = ::Data::ReactionId;
|
|
||||||
|
|
||||||
struct ReactionDocument {
|
struct ReactionDocument {
|
||||||
std::shared_ptr<Data::DocumentMedia> media;
|
std::shared_ptr<Data::DocumentMedia> media;
|
||||||
std::shared_ptr<Lottie::Icon> icon;
|
std::shared_ptr<Lottie::Icon> icon;
|
||||||
|
Reference in New Issue
Block a user