--compiler_warnings;

svn path=/trunk/KDE/kdelibs/; revision=894470
This commit is contained in:
Aaron J. Seigo 2008-12-08 18:05:17 +00:00
parent e42452e847
commit 011832d5fb

View File

@ -204,6 +204,7 @@ void Extender::resizeEvent(QGraphicsSceneResizeEvent *event)
void Extender::mousePressEvent(QGraphicsSceneMouseEvent *event) void Extender::mousePressEvent(QGraphicsSceneMouseEvent *event)
{ {
Q_UNUSED(event)
PopupApplet *popupApplet = qobject_cast<PopupApplet*>(d->applet); PopupApplet *popupApplet = qobject_cast<PopupApplet*>(d->applet);
if (attachedItems().isEmpty() && popupApplet) { if (attachedItems().isEmpty() && popupApplet) {
popupApplet->hidePopup(); popupApplet->hidePopup();
@ -454,6 +455,8 @@ void ExtenderPrivate::loadExtenderItems()
void ExtenderPrivate::updateBorders() void ExtenderPrivate::updateBorders()
{ {
foreach (ExtenderItem *item, q->attachedItems()) { foreach (ExtenderItem *item, q->attachedItems()) {
//kDebug() << "checking" << (QObject*)item << item->d->background->enabledBorders()
// << q->enabledBordersForItem(item);
if (item && (item->d->background->enabledBorders() != q->enabledBordersForItem(item))) { if (item && (item->d->background->enabledBorders() != q->enabledBordersForItem(item))) {
//call themeChanged to change the backgrounds enabled borders, and move all contained //call themeChanged to change the backgrounds enabled borders, and move all contained
//widgets according to it's changed margins. //widgets according to it's changed margins.