From 26557b9370b3d1f28224374f8a035ae9051a1317 Mon Sep 17 00:00:00 2001 From: sandman Date: Tue, 03 Dec 2002 00:59:30 +0000 Subject: small fix regarding focus handling on combo-boxes --- diff --git a/noncore/styles/liquid/liquid.cpp b/noncore/styles/liquid/liquid.cpp index e6d8310..4a65952 100644 --- a/noncore/styles/liquid/liquid.cpp +++ b/noncore/styles/liquid/liquid.cpp @@ -35,12 +35,14 @@ #include #include #include +#include #include #include "htmlmasks.h" #include "embeddata.h" + typedef void (QStyle::*QDrawMenuBarItemImpl) (QPainter *, int, int, int, int, QMenuItem *, QColorGroup &, bool, bool); @@ -1408,7 +1410,8 @@ void LiquidStyle::drawComboButton(QPainter *painter, int x, int y, int w, int h, ( edit && ((QWidget *) painter-> device ( ))-> inherits ( "QComboBox" ) && - ( qApp-> focusWidget ( ) == ((QComboBox *) painter->device())->lineEdit ( )) + ( qApp-> focusWidget ( ) == ((QComboBox *) painter->device())->lineEdit ( ) || + qApp-> focusWidget ( ) == ((QComboBox *) painter->device())->listBox ( )) ) ) ) { -- cgit v0.9.0.2