diff options
Diffstat (limited to 'docs/manual/Contributing.Style.md')
-rw-r--r-- | docs/manual/Contributing.Style.md | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/manual/Contributing.Style.md b/docs/manual/Contributing.Style.md index 4d7ef1b..7f3a052 100644 --- a/docs/manual/Contributing.Style.md +++ b/docs/manual/Contributing.Style.md @@ -4,7 +4,6 @@ * Use generic formats * Where possible, use QVector over QList: http://lists.qt-project.org/pipermail/development/2017-March /029040.html -* Check pointers with Q_CHECK_PTR before returning them ## Versioning @@ -17,6 +16,11 @@ * next - next stable release preparation, mostly for bugfixes * development - development branch, anything goes there +## Qt +* Check pointers with ´´´Q_CHECK_PTR´´´ before returning them +* Avoid using connect SIGNAL and SLOT. Instead use &Class::method. This way, +connects are checked during the compile, not at runtime. + ## clazy You can use [clazy](https://github.com/KDE/clazy) to check Qt semantics. Requires clang. |