- 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:
parent
c4f4f16048
commit
61fa701fc0
@ -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() ) {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user