From 1b3d3720627f16d11fc7095267fab2eb7474ff15 Mon Sep 17 00:00:00 2001 From: Rob Scheepmaker Date: Fri, 12 Dec 2008 15:03:18 +0000 Subject: [PATCH] (re)Add some kDebug lines temporarily to help me debug a bug I can't reproduce myself. svn path=/trunk/KDE/kdelibs/; revision=896123 --- corona.cpp | 1 + dialog.cpp | 2 -- popupapplet.cpp | 5 ++++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/corona.cpp b/corona.cpp index 070073549..90ef6b1b9 100644 --- a/corona.cpp +++ b/corona.cpp @@ -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; } diff --git a/dialog.cpp b/dialog.cpp index 2482a75a0..144b157c3 100644 --- a/dialog.cpp +++ b/dialog.cpp @@ -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); diff --git a/popupapplet.cpp b/popupapplet.cpp index f0563bbf1..1749f5181 100644 --- a/popupapplet.cpp +++ b/popupapplet.cpp @@ -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);