don't implement your own min/max size like this
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=738952
This commit is contained in:
parent
14c8999f12
commit
396a48d6ce
@ -90,16 +90,6 @@ void Flash::setDuration( int duration )
|
|||||||
d->defaultDuration = duration;
|
d->defaultDuration = duration;
|
||||||
}
|
}
|
||||||
|
|
||||||
QSizeF Flash::minimumSize() const
|
|
||||||
{
|
|
||||||
return size();
|
|
||||||
}
|
|
||||||
|
|
||||||
QSizeF Flash::maximumSize() const
|
|
||||||
{
|
|
||||||
return size();
|
|
||||||
}
|
|
||||||
|
|
||||||
QSizeF Flash::sizeHint() const
|
QSizeF Flash::sizeHint() const
|
||||||
{
|
{
|
||||||
return minimumSize();
|
return minimumSize();
|
||||||
|
@ -43,11 +43,9 @@ class PLASMA_EXPORT Flash : public Plasma::Widget
|
|||||||
|
|
||||||
void paintWidget(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
|
void paintWidget(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
|
||||||
QRectF boundingRect() const;
|
QRectF boundingRect() const;
|
||||||
QSizeF minimumSize() const;
|
|
||||||
QSizeF maximumSize() const;
|
|
||||||
virtual QSizeF sizeHint() const;
|
virtual QSizeF sizeHint() const;
|
||||||
|
|
||||||
void setSize( const QSizeF & );
|
void setSize( const QSizeF & );
|
||||||
|
|
||||||
void setFont( const QFont & );
|
void setFont( const QFont & );
|
||||||
void setColor( const QColor & );
|
void setColor( const QColor & );
|
||||||
|
Loading…
Reference in New Issue
Block a user