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

List:       kde-commits
Subject:    qt-copy
From:       Wilco Greven <greven () kde ! org>
Date:       2003-02-21 3:23:53
[Download RAW message or body]

CVS commit by wgreven: 

Speedup drawing of menus when navigating them.


  M +1 -0      README.qt-copy   1.202
  M +2 -1      src/widgets/qpopupmenu.cpp   1.50


--- qt-copy/README.qt-copy  #1.201:1.202
@@ -101,2 +101,3 @@
   called late and the QCursor:pos was different from the move-event pos) (patch from \
                TT)
 - QCheckBox/QRadioButton: only toggle when clicking the button or the label \
containing the text (not empty label area) +- qpopupmenu.cpp: Drawing speedup.

--- qt-copy/src/widgets/qpopupmenu.cpp  #1.49:1.50
@@ -1473,5 +1473,6 @@ void QPopupMenu::drawContents( QPainter*
             x +=itemw;
         }
-        if ( !mi->widget() )
+        if ( !mi->widget() && 
+             !(p->hasClipping() && p->clipRegion().intersect( QRect(x, y, itemw, \
itemh ) ).isEmpty() ) )  drawItem( p, tab, mi, row == actItem, x, y, itemw, itemh );
         y += itemh;


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

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