Krita/docs/NewCodingPoliciesInMaster: Difference between revisions
Line 3: | Line 3: | ||
# Add Q_DECL_HIDDEN to all Private classes in new code | # Add Q_DECL_HIDDEN to all Private classes in new code | ||
# instead of #include <QDebug> and #include <kdebug.h> use #include <kis_debug.h> | # instead of #include <QDebug> and #include <kdebug.h> use #include <kis_debug.h> | ||
#Use QUrl instead of KUrl and keep in mind that QString s; QUrl u = s; becomes QUrl u = QUrl::fromUserInput(s) or QUrl::fromLocalFile(s); |
Revision as of 18:48, 10 September 2015
New coding policy standards which should be use in Calligra master
- Use Q_SLOTS ans Q_SIGNALS instead of slots/signals keywords we used before
- Add Q_DECL_HIDDEN to all Private classes in new code
- instead of #include <QDebug> and #include <kdebug.h> use #include <kis_debug.h>
- Use QUrl instead of KUrl and keep in mind that QString s; QUrl u = s; becomes QUrl u = QUrl::fromUserInput(s) or QUrl::fromLocalFile(s);