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

List:       kde-commits
Subject:    kdegraphics/kghostview
From:       Hans Petter Bieker <bieker () kde ! org>
Date:       2003-01-02 13:35:34
[Download RAW message or body]

CVS commit by bieker: 

Keep the ratio between the height and width in the scrollbox the same as in 
the view.


  M +1 -0      scrollbox.cpp   1.6


--- kdegraphics/kghostview/scrollbox.cpp  #1.5:1.6
@@ -83,4 +83,5 @@ void ScrollBox::setPageSize( QSize s )
 {
         pagesize = s;
+        setFixedHeight( (s.height() * width()) / s.width() );
         setBackgroundMode();
         repaint();


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

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