mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
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:
parent
bbaa34454b
commit
df212f180c
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue