ComboBox: PlaceHolder property does not crash anymore on read-only ComboBox.
[GB.QT4] * BUG: ComboBox: PlaceHolder property does not crash anymore on read-only ComboBox. [GB.QT5] * BUG: ComboBox: PlaceHolder property does not crash anymore on read-only ComboBox.
This commit is contained in:
parent
b62b931d50
commit
6debc3df5e
@ -123,10 +123,12 @@ END_PROPERTY
|
||||
|
||||
BEGIN_PROPERTY(TextBox_Placeholder)
|
||||
|
||||
GET_TEXT_BOX();
|
||||
|
||||
if (READ_PROPERTY)
|
||||
RETURN_NEW_STRING(TEXTBOX->placeholderText());
|
||||
RETURN_NEW_STRING(textbox->placeholderText());
|
||||
else
|
||||
TEXTBOX->setPlaceholderText(QSTRING_PROP());
|
||||
textbox->setPlaceholderText(QSTRING_PROP());
|
||||
|
||||
END_PROPERTY
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user