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

Added ability to open photo editor with saved modifications.

This commit is contained in:
23rd
2021-02-08 06:38:07 +03:00
parent 4d72d20398
commit 85c21ba0e4
4 changed files with 15 additions and 6 deletions

View File

@@ -15,9 +15,14 @@ namespace Editor {
PhotoEditor::PhotoEditor(
not_null<Ui::RpWidget*> parent,
std::shared_ptr<QPixmap> photo)
std::shared_ptr<QPixmap> photo,
PhotoModifications modifications)
: RpWidget(parent)
, _content(base::make_unique_q<PhotoEditorContent>(this, photo))
, _modifications(modifications)
, _content(base::make_unique_q<PhotoEditorContent>(
this,
photo,
modifications))
, _controls(base::make_unique_q<PhotoEditorControls>(this)) {
sizeValue(
) | rpl::start_with_next([=](const QSize &size) {