2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Use QOpenGLWidget for macOS media viewer overlay.

Also move mediaview to media/view/media_view_overlay_widget.
This commit is contained in:
John Preston
2019-02-12 14:00:47 +03:00
parent 4caf26d069
commit c1a0dad2b7
9 changed files with 205 additions and 191 deletions

View File

@@ -16,7 +16,6 @@ class AuthSessionSettings;
class MainWidget;
class FileUploader;
class Translator;
class MediaView;
class BoxContent;
namespace Storage {
@@ -43,6 +42,9 @@ namespace Media {
namespace Audio {
class Instance;
} // namespace Audio
namespace View {
class OverlayWidget;
} // namespace View
} // namespace Media
namespace Lang {
@@ -81,7 +83,7 @@ public:
return &_globalShortcutParent;
}
// MediaView interface.
// Media view interface.
void checkMediaViewActivation();
bool hideMediaView();
void showPhoto(not_null<const PhotoOpenClickHandler*> link);
@@ -244,7 +246,7 @@ private:
std::unique_ptr<Storage::Databases> _databases;
std::unique_ptr<MainWindow> _window;
std::unique_ptr<MediaView> _mediaView;
std::unique_ptr<Media::View::OverlayWidget> _mediaView;
std::unique_ptr<Lang::Instance> _langpack;
std::unique_ptr<Lang::CloudManager> _langCloudManager;
std::unique_ptr<Lang::Translator> _translator;