[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeplasma-addons/applets/frame
From:       Marco Martin <notmart () gmail ! com>
Date:       2009-12-23 12:19:04
Message-ID: 1261570744.121931.2508.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1065498 by mart:

slightly clearer code (still looks kinda wrong tough)


 M  +1 -1      frame.cpp  


--- trunk/KDE/kdeplasma-addons/applets/frame/frame.cpp #1065497:1065498
@@ -197,7 +197,7 @@
 QSizeF Frame::contentSizeHint() const
 {
     if (!m_pictureSize.isEmpty() && (formFactor() == Plasma::Planar || formFactor() \
                == Plasma::MediaCenter)){
-        const qreal maxSize = contentsRect().width() > contentsRect().height() ? \
contentsRect().width() : contentsRect().height(); +        const qreal maxSize = \
qMax(contentsRect().width(), contentsRect().height());  QSize size = m_pictureSize;
         size.scale(maxSize, maxSize, Qt::KeepAspectRatio);
         return size;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic