[graphics/krita] /: Add a note about deprecation of QScopedPointer

Dmitry Kazakov null at kde.org
Mon Apr 20 14:20:51 BST 2026


Git commit 1a0b1369013773802eed3e625f288de1b031a208 by Dmitry Kazakov.
Committed on 20/04/2026 at 08:47.
Pushed by rempt into branch 'master'.

Add a note about deprecation of QScopedPointer

Freya's recent commit has removed most of the usages
of QScopedPointer from non-d-ptr places, so we can
enforce this rule safely. In some distant future, we might
want to remove that from d-ptr as well, but it is not
planned right now.

CC:kimageshop at kde.org

M  +5    -0    HACKING

https://invent.kde.org/graphics/krita/-/commit/1a0b1369013773802eed3e625f288de1b031a208

diff --git a/HACKING b/HACKING
index f0693e054f3..3d895cbf203 100644
--- a/HACKING
+++ b/HACKING
@@ -117,6 +117,11 @@ Shared pointers
     Use shared pointers wherever possible. Prefer Qt's shared pointer classes
     to our home-grown shared pointer classes.
 
+QScopedPointer is being deprecated by Qt
+
+    We use QScopedPointer **only** for a d-ptr pattern in simple classes not
+    supporting move-semantics. For all other usages, use std::unique_ptr.
+
 Getter/setter
 
     Krita doesn't use Qt's properties -- yet. If you want to introduce use of


More information about the kimageshop mailing list