|
|
|
@ -164,7 +164,7 @@ void KTimeMon::paintRect(int x, int y, int w, int h, TQColor c, TQPainter *p)
|
|
|
|
|
void KTimeMon::maybeTip(const TQPoint& p)
|
|
|
|
|
{
|
|
|
|
|
if (sample == 0) return; // no associated sample...
|
|
|
|
|
if(!TQT_TQRECT_OBJECT(rect()).contains(p)) return;
|
|
|
|
|
if(!rect().contains(p)) return;
|
|
|
|
|
|
|
|
|
|
KSample::Sample s = sample->getSample(100); // scale to 100(%)
|
|
|
|
|
int idle = 100 - s.kernel - s.user - s.nice;
|
|
|
|
|