listItems.cc
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 static const char *listitems_id =
00030 "$Id: listItems.cc,v 1.7.6.2 2003/03/12 23:31:14 adridg Exp $";
00031
00032 #include "options.h"
00033
00034
00035
00036 #ifndef _QSTRING_H
00037 #include <qstring.h>
00038 #endif
00039 #ifndef _QLISTBOX_H
00040 #include <qlistbox.h>
00041 #endif
00042
00043
00044
00045 #ifndef _KPILOT_LISTITEMS_H
00046 #include "listItems.h"
00047 #endif
00048
00049 #ifdef DEBUG
00050 int PilotListItem::crt = 0;
00051 int PilotListItem::del = 0;
00052 int PilotListItem::count = 0;
00053
00054 void PilotListItem::counts()
00055 {
00056 FUNCTIONSETUP;
00057 DEBUGKPILOT << fname
00058 << ": created=" << crt << " deletions=" << del << endl;
00059 }
00060 #endif
00061
00062 PilotListItem::PilotListItem(const QString & text,
00063 int pilotid, void *r) :
00064 QListBoxText(text),
00065 fid(pilotid),
00066 fr(r)
00067 {
00068
00069 #ifdef DEBUG
00070 crt++;
00071 count++;
00072 if (!(count & 0xff))
00073 counts();
00074 #endif
00075 (void) listitems_id;
00076 }
00077
00078 PilotListItem::~PilotListItem()
00079 {
00080
00081 #ifdef DEBUG
00082 del++;
00083 count++;
00084 if (!(count & 0xff))
00085 counts();
00086 #endif
00087 }
This file is part of the documentation for kdelibs Version 3.1.4.