[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdebase/kdm/kfrontend/themer
From: Oswald Buddenhagen <ossi () kde ! org>
Date: 2005-08-21 12:21:05
Message-ID: 1124626865.540375.21762.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 451649 by ossi:
slightly more useful debug
M +5 -5 kdmitem.cpp
M +1 -1 kdmthemer.cpp
--- branches/KDE/3.5/kdebase/kdm/kfrontend/themer/kdmitem.cpp #451648:451649
@@ -83,7 +83,7 @@
}
QDomNode tnode = node;
- id = tnode.toElement().attribute( "id", QString::null );
+ id = tnode.toElement().attribute( "id", QString::number( (ulong)this, 16 ) );
// Tell 'parent' to add 'me' to its children
KdmItem *parentItem = static_cast<KdmItem *>( parent );
@@ -218,7 +218,7 @@
void
KdmItem::setGeometry( const QRect &newGeometry, bool force )
{
- kdDebug() << this << " setGeometry " << newGeometry << endl;
+ kdDebug() << " KdmItem::setGeometry " << id << newGeometry << endl;
// check if already 'in place'
if (!force && area == newGeometry)
return;
@@ -351,7 +351,7 @@
w = parentRect.width(),
h = parentRect.height();
- kdDebug() << "KdmItem::placementHint parentRect=" << parentRect << " hintedSize=" \
<< hintedSize << endl; + kdDebug() << "KdmItem::placementHint parentRect=" << id << \
parentRect << " hintedSize=" << hintedSize << endl; // check if width or height are \
set to "box" if (pos.wType == DTbox || pos.hType == DTbox) {
if (myLayoutItem || myWidget)
@@ -361,7 +361,7 @@
return parentRect;
boxHint = boxManager->sizeHint();
}
- kdDebug() << "boxHint " << boxHint << endl;
+ kdDebug() << " => boxHint " << boxHint << endl;
}
if (pos.xType == DTpixel)
@@ -419,7 +419,7 @@
dx = -w;
}
// KdmItem *p = static_cast<KdmItem*>( parent() );
- kdDebug() << "placementHint " << this << " x=" << x << " dx=" << dx << " w=" << w \
<< " y=" << y << " dy=" << dy << " h=" << h << " " << parentRect << endl; + kdDebug() \
<< "KdmItem::placementHint " << id << " x=" << x << " dx=" << dx << " w=" << w << " \
y=" << y << " dy=" << dy << " h=" << h << " " << parentRect << endl; y += dy;
x += dx;
--- branches/KDE/3.5/kdebase/kdm/kfrontend/themer/kdmthemer.cpp #451648:451649
@@ -313,7 +313,7 @@
if (object->inherits( "KdmItem" )) {
KdmItem *widget = (KdmItem *)object;
- kdDebug() << node << "|" << widget->type() << " me=" << widget << " " << \
widget->area << endl; + kdDebug() << node << "|" << widget->type() << " me=" << \
widget->id << " " << widget->area << endl; }
showStructure( object );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic