Gtk Style: Workaround to get combo box item style from QtQuick Controls

Change-Id: I0f39269d08d58e0ee1f5b09b90e11ab1030a3932
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
This commit is contained in:
Gabriel de Dietrich 2013-02-20 17:42:28 +01:00 committed by The Qt Project
parent eff6dbb306
commit 26bc4ab22e

View File

@ -3173,7 +3173,8 @@ void QGtkStyle::drawControl(ControlElement element,
#ifndef QT_NO_COMBOBOX
if (qobject_cast<const QComboBox*>(widget))
if (qobject_cast<const QComboBox*>(widget) ||
option->styleObject && option->styleObject->property("_q_isComboBoxPopupItem").toBool())
ignoreCheckMark = true; // Ignore the checkmarks provided by the QComboMenuDelegate
#endif