mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Added dummy buttons to PhotoEditorControls.
This commit is contained in:
@@ -9,6 +9,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
|
||||
#include "editor/photo_editor_content.h"
|
||||
#include "editor/photo_editor_controls.h"
|
||||
#include "styles/style_editor.h"
|
||||
|
||||
namespace Editor {
|
||||
|
||||
@@ -20,7 +21,13 @@ PhotoEditor::PhotoEditor(
|
||||
, _controls(base::make_unique_q<PhotoEditorControls>(this)) {
|
||||
sizeValue(
|
||||
) | rpl::start_with_next([=](const QSize &size) {
|
||||
_content->resize(size);
|
||||
const auto geometry = QRect(QPoint(), size);
|
||||
const auto contentRect = geometry
|
||||
- style::margins(0, 0, 0, st::photoEditorControlsHeight);
|
||||
_content->setGeometry(contentRect);
|
||||
const auto controlsRect = geometry
|
||||
- style::margins(0, contentRect.height(), 0, 0);
|
||||
_controls->setGeometry(controlsRect);
|
||||
}, lifetime());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user