From kde-commits Sat Jul 10 20:08:11 2004 From: =?utf-8?q?Pascal=20L=C3=A9tourneau?= Date: Sat, 10 Jul 2004 20:08:11 +0000 To: kde-commits Subject: kdebase/konqueror Message-Id: <20040710200811.64CFE16B22 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=108949009731875 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 #include #include @@ -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!