- Add setSize (needed by Applet)

- Delete white space from line ends

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=718077
This commit is contained in:
Petri Damstén 2007-09-28 05:45:10 +00:00
parent c4f4f16048
commit 61fa701fc0
2 changed files with 10 additions and 4 deletions

View File

@ -222,6 +222,11 @@ void Widget::setGeometry(const QRectF& geometry)
update();
}
void Widget::setSize(const QSizeF& size)
{
d->size = size;
}
void Widget::updateGeometry()
{
if ( managingLayout() ) {

View File

@ -255,6 +255,7 @@ protected:
* @param widget the parent QWidget (most likely the Corona)
*/
virtual void paintWidget(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
void setSize(const QSizeF& size);
private:
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);