From df212f180c1343faebb6abb8da8d1106532489c0 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Sat, 18 May 2024 02:29:19 +0300 Subject: [PATCH] correct property name for QVariant::Bool type in QItemEditorFactory::valuePropertyName() if QComboBox::currentIndex() is used the property value will be of integer type instead of boolean Signed-off-by: Ivailo Monev --- src/gui/itemviews/qitemeditorfactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/itemviews/qitemeditorfactory.cpp b/src/gui/itemviews/qitemeditorfactory.cpp index 0f9ff5c75..a05526092 100644 --- a/src/gui/itemviews/qitemeditorfactory.cpp +++ b/src/gui/itemviews/qitemeditorfactory.cpp @@ -187,7 +187,7 @@ QByteArray QItemEditorFactory::valuePropertyName(QVariant::Type type) const switch (type) { #ifndef QT_NO_COMBOBOX case QVariant::Bool: - return "currentIndex"; + return "value"; #endif #ifndef QT_NO_SPINBOX case QVariant::UInt: