attr-editor_combobox-filll_patch.diff
src/gui/qgsattributeeditor.cpp | ||
---|---|---|
888 | 888 |
default: |
889 | 889 |
{ |
890 | 890 |
QLineEdit *le = qobject_cast<QLineEdit *>( editor ); |
891 |
QComboBox *cb = qobject_cast<QComboBox *>( editor ); |
|
891 | 892 |
QTextEdit *te = qobject_cast<QTextEdit *>( editor ); |
892 | 893 |
QPlainTextEdit *pte = qobject_cast<QPlainTextEdit *>( editor ); |
893 |
if ( !le && !te && !pte ) |
|
894 |
if ( !le && ! cb && !te && !pte )
|
|
894 | 895 |
return false; |
895 | 896 |
QString text; |
... | ... | |
910 | 911 |
if ( le ) |
911 | 912 |
le->setText( text ); |
913 |
if ( cb && cb->isEditable() ) |
|
914 |
cb->setEditText( text ); |
|
912 | 915 |
if ( te ) |
913 | 916 |
te->setHtml( text ); |
914 | 917 |
if ( pte ) |
915 |
- |