SVN commit 791190 by gaboo: fix wrong size for applet handle M +8 -0 frame.cpp M +1 -0 frame.h --- trunk/extragear/plasma/applets/frame/frame.cpp #791189:791190 @@ -120,6 +120,14 @@ } } +QSizeF Frame::contentSizeHint() const { + if (!m_picture.isNull()) { + return QSizeF( contentSize().width(), (contentSize().width() / m_picture.width() ) * m_picture.height() ); + } else { + return contentSize(); + } +} + void Frame::updatePicture() { m_picture = m_mySlideShow->getImage(); --- trunk/extragear/plasma/applets/frame/frame.h #791189:791190 @@ -50,6 +50,7 @@ const QRect &contentsRect); void init(); void constraintsUpdated(Plasma::Constraints constraints); + QSizeF contentSizeHint() const; public slots: void showConfigurationInterface();