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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user