(re)Add some kDebug lines temporarily to help me debug a bug I can't reproduce myself.

svn path=/trunk/KDE/kdelibs/; revision=896123
This commit is contained in:
Rob Scheepmaker 2008-12-12 15:03:18 +00:00
parent 43a7784230
commit 1b3d372062
3 changed files with 5 additions and 3 deletions

View File

@ -370,6 +370,7 @@ Containment *Corona::addContainmentDelayed(const QString &name, const QVariantLi
void Corona::addOffscreenWidget(QGraphicsWidget *widget)
{
if (d->offscreenWidgets.values().contains(widget)) {
kDebug() << "widget is already an offscreen widget!";
return;
}

View File

@ -131,13 +131,11 @@ void DialogPrivate::adjustView()
{
if (view && widget) {
QSize prevSize = q->size();
/*
kDebug() << "Widget size:" << widget->size()
<< "| Widget size hint:" << widget->effectiveSizeHint(Qt::PreferredSize)
<< "| Widget minsize hint:" << widget->minimumSize()
<< "| Widget maxsize hint:" << widget->maximumSize()
<< "| Widget bounding rect:" << widget->boundingRect();
*/
//set the sizehints correctly:
int left, top, right, bottom;
q->getContentsMargins(&left, &top, &right, &bottom);

View File

@ -155,7 +155,7 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints)
QSizeF containmentSize;
QGraphicsWidget *gWidget = q->graphicsWidget();
//kDebug() << "graphics widget is" << (QObject*)gWidget;
kDebug() << "graphics widget is" << (QObject*)gWidget;
QWidget *qWidget = q->widget();
if (gWidget) {
@ -178,6 +178,8 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints)
if (icon && !icon->icon().isNull() && ((f != Plasma::Vertical && f != Plasma::Horizontal) ||
((f == Plasma::Vertical && containmentSize.width() >= minimum.width()) ||
(f == Plasma::Horizontal && containmentSize.height() >= minimum.height())))) {
kDebug() << "we are expanding the popupapplet";
// we only switch to expanded if we aren't horiz/vert constrained and
// this applet has an icon.
// otherwise, we leave it up to the applet itself to figure it out
@ -247,6 +249,7 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints)
}
//Applet on popup
} else {
kDebug() << "about to switch to a popup";
//save the aspect ratio mode in case we drag'n drop in the Desktop later
savedAspectRatio = q->aspectRatioMode();
q->setAspectRatioMode(Plasma::ConstrainedSquare);