diff --git a/Telegram/SourceFiles/editor/editor_crop.h b/Telegram/SourceFiles/editor/editor_crop.h index 4a1a4594bc..5a947b5701 100644 --- a/Telegram/SourceFiles/editor/editor_crop.h +++ b/Telegram/SourceFiles/editor/editor_crop.h @@ -39,7 +39,7 @@ protected: private: struct InfoAtDown { QRectF rect; - Qt::Edges edge = 0; + Qt::Edges edge; QPoint point; float64 cropRatio = 0.; diff --git a/Telegram/SourceFiles/editor/photo_editor_content.cpp b/Telegram/SourceFiles/editor/photo_editor_content.cpp index 0eb6237ec2..1e109759e9 100644 --- a/Telegram/SourceFiles/editor/photo_editor_content.cpp +++ b/Telegram/SourceFiles/editor/photo_editor_content.cpp @@ -88,7 +88,7 @@ PhotoEditorContent::PhotoEditorContent( p.fillRect(clip, Qt::transparent); - p.setMatrix(_imageMatrix); + p.setTransform(_imageMatrix); p.drawPixmap( _imageRect, diff --git a/Telegram/SourceFiles/editor/photo_editor_content.h b/Telegram/SourceFiles/editor/photo_editor_content.h index 253d70e276..b76016ac50 100644 --- a/Telegram/SourceFiles/editor/photo_editor_content.h +++ b/Telegram/SourceFiles/editor/photo_editor_content.h @@ -47,7 +47,7 @@ private: rpl::event_stream _keyPresses; QRect _imageRect; - QMatrix _imageMatrix; + QTransform _imageMatrix; PhotoEditorMode _mode; }; diff --git a/Telegram/SourceFiles/editor/scene/scene_item_canvas.cpp b/Telegram/SourceFiles/editor/scene/scene_item_canvas.cpp index 6aeaf1e498..14df4ed65c 100644 --- a/Telegram/SourceFiles/editor/scene/scene_item_canvas.cpp +++ b/Telegram/SourceFiles/editor/scene/scene_item_canvas.cpp @@ -78,7 +78,7 @@ std::vector InterpolatedPoints( } // namespace ItemCanvas::ItemCanvas() { - setAcceptedMouseButtons(0); + setAcceptedMouseButtons({}); } void ItemCanvas::clearPixmap() {