From 3cdd1153176fd37aed2f8dfe64b22b84544966a7 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 7 Jul 2021 00:54:56 +0300 Subject: [PATCH] Beta version 2.8.6: Fix build for Linux. --- Telegram/SourceFiles/editor/editor_crop.h | 2 +- Telegram/SourceFiles/editor/photo_editor_content.cpp | 2 +- Telegram/SourceFiles/editor/photo_editor_content.h | 2 +- Telegram/SourceFiles/editor/scene/scene_item_canvas.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Telegram/SourceFiles/editor/editor_crop.h b/Telegram/SourceFiles/editor/editor_crop.h index 4a1a4594b..5a947b570 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 0eb6237ec..1e109759e 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 253d70e27..b76016ac5 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 6aeaf1e49..14df4ed65 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() {