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

List:       kde-commits
Subject:    k3b_0_11_branch: kdeextragear-1/k3b/src/tools
From:       Sebastian Trueg <sebastian () trueg ! de>
Date:       2004-08-03 11:34:28
Message-ID: 20040803113428.8F9039A40 () office ! kde ! org
[Download RAW message or body]

CVS commit by trueg: 

fix: when showing progress there was some pixel garbage around the progress bar.


  M +7 -7      k3blistview.cpp   1.16.2.4


--- kdeextragear-1/k3b/src/tools/k3blistview.cpp  #1.16.2.3:1.16.2.4
@@ -379,10 +379,4 @@ void K3bListViewItem::paintProgressBar( 
   QRect r( 0, m_vMargin, width, height()-2*m_vMargin );
 
-  // we want a little additional margin
-  r.setLeft( r.left()+1 );
-  r.setWidth( r.width()-2 );
-  r.setTop( r.top()+1 );
-  r.setHeight( r.height()-2 );
-
   // create the double buffer pixmap
   static QPixmap *doubleBuffer = 0;
@@ -400,4 +394,10 @@ void K3bListViewItem::paintProgressBar( 
                         cgh.brush( \
QPalette::backgroundRoleFromMode(listView()->viewport()->backgroundMode()) ) );  
+  // we want a little additional margin
+  r.setLeft( r.left()+1 );
+  r.setWidth( r.width()-2 );
+  r.setTop( r.top()+1 );
+  r.setHeight( r.height()-2 );
+
   // this might be a stupid hack but most styles do not reimplement drawPrimitive \
PE_ProgressBarChunk  // so this way the user is happy....


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

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