some diagnostic debug for Jon
svn path=/trunk/KDE/kdelibs/; revision=1071451
This commit is contained in:
parent
e52aebe20e
commit
e23b884920
@ -2751,6 +2751,7 @@ KConfigGroup *AppletPrivate::mainConfigGroup()
|
||||
|
||||
Containment *c = q->containment();
|
||||
Applet *parentApplet = qobject_cast<Applet *>(q->parent());
|
||||
kDebug() << "going to make the appletConfig" << parentApplet << c;
|
||||
if (parentApplet && parentApplet != static_cast<Applet *>(c)) {
|
||||
// this applet is nested inside another applet! use it's config
|
||||
// as the parent group in the config
|
||||
@ -2769,7 +2770,9 @@ KConfigGroup *AppletPrivate::mainConfigGroup()
|
||||
newGroup = true;
|
||||
}
|
||||
|
||||
kDebug() << "appletConfig is" << (appletConfig.isValid() ? "valid" : "not valid");
|
||||
mainConfig = new KConfigGroup(&appletConfig, QString::number(appletId));
|
||||
kDebug() << "mainConfig is" << (mainConfig->isValid() ? "valid" : "not valid");
|
||||
}
|
||||
|
||||
if (newGroup) {
|
||||
|
@ -702,6 +702,7 @@ void PopupAppletPrivate::updateDialogPosition()
|
||||
preferredHeight = dialog->graphicsWidget()->preferredSize().height();
|
||||
}
|
||||
|
||||
kDebug() << "about to use sizeGroup which is" << (sizeGroup.isValid() ? "valid" : "not valid");
|
||||
const int width = qMin(sizeGroup.readEntry("DialogWidth", preferredWidth),
|
||||
corona->screenGeometry(-1).width() - 50);
|
||||
const int height = qMin(sizeGroup.readEntry("DialogHeight", preferredHeight),
|
||||
|
Loading…
x
Reference in New Issue
Block a user