the proper fix for stupid compilers *sigh* setSize(int, int) isn't virtual in Widget, but that doesn't matter in this case at all.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773493
This commit is contained in:
parent
eed0410c56
commit
e83f329de0
@ -1352,6 +1352,11 @@ QVariant Applet::itemChange(GraphicsItemChange change, const QVariant &value)
|
|||||||
return Widget::itemChange(change, value);
|
return Widget::itemChange(change, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Applet::setSize(int width, int height)
|
||||||
|
{
|
||||||
|
setSize(QSizeF(width, height));
|
||||||
|
}
|
||||||
|
|
||||||
void Applet::setSize(const QSizeF &size)
|
void Applet::setSize(const QSizeF &size)
|
||||||
{
|
{
|
||||||
setGeometry(QRectF(pos(), size));
|
setGeometry(QRectF(pos(), size));
|
||||||
|
5
applet.h
5
applet.h
@ -729,6 +729,11 @@ class PLASMA_EXPORT Applet : public Widget
|
|||||||
*/
|
*/
|
||||||
QVariant itemChange(GraphicsItemChange change, const QVariant &value);
|
QVariant itemChange(GraphicsItemChange change, const QVariant &value);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reimplemented from QGraphicsItem
|
||||||
|
*/
|
||||||
|
void setSize(int width, int height);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reimplemented from QGraphicsItem
|
* Reimplemented from QGraphicsItem
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user