From a62a80ac6cc0e337f4ff6d862bccc13c720d41ac Mon Sep 17 00:00:00 2001 From: Maxim Monastirsky Date: Tue, 7 Jan 2014 13:03:14 +0200 Subject: [PATCH] fdo#72521 fdo#73103 Fix editable combo-boxes behavior under KDE4 Change-Id: I92a781a1e0f0adcb779155f8c477595e0dd762b1 Reviewed-on: https://gerrit.libreoffice.org/7287 Reviewed-by: Jan-Marek Glogowski Tested-by: Jan-Marek Glogowski --- vcl/unx/kde4/KDESalGraphics.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vcl/unx/kde4/KDESalGraphics.cxx b/vcl/unx/kde4/KDESalGraphics.cxx index 9caeae9b3f3a..cf72dcd6aca1 100644 --- a/vcl/unx/kde4/KDESalGraphics.cxx +++ b/vcl/unx/kde4/KDESalGraphics.cxx @@ -779,7 +779,11 @@ sal_Bool KDESalGraphics::getNativeControlRegion( ControlType type, ControlPart p break; } case PART_BUTTON_DOWN: - //the entire control can be used as the "down" button + contentRect = kapp->style()->subControlRect( + QStyle::CC_ComboBox, &cbo, QStyle::SC_ComboBoxArrow ); + + contentRect.translate( boundingRect.left(), boundingRect.top() ); + retVal = true; break; case PART_SUB_EDIT: