Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Add a note about deprecation of QScopedPointer

Dmitry Kazakov1a0b13690137
diff --git a/HACKING b/HACKING
index f0693e054f..3d895cbf20 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