From 396a48d6ce1bec2abee1a9bccfff384298ab1523 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Tue, 20 Nov 2007 01:00:06 +0000 Subject: [PATCH] don't implement your own min/max size like this svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=738952 --- widgets/flash.cpp | 10 ---------- widgets/flash.h | 4 +--- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/widgets/flash.cpp b/widgets/flash.cpp index 161cbaadc..5a00a2aa1 100644 --- a/widgets/flash.cpp +++ b/widgets/flash.cpp @@ -90,16 +90,6 @@ void Flash::setDuration( int duration ) d->defaultDuration = duration; } -QSizeF Flash::minimumSize() const -{ - return size(); -} - -QSizeF Flash::maximumSize() const -{ - return size(); -} - QSizeF Flash::sizeHint() const { return minimumSize(); diff --git a/widgets/flash.h b/widgets/flash.h index 31c89d31b..8e3ce0862 100644 --- a/widgets/flash.h +++ b/widgets/flash.h @@ -43,11 +43,9 @@ class PLASMA_EXPORT Flash : public Plasma::Widget void paintWidget(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); QRectF boundingRect() const; - QSizeF minimumSize() const; - QSizeF maximumSize() const; virtual QSizeF sizeHint() const; - void setSize( const QSizeF & ); + void setSize( const QSizeF & ); void setFont( const QFont & ); void setColor( const QColor & );