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

List:       kde-commits
Subject:    KDE/kdebase/workspace/ksmserver
From:       Marco Martin <notmart () gmail ! com>
Date:       2009-05-28 11:53:55
Message-ID: 1243511635.228595.10862.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 973994 by mart:

keep aspect ratio of the moon
patch by Shafqat Bhuiyan


 M  +3 -1      shutdowndlg.cpp  


--- trunk/KDE/kdebase/workspace/ksmserver/shutdowndlg.cpp #973993:973994
@@ -211,6 +211,8 @@
 
     p.save();
 
+    m_glowSvg->resize();
+
     if (m_glowOpacity > 0) {
         p.setOpacity(m_glowOpacity); // fade in
         m_glowSvg->paint(&p, QRect(0, 0, width(), height()), m_smallButton ? \
"button-small-hover" : "button-hover"); @@ -218,7 +220,6 @@
         m_glowSvg->paint(&p, QRect(0, 0, width(), height()), m_smallButton ? \
"button-small-normal" : "button-normal");  p.setOpacity(1.0);
     } else {
-        m_glowSvg->resize();
         m_glowSvg->paint(&p, QRect(0, 0, width(), height()), m_smallButton ? \
"button-small-normal" : "button-normal");  }
 
@@ -567,6 +568,7 @@
         QRect r = layout()->geometry();
         r.setWidth(m_pictureWidth);
 
+	m_svg->resize();
         m_svg->resize(m_svg->elementRect("picture").size());
         QPixmap picture = m_svg->pixmap("picture");
         m_svg->resize();


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

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