2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +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

@@ -32,7 +32,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "observer_peer.h"
#include "storage/storage_databases.h"
#include "mainwidget.h"
#include "mediaview.h"
#include "media/view/media_view_overlay_widget.h"
#include "mtproto/dc_options.h"
#include "mtproto/mtp_instance.h"
#include "media/player/media_player_instance.h"
@@ -129,7 +129,7 @@ void Application::run() {
_window->init();
auto currentGeometry = _window->geometry();
_mediaView = std::make_unique<MediaView>();
_mediaView = std::make_unique<Media::View::OverlayWidget>();
_window->setGeometry(currentGeometry);
QCoreApplication::instance()->installEventFilter(this);