mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-03 08:05:12 +00:00
Windows build fixes
Fixes added: - C2036 (unknown size): templates can be used only with fully defined structs - Incomplete type Data::Media
This commit is contained in:
@@ -39,7 +39,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||||||
#include "window/window_session_controller.h" // GifPauseReason.
|
#include "window/window_session_controller.h" // GifPauseReason.
|
||||||
#include "main/main_session.h"
|
#include "main/main_session.h"
|
||||||
#include "main/main_session_settings.h"
|
#include "main/main_session_settings.h"
|
||||||
#include "media/clip/media_clip_reader.h"
|
|
||||||
#include "apiwrap.h"
|
#include "apiwrap.h"
|
||||||
#include "api/api_toggling_media.h" // Api::ToggleFavedSticker
|
#include "api/api_toggling_media.h" // Api::ToggleFavedSticker
|
||||||
#include "styles/style_chat_helpers.h"
|
#include "styles/style_chat_helpers.h"
|
||||||
@@ -224,16 +223,6 @@ private:
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct StickersListWidget::Sticker {
|
|
||||||
not_null<DocumentData*> document;
|
|
||||||
std::shared_ptr<Data::DocumentMedia> documentMedia;
|
|
||||||
Lottie::Animation *lottie = nullptr;
|
|
||||||
Media::Clip::ReaderPointer webm;
|
|
||||||
QPixmap savedFrame;
|
|
||||||
|
|
||||||
void ensureMediaCreated();
|
|
||||||
};
|
|
||||||
|
|
||||||
auto StickersListWidget::PrepareStickers(
|
auto StickersListWidget::PrepareStickers(
|
||||||
const QVector<DocumentData*> &pack)
|
const QVector<DocumentData*> &pack)
|
||||||
-> std::vector<Sticker> {
|
-> std::vector<Sticker> {
|
||||||
|
@@ -9,6 +9,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||||||
|
|
||||||
#include "chat_helpers/tabbed_selector.h"
|
#include "chat_helpers/tabbed_selector.h"
|
||||||
#include "data/stickers/data_stickers.h"
|
#include "data/stickers/data_stickers.h"
|
||||||
|
#include "media/clip/media_clip_reader.h"
|
||||||
#include "base/variant.h"
|
#include "base/variant.h"
|
||||||
#include "base/timer.h"
|
#include "base/timer.h"
|
||||||
|
|
||||||
@@ -39,11 +40,6 @@ class DocumentMedia;
|
|||||||
class StickersSet;
|
class StickersSet;
|
||||||
} // namespace Data
|
} // namespace Data
|
||||||
|
|
||||||
namespace Media::Clip {
|
|
||||||
class ReaderPointer;
|
|
||||||
enum class Notification;
|
|
||||||
} // namespace Media::Clip
|
|
||||||
|
|
||||||
namespace ChatHelpers {
|
namespace ChatHelpers {
|
||||||
|
|
||||||
struct StickerIcon;
|
struct StickerIcon;
|
||||||
@@ -118,7 +114,15 @@ protected:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
class Footer;
|
class Footer;
|
||||||
struct Sticker;
|
struct Sticker {
|
||||||
|
not_null<DocumentData*> document;
|
||||||
|
std::shared_ptr<Data::DocumentMedia> documentMedia;
|
||||||
|
Lottie::Animation *lottie = nullptr;
|
||||||
|
Media::Clip::ReaderPointer webm;
|
||||||
|
QPixmap savedFrame;
|
||||||
|
|
||||||
|
void ensureMediaCreated();
|
||||||
|
};
|
||||||
|
|
||||||
enum class Section {
|
enum class Section {
|
||||||
Featured,
|
Featured,
|
||||||
|
@@ -9,6 +9,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||||||
|
|
||||||
#include "lottie/lottie_single_player.h"
|
#include "lottie/lottie_single_player.h"
|
||||||
#include "lottie/lottie_multi_player.h"
|
#include "lottie/lottie_multi_player.h"
|
||||||
|
#include "data/data_media_types.h"
|
||||||
#include "data/stickers/data_stickers_set.h"
|
#include "data/stickers/data_stickers_set.h"
|
||||||
#include "data/data_document.h"
|
#include "data/data_document.h"
|
||||||
#include "data/data_document_media.h"
|
#include "data/data_document_media.h"
|
||||||
|
@@ -8,6 +8,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||||||
#include "history/view/media/history_view_media_common.h"
|
#include "history/view/media/history_view_media_common.h"
|
||||||
|
|
||||||
#include "ui/text/format_values.h"
|
#include "ui/text/format_values.h"
|
||||||
|
#include "data/data_media_types.h"
|
||||||
#include "data/data_document.h"
|
#include "data/data_document.h"
|
||||||
#include "data/data_wall_paper.h"
|
#include "data/data_wall_paper.h"
|
||||||
#include "history/view/history_view_element.h"
|
#include "history/view/history_view_element.h"
|
||||||
|
@@ -7,6 +7,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||||||
*/
|
*/
|
||||||
#include "inline_bots/inline_bot_layout_internal.h"
|
#include "inline_bots/inline_bot_layout_internal.h"
|
||||||
|
|
||||||
|
#include "data/data_media_types.h"
|
||||||
#include "data/data_photo.h"
|
#include "data/data_photo.h"
|
||||||
#include "data/data_document.h"
|
#include "data/data_document.h"
|
||||||
#include "data/data_session.h"
|
#include "data/data_session.h"
|
||||||
|
Reference in New Issue
Block a user