[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/plasma/applets/frame
From: Gaƫl Beaudoin <gaboo () gaboo ! org>
Date: 2008-03-28 17:15:17
Message-ID: 1206724517.136754.6524.nullmailer () svn ! kde ! org
[Download RAW message or body]
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();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic