[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/base/plasma/applets/presence
From: Abner Silva <abner.silva () kdemail ! net>
Date: 2009-07-24 19:44:50
Message-ID: 1248464690.513538.24313.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1002020 by abnerf:
Resizing fixed! Updating constraints to avoid wrong sizes.
M +2 -9 presence.cpp
M +0 -1 presence.h
--- trunk/playground/base/plasma/applets/presence/presence.cpp #1002019:1002020
@@ -111,7 +111,7 @@
m_engine->connectSource(source, this);
m_layout->addItem(account);
- updateSize();
+ updateConstraints();
}
}
@@ -126,7 +126,7 @@
delete account;
m_engine->disconnectSource(source, this);
- updateSize();
+ updateConstraints();
}
}
@@ -322,12 +322,5 @@
if (service)
service->deleteLater();
}
-
-void PresenceApplet::updateSize()
-{
- QSizeF margins = geometry().size() - contentsRect().size();
- QSizeF s = m_layout->preferredSize() + margins;
- resize(s);
-}
#include "presence.moc"
--- trunk/playground/base/plasma/applets/presence/presence.h #1002019:1002020
@@ -59,7 +59,6 @@
void updateMasterIcon();
void setMasterStatusMessage(const QString &message);
void updateMasterPresence();
- void updateSize();
Plasma::DataEngine *m_engine;
QGraphicsWidget *m_widget;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic