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

List:       kde-commits
Subject:    kpdf_annotations: kdegraphics/kpdf/ui
From:       Enrico Ros <rosenric () dei ! unipd ! it>
Date:       2005-03-24 18:54:14
Message-ID: 20050324185414.263903E8 () office ! kde ! org
[Download RAW message or body]

CVS commit by eros: 

Minor cosmetic change.


  M +9 -8      minibar.cpp   1.4.2.1


--- kdegraphics/kpdf/ui/minibar.cpp  #1.4:1.4.2.1
@@ -155,7 +155,7 @@ void MiniBar::notifySetup( const QValueV
 
     // resize height of widgets
-    int fixedHeight = fontMetrics().height() + 2;
-    if ( fixedHeight < 18 )
-        fixedHeight = 18;
+    int fixedHeight = fontMetrics().height() + 4;
+    if ( fixedHeight < 20 )
+        fixedHeight = 20;
     m_pagesEdit->setFixedHeight( fixedHeight );
     m_pagesButton->setFixedHeight( fixedHeight );
@@ -302,9 +302,13 @@ void ProgressWidget::paintEvent( QPaintE
     QRect cRect = QRect( l, 0, w - l, h ).intersect( e->rect() );
     QRect fRect = QRect( 0, 0, l, h ).intersect( e->rect() );
-
-    // paint rects and a separator line
     QPainter p( this );
+
+    // paint clear rect
     if ( cRect.isValid() )
         p.fillRect( cRect, palette().active().highlightedText() );
+    // draw a frame-like outline
+    //p.setPen( palette().active().mid() );
+    //p.drawRect( 0,0, w, h );
+    // paint fill rect
     if ( fRect.isValid() )
         p.fillRect( fRect, palette().active().highlight() );
@@ -314,7 +318,4 @@ void ProgressWidget::paintEvent( QPaintE
         p.drawLine( l, 0, l, h );
     }
-    // draw a frame-like outline
-    //p.setPen( palette().active().mid() );
-    //p.drawRect( 0,0, w, h );
 }
 


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

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