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

List:       kde-commits
Subject:    kdegraphics/kghostview
From:       Luís Pedro Coelho <luis () luispedro ! org>
Date:       2004-04-17 21:28:21
Message-ID: 20040417212821.873C29A45 () office ! kde ! org
[Download RAW message or body]

CVS commit by luis_pedro: 

Update pixmap when the size changes


  M +6 -0      scrollbox.cpp   1.15
  M +1 -0      scrollbox.h   1.10


--- kdegraphics/kghostview/scrollbox.cpp  #1.14:1.15
@@ -56,4 +56,10 @@ void ScrollBox::mouseMoveEvent( QMouseEv
 }
 
+void ScrollBox::resizeEvent( QResizeEvent * )
+{
+    if ( paletteBackgroundPixmap() )
+        setPaletteBackgroundPixmap( paletteBackgroundPixmap()->convertToImage().smoothScale( size() ) );
+}
+
 void ScrollBox::drawContents( QPainter* paint )
 {

--- kdegraphics/kghostview/scrollbox.h  #1.9:1.10
@@ -48,4 +48,5 @@ protected:
     void mouseMoveEvent( QMouseEvent *);
     void drawContents( QPainter *);
+    void resizeEvent( QResizeEvent * );
 
 private:


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

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