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

List:       kde-commits
Subject:    kdebase/konqueror
From:       Pascal Létourneau <pletourn () globetrotter ! net>
Date:       2004-07-10 20:08:11
Message-ID: 20040710200811.64CFE16B22 () office ! kde ! org
[Download RAW message or body]

CVS commit by pletourn: 

Use the correct geometry for the draggable favicon


  M +4 -1      konq_combo.cc   1.42


--- kdebase/konqueror/konq_combo.cc  #1.41:1.42
@@ -18,4 +18,5 @@
 */
 
+#include <qstyle.h>
 #include <kapplication.h>
 #include <kconfig.h>
@@ -448,5 +449,7 @@ void KonqCombo::mousePressEvent( QMouseE
         // check if the pixmap was clicked
         int x = e->pos().x();
-        if ( x > 2 && x < lineEdit()->x() ) {
+        int x0 = QStyle::visualRect( style().querySubControlMetrics( \
QStyle::CC_ComboBox, this, QStyle::SC_ComboBoxEditField ), this ).x(); +        
+        if ( x > x0 + 2 && x < lineEdit()->x() ) {
             m_dragStart = e->pos();
             return; // don't call KComboBox::mousePressEvent!


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

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