~ubuntu-branches/ubuntu/natty/digikam/natty

« back to all changes in this revision

Viewing changes to HACKING

  • Committer: Bazaar Package Importer
  • Author(s): Luka Renko
  • Date: 2009-11-12 18:02:13 UTC
  • mfrom: (1.2.24 upstream) (3.2.7 sid)
  • Revision ID: james.westby@ubuntu.com-20091112180213-8p63z8taug49ji3t
Tags: 2:1.0.0~beta6-1ubuntu1
* Merge with Debian, remaining changes:
  - Export .pot name and copy to plugins in debian/rules
  - Remove liblqr-1-0-dev from build-deps, not in main

Show diffs side-by-side

added added

removed removed

Lines of Context:
178
178
....QFileInfo* m_fileInfo;
179
179
 
180
180
========================================================================
181
 
Debugging information
182
 
========================================================================
183
 
 
184
 
To write debugging information to the console, add the "debug.h" header file
185
 
to your includes declaration and use the areaCode variables provided by that file.
186
 
For example:
187
 
 
188
 
#include "debug.h"
189
 
 
190
 
void Foo::doSomething()
191
 
{
192
 
    ...
193
 
    kDebug(digiKamAreaCode)  << "some debugging info";
194
 
    kDebug(showFotoAreaCode) << "some more debugging info";
195
 
}
196
 
 
197
 
You do not need to include <kdebug.h>, it is already done by the "debug.h".
198
 
 
199
 
========================================================================
200
181
General recommendations
201
182
========================================================================
202
183
 
283
264
www.englishbreakfastnetwork.org/krazy/
284
265
 
285
266
It can be very useful, in particular before major releases.
286
 
Don't trust it blindly! Sometimes they propose too advanced modifications that are no compatible with the prevailant include files.
 
267
Don't trust it blindly! Sometimes they propose too advanced modifications that
 
268
are no compatible with the prevailant include files.
287
269
 
288
270
========================================================================
289
271
Usability issues