2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Slightly refactored display of media preview.

- Removed showMediaPreview from facades.
This commit is contained in:
23rd
2019-06-29 13:29:04 +03:00
committed by John Preston
parent da6baeb1a7
commit 7c98f64cdb
9 changed files with 71 additions and 70 deletions

View File

@@ -109,12 +109,13 @@ public:
void ui_hideSettingsAndLayer(anim::type animated);
void ui_removeLayerBlackout();
bool ui_isLayerShown();
void ui_showMediaPreview(
void showMediaPreview(
Data::FileOrigin origin,
not_null<DocumentData*> document);
void ui_showMediaPreview(
void showMediaPreview(
Data::FileOrigin origin,
not_null<PhotoData*> photo);
void hideMediaPreview();
protected:
bool eventFilter(QObject *o, QEvent *e) override;
@@ -152,7 +153,6 @@ private:
void handleTrayIconActication(
QSystemTrayIcon::ActivationReason reason) override;
void hideMediaPreview();
void ensureLayerCreated();
void destroyLayer();