From 58a7aec1061d237a9c1d7d1b4d86a470fe6d0ff3 Mon Sep 17 00:00:00 2001 From: Prince Gupta Date: Thu, 29 Feb 2024 22:13:06 +0530 Subject: [PATCH] qt: rearrange variables in RoundImage reduces padding --- modules/gui/qt/widgets/native/roundimage.hpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/modules/gui/qt/widgets/native/roundimage.hpp b/modules/gui/qt/widgets/native/roundimage.hpp index b21255879c..367800ff53 100644 --- a/modules/gui/qt/widgets/native/roundimage.hpp +++ b/modules/gui/qt/widgets/native/roundimage.hpp @@ -88,19 +88,17 @@ private slots: void onRequestCompleted(Status status, const QImage& image); private: + Status m_status = Status::Null; + bool m_QSGCustomGeometry = false; + bool m_dirty = false; + bool m_enqueuedGeneration = false; + QUrl m_source; qreal m_radius = 0.0; qreal m_dpr = 1.0; // device pixel ratio - Status m_status = Status::Null; - - bool m_QSGCustomGeometry = false; QImage m_roundImage; - bool m_dirty = false; - std::shared_ptr m_activeImageResponse; - - bool m_enqueuedGeneration = false; }; #endif