From 26bc4ab22e0784979e9606f799d118e67828e23d Mon Sep 17 00:00:00 2001 From: Gabriel de Dietrich Date: Wed, 20 Feb 2013 17:42:28 +0100 Subject: Gtk Style: Workaround to get combo box item style from QtQuick Controls Change-Id: I0f39269d08d58e0ee1f5b09b90e11ab1030a3932 Reviewed-by: Jens Bache-Wiig --- src/widgets/styles/qgtkstyle.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/widgets/styles/qgtkstyle.cpp b/src/widgets/styles/qgtkstyle.cpp index 52c1e2376c..caa41db451 100644 --- a/src/widgets/styles/qgtkstyle.cpp +++ b/src/widgets/styles/qgtkstyle.cpp @@ -3173,7 +3173,8 @@ void QGtkStyle::drawControl(ControlElement element, #ifndef QT_NO_COMBOBOX - if (qobject_cast(widget)) + if (qobject_cast(widget) || + option->styleObject && option->styleObject->property("_q_isComboBoxPopupItem").toBool()) ignoreCheckMark = true; // Ignore the checkmarks provided by the QComboMenuDelegate #endif -- cgit v1.2.3