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 <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-05-18 02:29:19 +03:00
parent bbaa34454b
commit df212f180c

View file

@ -187,7 +187,7 @@ QByteArray QItemEditorFactory::valuePropertyName(QVariant::Type type) const
switch (type) { switch (type) {
#ifndef QT_NO_COMBOBOX #ifndef QT_NO_COMBOBOX
case QVariant::Bool: case QVariant::Bool:
return "currentIndex"; return "value";
#endif #endif
#ifndef QT_NO_SPINBOX #ifndef QT_NO_SPINBOX
case QVariant::UInt: case QVariant::UInt: